summaryrefslogtreecommitdiffstats
path: root/include/osmocore/msgb.h
diff options
context:
space:
mode:
authorHarald Welte2010-04-30 14:29:11 +0200
committerHarald Welte2010-04-30 14:29:11 +0200
commit074c9f904cb5e4f6ab014d76e4abc079c16fc5d7 (patch)
tree696a76aa3c26e23ad98053773892e3b14a3beb14 /include/osmocore/msgb.h
parentmsgb: remove smsh, llch, tlli and gmmh (diff)
downloadlibosmocore-074c9f904cb5e4f6ab014d76e4abc079c16fc5d7.tar.gz
libosmocore-074c9f904cb5e4f6ab014d76e4abc079c16fc5d7.tar.xz
libosmocore-074c9f904cb5e4f6ab014d76e4abc079c16fc5d7.zip
msgb: introduce msgb->cb (the control buffer)
Diffstat (limited to 'include/osmocore/msgb.h')
-rw-r--r--include/osmocore/msgb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocore/msgb.h b/include/osmocore/msgb.h
index 61c224f..2841dc5 100644
--- a/include/osmocore/msgb.h
+++ b/include/osmocore/msgb.h
@@ -27,6 +27,7 @@ struct msgb {
struct llist_head list;
/* Part of which TRX logical channel we were received / transmitted */
+ /* FIXME: move them into the control buffer */
struct gsm_bts_trx *trx;
struct gsm_lchan *lchan;
@@ -39,6 +40,9 @@ struct msgb {
/* the layer 4 header */
unsigned char *l4h;
+ /* the 'control buffer', large enough to contain 5 pointers */
+ unsigned long cb[5];
+
uint16_t data_len;
uint16_t len;