aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlc.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-24 22:00:43 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-26 21:00:51 +0100
commite9b1ebba9d720374700d3cb2537fcd2725c50a84 (patch)
treec9cd8640798f39723cc60d62b8953f576904499e /src/rlc.h
parent270f7fce1d5558f66277cbb4c08e3e7cfc4d9c4c (diff)
rlc: Test the basic of the gprs_rlc_v_n code for remembering the state
Diffstat (limited to 'src/rlc.h')
-rw-r--r--src/rlc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rlc.h b/src/rlc.h
index d9e0e6cc..e1974e45 100644
--- a/src/rlc.h
+++ b/src/rlc.h
@@ -130,6 +130,8 @@ private:
};
struct gprs_rlc_v_n {
+ void reset();
+
void mark_received(int index);
void mark_missing(int index);
@@ -357,5 +359,8 @@ inline bool gprs_rlc_v_n::is_received(int index) const
inline char gprs_rlc_v_n::state(int index) const
{
- return m_v_n[index];
+ char bit = m_v_n[index];
+ if (bit == '\0')
+ return ' ';
+ return bit;
}