aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/include/openbsc/gprs_sgsn.h3
-rw-r--r--openbsc/include/openbsc/gsm_subscriber.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h
index 7ee68cc79..4572ac23d 100644
--- a/openbsc/include/openbsc/gprs_sgsn.h
+++ b/openbsc/include/openbsc/gprs_sgsn.h
@@ -16,6 +16,7 @@
struct gprs_llc_lle;
struct ctrl_handle;
+struct gsm_subscriber;
/* TS 04.08 4.1.3.3 GMM mobility management states on the network side */
enum gprs_mm_state {
@@ -126,6 +127,8 @@ struct sgsn_mm_ctx {
* whether one of them can be dropped. */
enum sgsn_auth_state auth_state;
+
+ struct gsm_subscriber *subscr;
};
#define LOGMMCTXP(level, mm, fmt, args...) \
diff --git a/openbsc/include/openbsc/gsm_subscriber.h b/openbsc/include/openbsc/gsm_subscriber.h
index 7aae4c332..7e0a419ae 100644
--- a/openbsc/include/openbsc/gsm_subscriber.h
+++ b/openbsc/include/openbsc/gsm_subscriber.h
@@ -18,6 +18,7 @@
#define GSM_SUBSCRIBER_NO_EXPIRATION 0x0
struct vty;
+struct sgsn_mm_ctx;
struct gsm_equipment {
long long unsigned int id;
@@ -56,6 +57,9 @@ struct gsm_subscriber {
/* pending requests */
int in_callback;
struct llist_head requests;
+
+ /* GPRS/SGSN related fields */
+ struct sgsn_mm_ctx *mm;
};
enum gsm_subscriber_field {