From 22529354e1037d5e5cf265661a0738c874390c32 Mon Sep 17 00:00:00 2001 From: Pravin Kumarvel Date: Thu, 29 Dec 2016 20:09:32 +0530 Subject: Add test case for testing PUAN This test case is for testing generation of EGPRS PUAN. Corresponding log files .ok and .err are modified. --- src/rlc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/rlc.h b/src/rlc.h index 7db205d..ee86c2a 100644 --- a/src/rlc.h +++ b/src/rlc.h @@ -341,6 +341,9 @@ struct gprs_rlc_ul_window: public gprs_rlc_window { const uint16_t v_r() const; const uint16_t v_q() const; + const void set_v_r(int); + const void set_v_q(int); + const uint16_t ssn() const; bool is_in_window(uint16_t bsn) const; @@ -571,6 +574,16 @@ inline bool gprs_rlc_ul_window::is_received(uint16_t bsn) const return is_in_window(bsn) && m_v_n.is_received(bsn) && offset_v_r < ws(); } +inline const void gprs_rlc_ul_window::set_v_r(int v_r) +{ + m_v_r = v_r; +} + +inline const void gprs_rlc_ul_window::set_v_q(int v_q) +{ + m_v_q = v_q; +} + inline const uint16_t gprs_rlc_ul_window::v_r() const { return m_v_r; -- cgit v1.2.3