[PATCH] osmo-ggsn[master]: create_context_ind(): ignore any non-started APNs

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Oct 1 10:20:10 UTC 2017


Review at  https://gerrit.osmocom.org/4118

create_context_ind(): ignore any non-started APNs

If we receive a GTP-C CREATE PDP CONTEXT for an APN that we were
unable (or not configured) to start, ignore that APN.

Change-Id: I8011a9ccc1d5effd3779f184c9055af46838ccaf
---
M ggsn/ggsn.c
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/18/4118/1

diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index c1f0c1a..dd71957 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -447,6 +447,9 @@
 
 	/* First find an exact APN name match */
 	apn = ggsn_find_apn(ggsn, name_buf);
+	/* ignore if the APN has not been started */
+	if (!apn->started)
+		apn = NULL;
 	/* then try default (if any) */
 	if (!apn)
 		apn = ggsn->cfg.default_apn;

-- 
To view, visit https://gerrit.osmocom.org/4118
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8011a9ccc1d5effd3779f184c9055af46838ccaf
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>


More information about the gerrit-log mailing list