aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-03-27 19:00:34 +0100
committerHarald Welte <laforge@osmocom.org>2021-03-27 19:00:34 +0100
commitecef920b8facd61438c8b4d3a288111186b0c1a6 (patch)
tree334ad1fc0d90b535c6e2b5538c1382568c457a38
parenteb9267b15ecd1dbff21a7be6488ddb08ed612d22 (diff)
ggsn: Reject PDP CTX ACT for static IP addresses
We don't implement handling of static IP addresses for now, let's properly reject those rather than allocating a dynamic address anyway. Change-Id: Iac8868438655fe4e5e07d167d7dbd6273dbb7678 Related: OS#5097
-rw-r--r--ggsn/ggsn.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index 267637d..bde7f4b 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -467,9 +467,13 @@ int create_context_ind(struct pdp_t *pdp)
return 0;
}
- /* FIXME: we manually force all context requests to dynamic here! */
- if (pdp->eua.l > 2)
- pdp->eua.l = 2;
+ /* FIXME: implement context request for static IP addresses! */
+ if (pdp->eua.l > 2) {
+ LOGPPDP(LOGL_ERROR, pdp, "Static IP addresses not supported: %s\n",
+ osmo_hexdump(pdp->eua.v, pdp->eua.l));
+ gtp_create_context_resp(gsn, pdp, GTPCAUSE_NOT_SUPPORTED);
+ return 0;
+ }
memcpy(pdp->qos_neg0, pdp->qos_req0, sizeof(pdp->qos_req0));