aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlc.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-24 17:20:35 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-26 20:57:24 +0100
commitbc155706516dd63d1fbe3d87601df2f7606a1162 (patch)
treee0e8ebca0dbaad5fbc3f91e691c3a44f01664f60 /src/rlc.h
parente358ff8fa4865be81cd0fbf46ddd6baee3856e9b (diff)
tbf/rlc: Change the code and generate the entire state in the V_B
Diffstat (limited to 'src/rlc.h')
-rw-r--r--src/rlc.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rlc.h b/src/rlc.h
index 2bb512b6..7f6df12c 100644
--- a/src/rlc.h
+++ b/src/rlc.h
@@ -58,6 +58,8 @@ struct gprs_rlc_v_b {
uint16_t *lost, uint16_t *received);
int move_window(const uint16_t v_a, const uint16_t v_s,
const uint16_t mod_sns, const uint16_t mod_sns_half);
+ void state(char *show_rbb, const uint16_t v_a, const uint16_t v_s,
+ const uint16_t mod_sns, const uint16_t mod_sns_half);
/* Check for an individual frame */
bool is_unacked(int index) const;
@@ -66,8 +68,6 @@ struct gprs_rlc_v_b {
bool is_resend(int index) const;
bool is_invalid(int index) const;
- char state(int index) const;
-
/* Mark a RLC frame for something */
void mark_unacked(int index);
void mark_nacked(int index);
@@ -129,11 +129,6 @@ inline void gprs_rlc_v_b::mark(int index, const char type)
m_v_b[index] = type;
}
-inline char gprs_rlc_v_b::state(int index) const
-{
- return m_v_b[index];
-}
-
inline bool gprs_rlc_v_b::is_nacked(int index) const
{
return is_state(index, 'N');