From 758dc12c9f3d265e5e1998087e70daef1502206c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 6 Nov 2013 20:39:45 +0100 Subject: llc: First routines moved from the TBF into the LLC --- src/tbf.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/tbf.h') 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); -- cgit v1.2.3