diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2013-12-28 14:41:00 +0100 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2014-01-15 15:23:21 +0100 |
commit | 55844795be21e2e59ab6bcede2037f8c74d76505 (patch) | |
tree | 522545c0d413216dee9dfd6022bcd32ecd3ca6ee /src/rlc.cpp | |
parent | 7c3751b10bff1887e4981aa787c913aa4c812da2 (diff) |
rlc/tbf: Add function receive_bsn that updates v_r, v_q, v_n
We don't need to expose the mecanics of updating the variables to the
outside.
Diffstat (limited to 'src/rlc.cpp')
-rw-r--r-- | src/rlc.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp index 90944659..f3a25b23 100644 --- a/src/rlc.cpp +++ b/src/rlc.cpp @@ -197,3 +197,11 @@ uint16_t gprs_rlc_ul_window::raise_v_q() return count; } + +uint16_t gprs_rlc_ul_window::receive_bsn(const uint16_t bsn) +{ + m_v_n.mark_received(bsn); + raise_v_r(bsn); + + return raise_v_q(); +} |