aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-15 11:28:40 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-02-27 22:20:46 +0100
commit5b87b73e6c56198a84515188e1fa4055f6637934 (patch)
treea3c66f08b9411cbc09efa83e25b0e01fc38ea93f
parent2f99b9800b246dd95cd919607ae461e46d769027 (diff)
Set V_N and V_B to known initial state
Reset V_N and V_B in UL/DL window class constructors to make sure we always start from known initial state. Related: OS#1759 Change-Id: I8e14ffa913b49c5394229220de9165cdfaabdf19 Fixes: CID70468, CID70469.
-rw-r--r--src/rlc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rlc.h b/src/rlc.h
index fcc3edb..aac6b13 100644
--- a/src/rlc.h
+++ b/src/rlc.h
@@ -506,6 +506,7 @@ inline gprs_rlc_dl_window::gprs_rlc_dl_window()
: m_v_s(0)
, m_v_a(0)
{
+ reset();
}
inline const uint16_t gprs_rlc_dl_window::v_s() const
@@ -552,6 +553,7 @@ inline gprs_rlc_ul_window::gprs_rlc_ul_window()
: m_v_r(0)
, m_v_q(0)
{
+ m_v_n.reset();
}
inline bool gprs_rlc_ul_window::is_in_window(uint16_t bsn) const