diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-24 17:20:35 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-26 20:57:24 +0100 |
commit | bc155706516dd63d1fbe3d87601df2f7606a1162 (patch) | |
tree | e0e8ebca0dbaad5fbc3f91e691c3a44f01664f60 /src/rlc.h | |
parent | e358ff8fa4865be81cd0fbf46ddd6baee3856e9b (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.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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'); |