aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-14 13:23:15 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-16 19:37:49 +0100
commite8f5fe52554895661f7dafedb96c4c68b0ca9bda (patch)
treeaddd3f0b41b8a0a3a35d2e6c466692edef32916d /src/tbf.h
parentce1beb423cddfddebeb2ebacb60eb10506eeff71 (diff)
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
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h1
1 files changed, 1 insertions, 0 deletions
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];