commit | 55844795be21e2e59ab6bcede2037f8c74d76505 | [log] [tgz] |
---|---|---|
author | Daniel Willmann <daniel@totalueberwachung.de> | Sat Dec 28 14:41:00 2013 +0100 |
committer | Daniel Willmann <daniel@totalueberwachung.de> | Wed Jan 15 15:23:21 2014 +0100 |
tree | 522545c0d413216dee9dfd6022bcd32ecd3ca6ee | |
parent | 7c3751b10bff1887e4981aa787c913aa4c812da2 [diff] [blame] |
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.
diff --git a/src/rlc.cpp b/src/rlc.cpp index 9094465..f3a25b2 100644 --- a/src/rlc.cpp +++ b/src/rlc.cpp
@@ -197,3 +197,11 @@ 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(); +}