diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-12-17 14:03:35 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-01-19 15:10:58 +0100 |
commit | b25cd3064cf4c613ed19633657071ea2a9668582 (patch) | |
tree | 1a9fe034b0692f1d45f89dd254e6db266d251329 /openbsc/include/openbsc/gprs_sgsn.h | |
parent | 50f009135d5814ba55e1fb718538eca1154d1b48 (diff) |
sgsn: Add PDP info to subscriber data (TODO)
TODO:
- commit message
- raw binary representation ???
- tests
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gprs_sgsn.h')
-rw-r--r-- | openbsc/include/openbsc/gprs_sgsn.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index 00cf5ccef..ad7463e3e 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -271,6 +271,22 @@ struct imsi_acl_entry { char imsi[16+1]; }; +/* see GSM 09.02, 17.7.1, PDP-Context and GPRSSubscriptionData */ +/* see GSM 09.02, B.1, gprsSubscriptionData */ +struct sgsn_subscriber_pdp_data { + struct llist_head list; + + /* raw binary data */ + int pdp_context_id; + uint8_t pdp_type[2]; + uint8_t pdp_address[16]; + size_t pdp_address_size; /* 0: not present */ + uint8_t qos_subscribed[3]; + int vplmn_address_allowed; + uint8_t apn[63]; + size_t apn_size; +}; + enum sgsn_subscriber_proc { SGSN_SUBSCR_PROC_NONE = 0, SGSN_SUBSCR_PROC_PURGE, @@ -282,6 +298,7 @@ struct sgsn_subscriber_data { struct sgsn_mm_ctx *mm; struct gsm_auth_tuple auth_triplets[5]; int auth_triplets_updated; + struct llist_head pdp_list; int error_cause; struct osmo_timer_list timer; int retries; |