pespin has uploaded this change for review.
gtp: Store rx Direct Tunnel Flags in UpdatePDPCtx{Req,Resp}
In Update PDP Ctx Response, only SGSN is expected to transmit Direct
Tunnel Flags in the message.
Related: SYS#5435
Change-Id: Ia3e360a35d30858eab1e438dc2508fd756c2e22e
---
M gtp/gtp.c
1 file changed, 24 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/95/37595/1
diff --git a/gtp/gtp.c b/gtp/gtp.c
index 62cad60..8736cad 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -1984,6 +1984,11 @@
}
/* OMC identity */
+
+ /* Direct Tunnel Flags */
+ if (gtpie_gettlv(ie, GTPIE_DIR_TUN_FLAGS, 0, &pdp->dir_tun_flags.l,
+ &pdp->dir_tun_flags.v, sizeof(pdp->dir_tun_flags.v))) {
+ }
}
/* Confirm to peer that things were "successful" */
@@ -2093,6 +2098,12 @@
&pdp->qos_neg.v, sizeof(pdp->qos_neg.v))) {
goto err_missing;
}
+
+ /* Direct Tunnel Flags */
+ if (gsn->mode == GTP_MODE_GGSN &&
+ gtpie_gettlv(ie, GTPIE_DIR_TUN_FLAGS, 0, &pdp->dir_tun_flags.l,
+ &pdp->dir_tun_flags.v, sizeof(pdp->dir_tun_flags.v))) {
+ }
}
}
To view, visit change 37595. To unsubscribe, or for help writing mail filters, visit settings.