aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlc.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-24 00:18:47 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-26 20:57:19 +0100
commit15777795268ac0d0b53453afe80ce6d8e68f9a55 (patch)
tree84b531ae91e5aa45454a73478e19f36d21f8b7ae /src/rlc.h
parentef93bdb19b8ff93ef1ed6e858029df44da82982e (diff)
rlc/tbf: Move the loop into the gprs_rlc_v_b class
Diffstat (limited to 'src/rlc.h')
-rw-r--r--src/rlc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rlc.h b/src/rlc.h
index e75a0781..3f65a2c2 100644
--- a/src/rlc.h
+++ b/src/rlc.h
@@ -44,6 +44,10 @@ struct gprs_rlc {
};
struct gprs_rlc_v_b {
+ int resend_needed(const uint16_t acked, const uint16_t sent,
+ const uint16_t mod_sns, const uint16_t mod_sns_half);
+
+ /* Check for an individual frame */
bool is_unacked(int index) const;
bool is_nacked(int index) const;
bool is_acked(int index) const;
@@ -52,6 +56,7 @@ struct gprs_rlc_v_b {
char state(int index) const;
+ /* Mark a RLC frame for something */
void mark_unacked(int index);
void mark_nacked(int index);
void mark_acked(int index);