aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-04-22 21:32:54 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-04-22 21:32:54 +0200
commit3c49a5f7d7fd087e3f7a52b331a3a280800cb1d3 (patch)
tree437b88d89d25fa007f8719d6b8afb353ffbb1f1e
parent862362522601f4e464248548a011c5c1bbf95a98 (diff)
PDP ctx response: hardcode QoS to 14 zeros
-rw-r--r--ggsn/ggsn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index 38a3235..1d77a73 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -632,8 +632,13 @@ int create_context_ind(struct pdp_t *pdp)
memcpy(pdp->qos_neg0, pdp->qos_req0, sizeof(pdp->qos_req0));
+#if 0
memcpy(pdp->qos_neg.v, pdp->qos_req.v, pdp->qos_req.l); /* TODO */
pdp->qos_neg.l = pdp->qos_req.l;
+#else
+ memset(pdp->qos_neg.v, 0, sizeof(pdp->qos_neg.v));
+ pdp->qos_neg.l = 0xe;
+#endif
memset(addr, 0, sizeof(addr));
if ((num_addr = in46a_from_eua(&pdp->eua, addr)) < 0) {