summaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/sgsn_libgtp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-22 21:40:39 -0400
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-23 17:01:17 -0400
commitd4b03187c68c6136192f7a41335982b5ceeeb036 (patch)
tree9402fe78e75282c2b909a3eaeb469ab88949e2de /openbsc/src/gprs/sgsn_libgtp.c
parent8e6ecc96677a4353768296ce79d9fc52ad6ca6e1 (diff)
sgsn/gtp: Fill out the optional RAT type
Assume we are always a GERAN network right now.
Diffstat (limited to 'openbsc/src/gprs/sgsn_libgtp.c')
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index b5285dc7f..455e8af39 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -197,6 +197,11 @@ struct sgsn_pdp_ctx *sgsn_create_pdp_ctx(struct sgsn_ggsn_ctx *ggsn,
memcpy(pdp->gsnlu.v, &sgsn->cfg.gtp_listenaddr.sin_addr,
sizeof(sgsn->cfg.gtp_listenaddr.sin_addr));
+ /* Assume we are a GERAN system */
+ pdp->rattype.l = 1;
+ pdp->rattype.v[0] = 2;
+ pdp->rattype_given = 1;
+
/* change pdp state to 'requested' */
pctx->state = PDP_STATE_CR_REQ;