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.
This commit is contained in:
Max 2018-01-15 11:28:40 +01:00 committed by Harald Welte
parent 4cb6e04914
commit d81b3bf360
1 changed files with 2 additions and 0 deletions

View File

@ -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