aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-06 20:39:45 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-07 07:16:21 +0100
commit758dc12c9f3d265e5e1998087e70daef1502206c (patch)
tree9b342c5a3c29a9373bb031ac24dd7f780805a45f /src/tbf.h
parent28e5378b55acbb132d8855739351be832983cb68 (diff)
llc: First routines moved from the TBF into the LLC
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tbf.h b/src/tbf.h
index b2da97e3..9ab90019 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -88,6 +88,17 @@ enum gprs_rlcmac_tbf_direction {
* I represent the LLC data to a MS
*/
struct gprs_llc {
+ void init();
+ void reset();
+ void reset_frame_space();
+
+ void enqueue(struct msgb *llc_msg);
+ struct msgb *dequeue();
+
+ void update_frame(struct msgb *msg);
+ void put_frame(const uint8_t *data, size_t len);
+ void clear(BTS *bts);
+
uint8_t frame[LLC_MAX_LEN]; /* current DL or UL frame */
uint16_t index; /* current write/read position of frame */
uint16_t length; /* len of current DL LLC_frame, 0 == no frame */
@@ -105,7 +116,6 @@ struct gprs_rlcmac_tbf {
/* TODO: add the gettimeofday as parameter */
struct msgb *llc_dequeue(bssgp_bvc_ctx *bctx);
- void update_llc_frame(struct msgb *msg);
/* TODO: extract LLC class? */
int assemble_forward_llc(uint8_t *data, uint8_t len);