aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 1ea8c63f..3d6a583b 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -85,13 +85,19 @@ enum gprs_rlcmac_tbf_direction {
#define GPRS_RLCMAC_FLAG_TO_DL_ASS 7
#define GPRS_RLCMAC_FLAG_TO_MASK 0xf0 /* timeout bits */
+struct gprs_rlc_data {
+ /* block history */
+ uint8_t block[RLC_MAX_LEN];
+ /* block len of history */
+ uint8_t len;
+};
+
/*
* I hold the currently transferred blocks and will provide
* the routines to manipulate these arrays.
*/
struct gprs_rlc {
- uint8_t block[RLC_MAX_SNS/2][RLC_MAX_LEN]; /* block history */
- uint8_t block_len[RLC_MAX_SNS/2]; /* block len of history */
+ gprs_rlc_data blocks[RLC_MAX_SNS/2];
};
struct gprs_rlcmac_tbf {