From fdf2d9183e42f0fa1881218586d75ad9ef9d86d5 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Wed, 3 Feb 2016 15:17:42 +0100 Subject: sgsn: Get gtp ip and teid from pdp context in gprs_iu_rab_act() --- openbsc/src/gprs/sgsn_libgtp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'openbsc/src/gprs/sgsn_libgtp.c') diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c index c15c499b2..66efc1dad 100644 --- a/openbsc/src/gprs/sgsn_libgtp.c +++ b/openbsc/src/gprs/sgsn_libgtp.c @@ -90,7 +90,7 @@ const struct value_string gtp_cause_strs[] = { { 0, NULL } }; -int gprs_iu_rab_act(struct sgsn_pdp_ctx *mm, uint32_t gtp_ip, uint32_t gtp_tei); +int gprs_iu_rab_act(struct sgsn_pdp_ctx *pdp); /* Generate the GTP IMSI IE according to 09.60 Section 7.9.2 */ static uint64_t imsi_str2gtp(char *str) @@ -356,10 +356,7 @@ 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; - memcpy(&ggsn_ip, pdp->gsnru.v, pdp->gsnru.l); - ggsn_ip = htonl(ggsn_ip); - gprs_iu_rab_act(pctx, ggsn_ip, pdp->teid_own); + gprs_iu_rab_act(pctx); return 0; } -- cgit v1.2.3