diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-10-07 18:42:34 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-10-07 18:42:34 +0200 |
commit | 41af5691ef08fb70e2c65aba03c8b9e6c20983a6 (patch) | |
tree | e0e46b53f3c271d4b3d3db6fc6f2755923ab01a0 /gtp/gtp.c | |
parent | 11a398fbc3ad9b655d8ba947bea7012f7ce81604 (diff) |
Add optional RAI Field
Routing Area Information is an optional Field described in 3GPP TS 29.060 7.7.3
it can be added with command line option rai, in the dot separated format MCC.MNC.LAC.RAC
example : --rai 208.10.65535.255
Signed-off-by: Yann BONNAMY <yann_bonnamy@yahoo.fr>
Signed-off-by: Harald Welte <laforge@gnumonks.org>
Diffstat (limited to 'gtp/gtp.c')
-rw-r--r-- | gtp/gtp.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1049,6 +1049,12 @@ extern int gtp_create_context_req(struct gsn_t *gsn, struct pdp_t *pdp, sizeof(pdp->imsi), (uint8_t*) &pdp->imsi); } + /* Section 7.7.3 Routing Area Information */ + if (pdp->rai_given == 1) + gtpie_tv0(&packet, &length, GTP_MAX, GTPIE_RAI, + pdp->rai.l, (uint8_t*) &pdp->rai.v); + + /* Section 7.7.11 */ gtpie_tv1(&packet, &length, GTP_MAX, GTPIE_RECOVERY, gsn->restart_counter); |