aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-13 12:11:12 +0000
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-13 12:42:45 +0000
commitd53e9b51b6e6be1a1e8a6c10187b08dc5a95f971 (patch)
tree3679a683572e53da7d540233c6b063bcdfb9eb2c /openbsc/src
parentc3b94f92c556dc3590d8343b572bc53f251a830d (diff)
Revert "Support Deactivate PDP Context Request from network"
This reverts commit 1611df5226199da2bf2fba3d22d93cc1a6c6c777. This is due to a segfault introduced to the asan build only. See: http://lists.osmocom.org/pipermail/openbsc/2016-December/009966.html Subject: new sanitizer breakage: SIGSEGV in sgsn_create_pdp_ctx() Date: Tue Dec 13 12:08:32 UTC 2016 Change-Id: Ic926c0e6778947b516994822e3a21d4fde25bb02
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/gprs/gprs_sgsn.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c
index 8558029a1..e5a54d9b4 100644
--- a/openbsc/src/gprs/gprs_sgsn.c
+++ b/openbsc/src/gprs/gprs_sgsn.c
@@ -667,44 +667,6 @@ static void drop_one_pdp(struct sgsn_pdp_ctx *pdp)
}
}
-/*
- * High-level function to be called for PDP deactivation initiated from SGSN VTY.
- * When there are PDP contexts present for a MM context, PDP context will be
- * deactivated along with GMM Detach(MM context deletion).
- * If there are no PDP present, MM context will be deleted to avoid further
- * PDP context activation for that MS.
- */
-void drop_gmm_ctx_for_ms(const char *imsi)
-{
- OSMO_ASSERT(imsi != NULL);
- struct sgsn_mm_ctx *mm;
- struct sgsn_pdp_ctx *pdp;
-
- /* Search the MM context subscriber */
- mm = sgsn_mm_ctx_by_imsi(imsi);
- LOGMMCTXP(LOGL_INFO, mm,
- "SGSN intiated Deactivate PDP request for %s\n", imsi);
- if (mm) {
- /* Search the PDP for this subscriber */
- if (llist_empty(&mm->pdp_list)) {
- /*
- * Deleting mm context for the subscriber when no PDP
- * context is present.
- */
- gsm0408_gprs_access_cancelled(mm, GMM_CAUSE_GPRS_NOTALLOWED);
- LOGMMCTXP(LOGL_NOTICE, mm, "No PDP context to deactivate\n");
- } else {
- llist_for_each_entry(pdp, &mm->pdp_list, list) {
- gsm48_tx_gsm_deact_pdp_req(pdp, GSM_CAUSE_DEACT_REGULAR);
- LOGPDPCTXP(LOGL_INFO, pdp, "PDP Deactivation "
- "Successful\n");
- }
- }
- } else
- LOGMMCTXP(LOGL_NOTICE, mm,
- "No MM context to deactivate for %s\n", imsi);
-}
-
/* High-level function to be called in case a GGSN has disappeared or
* otherwise lost state (recovery procedure) */
int drop_all_pdp_for_ggsn(struct sgsn_ggsn_ctx *ggsn)