From e8f5fe52554895661f7dafedb96c4c68b0ca9bda Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Mon, 14 Dec 2015 13:23:15 +0100 Subject: tbf: Refactor parts of extract_tlli into set_tlli_from_ul Currently gprs_rlcmac_tbf::extract_tlli takes care of decoding and the TBF update. These are really different things and doing the decoding in extract_tlli makes EGPRS support more complex. This commit moves the TBF state related part into a new method gprs_rlcmac_tbf::set_tlli_from_ul. Sponsored-by: On-Waves ehf --- src/tbf.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tbf.h') diff --git a/src/tbf.h b/src/tbf.h index 7b13eebb..252e9d52 100644 --- a/src/tbf.h +++ b/src/tbf.h @@ -239,6 +239,7 @@ protected: gprs_rlcmac_bts *bts_data() const; int extract_tlli(const uint8_t *data, const size_t len); + int set_tlli_from_ul(uint32_t new_tlli); void merge_and_clear_ms(GprsMs *old_ms); static const char *tbf_state_name[6]; -- cgit v1.2.3