mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-ggsn.git
synced 2025-10-23 00:12:08 +00:00
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:
11
gtp/gtp.c
11
gtp/gtp.c
@@ -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))) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user