summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-02-01 16:03:47 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2016-02-04 15:52:19 +0100
commitd9bf602a2544362dd572419b45430cce38d875dc (patch)
tree20b133a2e218615e0847672459c78d0364a28bf7
parentb42049436f203bde5ddb6aa1e72b670a8cfcb569 (diff)
sgsn_libgtp: Use the address provided by the GGSN for RAB activation
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index d3803e2cc..c15c499b2 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -356,7 +356,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);
gprs_iu_rab_act(pctx, ggsn_ip, pdp->teid_own);
return 0;
}