aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gprs_sgsn.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-18 10:35:06 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-18 10:35:06 +0200
commit6abf94e4206fa97c7dfd72f481c278d9e2873958 (patch)
treeb18b638e78d561a77fa0957b56a889559d7a475d /openbsc/include/openbsc/gprs_sgsn.h
parentd2a9ed22859dfc4b99bfac7c0010539db3e12a0d (diff)
[GPRS] Properly connect GPRS SM with LIBGTP for PDP context activation
* store LLC SAPI as part of PDP ctx * store NSEI + BVCI as part of MM ctx * export gsm48_tx_gsm_act_pdp_acc() and call it from sgsn_libgtp.c * create and use gsm48_tx_gsm_act_pdp_rej for error cases * print SAPI as part of VTY show pdp
Diffstat (limited to 'openbsc/include/openbsc/gprs_sgsn.h')
-rw-r--r--openbsc/include/openbsc/gprs_sgsn.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h
index 8ad6ba10d..df1ee4724 100644
--- a/openbsc/include/openbsc/gprs_sgsn.h
+++ b/openbsc/include/openbsc/gprs_sgsn.h
@@ -71,6 +71,8 @@ struct sgsn_mm_ctx {
/* Additional bits not present in the GSM TS */
uint32_t tlli;
+ uint16_t nsei;
+ uint16_t bvci;
struct timer_list timer;
unsigned int T;
};
@@ -88,10 +90,15 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc(uint32_t tlli,
enum pdp_ctx_state {
PDP_STATE_NONE,
+ PDP_STATE_CR_REQ,
+ PDP_STATE_CR_CONF,
};
enum pdp_type {
PDP_TYPE_NONE,
+ PDP_TYPE_ETSI_PPP,
+ PDP_TYPE_IANA_IPv4,
+ PDP_TYPE_IANA_IPv6,
};
struct sgsn_pdp_ctx {
@@ -107,7 +114,8 @@ struct sgsn_pdp_ctx {
uint32_t address;
char *apn_subscribed;
//char *apn_used;
- uint16_t nsapi;
+ uint16_t nsapi; /* SNDCP */
+ uint16_t sapi; /* LLC */
uint8_t ti; /* transaction identifier */
int vplmn_allowed;
uint32_t qos_profile_subscr;