9
0
Fork 0

Proper fix for "Force Dynamic IP" in Create PDP CTX

An EUA length of *2* octets indicates dynamic IP address, while
an EUA length of 0 is invalid.  Let's fix this hack (which needs
to finally be removed anyway).

Change-Id: Ib1b57eb0654327882044d6862d955f4b32aa6bcd
This commit is contained in:
Harald Welte 2017-08-04 00:22:35 +02:00
parent 283188790b
commit d9d8862a58
1 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,9 @@ int create_context_ind(struct pdp_t *pdp)
DEBUGP(DGGSN, "Received create PDP context request\n");
pdp->eua.l = 0; /* TODO: Indicates dynamic IP */
/* FIXME: we manually force all context requests to dynamic here! */
if (pdp->eua.l > 2)
pdp->eua.l = 2;
memcpy(pdp->qos_neg0, pdp->qos_req0, sizeof(pdp->qos_req0));
memcpy(&pdp->pco_neg, &pco, sizeof(pdp->pco_neg));