From a6ddc2d99f8463edb0b5eacf080db0b5ca571efc Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Fri, 12 Dec 2014 15:01:37 +0100 Subject: gprs: Add subscriber functions to create/handle GSUP messages This patch extends gprs_subscr_query_auth_info and gprs_subscr_location_update to create GSUP messages with the help of a static gprs_subscr_tx_gsup_message function. A corresponding gprs_subscr_rx_gsup_message is added which takes a messages, gets the subscr, and updates it accordingly. Sponsored-by: On-Waves ehf [hfreyther: Added a msgb_free gprs_subscr_tx_gsup_message] --- openbsc/include/openbsc/gprs_sgsn.h | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/include/openbsc') diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index 61b84d873..8019ad1ca 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -315,6 +315,7 @@ struct gsm_subscriber *gprs_subscr_get_by_imsi(const char *imsi); void gprs_subscr_put_and_cancel(struct gsm_subscriber *subscr); void gprs_subscr_update(struct gsm_subscriber *subscr); void gprs_subscr_update_auth_info(struct gsm_subscriber *subscr); +int gprs_subscr_rx_gsup_message(struct msgb *msg); /* Called on subscriber data updates */ void sgsn_update_subscriber_data(struct sgsn_mm_ctx *mmctx, -- cgit v1.2.3