diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-12-02 11:28:38 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-09 10:01:08 +0100 |
commit | a1e0373224e02784f85eb47306a689fce45fb9e3 (patch) | |
tree | de1601fd704b93e9b747afc1c6f854896e8345d2 /openbsc/include/openbsc | |
parent | 207f4a5deba610b34d5e140f512e538e34a7115f (diff) |
sgsn: Put SGSN related subscriber data into separate struct
There will be an increasing number of SGSN related fields per
subscriber. Instead of extending gsm_subscriber accordingly, a single
struct sgsn_subscriber_data object is assigned to it. The talloc
context used to allocated that object is the subscr object itself.
Therefore it will be freed automatically along with the subscr
object.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r-- | openbsc/include/openbsc/gprs_sgsn.h | 1 | ||||
-rw-r--r-- | openbsc/include/openbsc/gsm_subscriber.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index b1358131a..464982e2b 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -271,6 +271,7 @@ struct imsi_acl_entry { }; struct sgsn_subscriber_data { + struct sgsn_mm_ctx *mm; enum sgsn_auth_state auth_state; }; diff --git a/openbsc/include/openbsc/gsm_subscriber.h b/openbsc/include/openbsc/gsm_subscriber.h index 195fa0fd0..290cc44dc 100644 --- a/openbsc/include/openbsc/gsm_subscriber.h +++ b/openbsc/include/openbsc/gsm_subscriber.h @@ -20,6 +20,7 @@ struct vty; struct sgsn_mm_ctx; +struct sgsn_subscriber_data; struct gsm_subscriber_group { struct gsm_network *net; @@ -69,7 +70,7 @@ struct gsm_subscriber { struct llist_head requests; /* GPRS/SGSN related fields */ - struct sgsn_mm_ctx *mm; + struct sgsn_subscriber_data *sgsn_data; }; enum gsm_subscriber_field { |