diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-04-30 16:43:39 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-04 07:20:42 +0200 |
commit | 06aa111fda8caadd312756fe280d808da12379f0 (patch) | |
tree | 0b8bcb9cc39f2ddbad3a3907547ff8b42956d9ee /openbsc/include/openbsc/gsm_data.h | |
parent | b7bd65ea01960ae532f8901dd8f03003ebf30e6f (diff) |
gprs: Use new msgb->cb[] for storing a pointer to the NS-VC through which it was received
Diffstat (limited to 'openbsc/include/openbsc/gsm_data.h')
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index 4344bf8a3..79e77e803 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -79,14 +79,17 @@ enum bts_gprs_mode { BTS_GPRS_EGPRS = 2, }; +struct gprs_nsvc; /* the data structure stored in msgb->cb for openbsc apps */ struct openbsc_msgb_cb { unsigned char *gmmh; + struct gprs_nsvc *nsvc; 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_nsvc(__x) OBSC_MSGB_CB(__x)->nsvc #define msgb_llch(__x) (__x)->l4h struct msgb; |