diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-24 17:34:17 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-26 20:57:24 +0100 |
commit | 9c5539d46da3e43eeb875e1849553214263ee618 (patch) | |
tree | 1fd59d3c6c7bdc6527e17f42992f127f42b44907 /src/rlc.h | |
parent | 86dc355a3328ad2305d8bd0b1fb6684509352289 (diff) |
tbf/rlc: Move the counting of unacked frames into the RLC V_B class
Whenwe receive a final ack we assume that all the unacked frames
have been acked now. Move the counting to V_B and now the caller
can remove the BSN and the "lost" variable which has always been
zero.
Diffstat (limited to 'src/rlc.h')
-rw-r--r-- | src/rlc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -60,6 +60,8 @@ struct gprs_rlc_v_b { 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); + int count_unacked(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; |