pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/37595?usp=email )
Change subject: gtp: Store rx Direct Tunnel Flags in UpdatePDPCtx{Req,Resp} ......................................................................
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(-)
Approvals: pespin: Looks good to me, approved laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified
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))) { + } } }