aboutsummaryrefslogtreecommitdiffstats
path: root/gtp/pdp.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-09-24 16:40:12 +0800
committerHarald Welte <laforge@gnumonks.org>2017-09-24 23:10:01 +0800
commit3c1cce245e6ed1746c0eacc6208b884871186d3d (patch)
tree69550dcaac59f82f4c66f0c722e7dad5325485d5 /gtp/pdp.c
parent00d346092be0b9d948f687efb4b20a0727019b71 (diff)
libgtp: Allow each PDP context to specify if it transmits G-PDU sequence numbers
GTP sequence numbers on GTP-U are optional for G-PDU type messages (i.e. user-ip messages). Let's allow the user to specify this behavior by a new pdu_t.tx_gpdu_seq flag. The flag is enabled by default to stay compatible with the prior behaviour. Related: OS#2519 Change-Id: Icf22a2ddd5c4a968ef5bda7c202b921d93fb49e6
Diffstat (limited to 'gtp/pdp.c')
-rw-r--r--gtp/pdp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtp/pdp.c b/gtp/pdp.c
index ff9c681..d3e9232 100644
--- a/gtp/pdp.c
+++ b/gtp/pdp.c
@@ -149,6 +149,8 @@ int pdp_newpdp(struct pdp_t **pdp, uint64_t imsi, uint8_t nsapi,
1].secondary_tei[(*pdp)->nsapi & 0x0f] =
(*pdp)->teid_own;
}
+ /* Default: Generate G-PDU sequence numbers on Tx */
+ (*pdp)->tx_gpdu_seq = true;
return 0;
}