diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2014-08-07 15:49:21 +0200 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2014-08-07 16:12:05 +0200 |
commit | 7e994e392d9684c6deab2cac3eed162ca96f083d (patch) | |
tree | 8c282f6cc6715136b89ab6c6407773764095bb5e /src/rlc.cpp | |
parent | 6a8a1dcda2898df78b5bc794bd64947317b453cc (diff) |
tbf, ...: Make the fields in the dl/ul struct member variables
There is no need for the union/struct anymore. Make the variable members
of the UL/DL class.
As a result gprs_rlc_dl_window gets a reset() method because
memset(&dir.dl, 0, sizeof(dir.dl)) doesn't work anymore in reuse_tbf().
Ticket: SYS#389
Sponsored by: On-Waves ehf
Diffstat (limited to 'src/rlc.cpp')
-rw-r--r-- | src/rlc.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp index 36320dc9..42b602cb 100644 --- a/src/rlc.cpp +++ b/src/rlc.cpp @@ -46,6 +46,13 @@ void gprs_rlc_v_b::reset() mark_invalid(i); } +void gprs_rlc_dl_window::reset() +{ + m_v_s = 0; + m_v_a = 0; + m_v_b.reset(); +} + int gprs_rlc_dl_window::resend_needed() { for (uint16_t bsn = v_a(); bsn != v_s(); bsn = (bsn + 1) & mod_sns()) { |