aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_data.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-04-30 16:33:12 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-04 07:20:41 +0200
commit943c5bc595eed5cd8f26204030f833e4450b4a0f (patch)
tree49aa5de5b739ce8aaecce844560ffaea52fa7f70 /openbsc/include/openbsc/gsm_data.h
parent2977d67d489564736da6771cbbd6214d3d4541db (diff)
gprs: Update gprs-sgsn branch to use new msgb->cb layout
The explicit 'tlli, gmmh' members of struct msgb are gone from current libosmocore and have been replaced by the more generic 'control buffer' mechanism.
Diffstat (limited to 'openbsc/include/openbsc/gsm_data.h')
-rw-r--r--openbsc/include/openbsc/gsm_data.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 70f352b0b..4344bf8a3 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -85,6 +85,9 @@ struct openbsc_msgb_cb {
u_int32_t tlli;
};
#define OBSC_MSGB_CB(__msgb) ((struct openbsc_msgb_cb *)&((__msgb)->cb[0]))
+#define msgb_tlli(__x) OBSC_MSGB_CB(__x)->tlli
+#define msgb_gmmh(__x) OBSC_MSGB_CB(__x)->gmmh
+#define msgb_llch(__x) (__x)->l4h
struct msgb;
typedef int gsm_cbfn(unsigned int hooknum,