mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-ggsn.git
synced 2025-11-03 05:33:23 +00:00
Charging characteristics made optional
This commit is contained in:
@@ -1062,11 +1062,11 @@ extern int gtp_create_context_req(struct gsn_t *gsn, struct pdp_t *pdp,
|
|||||||
gtpie_tv1(&packet, &length, GTP_MAX, GTPIE_NSAPI,
|
gtpie_tv1(&packet, &length, GTP_MAX, GTPIE_NSAPI,
|
||||||
pdp->nsapi);
|
pdp->nsapi);
|
||||||
|
|
||||||
|
|
||||||
if (pdp->secondary) /* Secondary PDP Context Activation Procedure */
|
if (pdp->secondary) /* Secondary PDP Context Activation Procedure */
|
||||||
gtpie_tv1(&packet, &length, GTP_MAX, GTPIE_NSAPI,
|
gtpie_tv1(&packet, &length, GTP_MAX, GTPIE_NSAPI,
|
||||||
linked_pdp->nsapi);
|
linked_pdp->nsapi);
|
||||||
|
|
||||||
|
if (pdp->cch_pdp) /* Only include charging if flags are set */
|
||||||
gtpie_tv2(&packet, &length, GTP_MAX, GTPIE_CHARGING_C,
|
gtpie_tv2(&packet, &length, GTP_MAX, GTPIE_CHARGING_C,
|
||||||
pdp->cch_pdp);
|
pdp->cch_pdp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user