aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-23 16:18:18 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-23 16:19:17 +0100
commit9525567d7725b4808421dc7dda26e550111214f3 (patch)
treec89258afa51c5103793f140feff19b89a7294339 /src
parent6b5660c19febc84c3851c8499daf6fcca990e427 (diff)
rlc: Create a basic test that mark/is is talking about the same
Diffstat (limited to 'src')
-rw-r--r--src/rlc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rlc.h b/src/rlc.h
index 5d0cd22e..e75a0781 100644
--- a/src/rlc.h
+++ b/src/rlc.h
@@ -44,10 +44,11 @@ struct gprs_rlc {
};
struct gprs_rlc_v_b {
+ bool is_unacked(int index) const;
bool is_nacked(int index) const;
bool is_acked(int index) const;
- bool is_unacked(int index) const;
bool is_resend(int index) const;
+ bool is_invalid(int index) const;
char state(int index) const;
@@ -136,6 +137,11 @@ inline bool gprs_rlc_v_b::is_resend(int index) const
return is_state(index, 'X');
}
+inline bool gprs_rlc_v_b::is_invalid(int index) const
+{
+ return is_state(index, 'I');
+}
+
inline void gprs_rlc_v_b::mark_resend(int index)
{
return mark(index, 'X');