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
This commit is contained in:
Pau Espin Pedrol
2024-07-24 20:11:37 +02:00
parent 7ce14f5e93
commit ea3cf1b8ae

View File

@@ -1984,6 +1984,11 @@ static int gtp_update_pdp_ind(struct gsn_t *gsn, uint8_t version,
}
/* 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 @@ static int gtp_update_pdp_conf(struct gsn_t *gsn, uint8_t version,
&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))) {
}
}
}