From 55844795be21e2e59ab6bcede2037f8c74d76505 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Sat, 28 Dec 2013 14:41:00 +0100 Subject: 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. --- src/rlc.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/rlc.cpp') 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(); +} -- cgit v1.2.3