diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2016-02-15 13:46:39 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-03-03 16:19:10 +0100 |
commit | ba47b525ff001475537536255b04aefff0385eea (patch) | |
tree | db9e558e916616e5781e5266fe91f953dd39132e /openbsc/src/gprs | |
parent | cf1707af7ff594b7818e8171d7a1ec4ebe1a8f60 (diff) |
sgsn_libgtp: Use the address provided by the GGSN for RAB activation
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r-- | openbsc/src/gprs/sgsn_libgtp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c index 2553441e6..0bd85a3d2 100644 --- a/openbsc/src/gprs/sgsn_libgtp.c +++ b/openbsc/src/gprs/sgsn_libgtp.c @@ -357,7 +357,9 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause) return send_act_pdp_cont_acc(pctx); } else { /* Activate a radio bearer */ - uint32_t ggsn_ip = 0xc0a80033; /* 192.168.0.51 */ + uint32_t ggsn_ip; + memcpy(&ggsn_ip, pdp->gsnru.v, pdp->gsnru.l); + ggsn_ip = htonl(ggsn_ip); iu_rab_act_ps(pctx, ggsn_ip, pdp->teid_own); return 0; } |