From d9bf602a2544362dd572419b45430cce38d875dc Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Mon, 1 Feb 2016 16:03:47 +0100 Subject: sgsn_libgtp: Use the address provided by the GGSN for RAB activation --- openbsc/src/gprs/sgsn_libgtp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3