aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/sgsn_libgtp.c
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-02-03 15:17:42 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-03-03 16:19:10 +0100
commit4371ff8cce45071e9b0fa684938677d696f4c207 (patch)
tree66680c7f87f6484afd81a3646e135e7e5897fd90 /openbsc/src/gprs/sgsn_libgtp.c
parent92223cc32e55b884fdf36afc4fb82c1bd227041b (diff)
sgsn: Get gtp ip and teid from pdp context in gprs_iu_rab_act()
Diffstat (limited to 'openbsc/src/gprs/sgsn_libgtp.c')
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index 0bd85a3d2..a19823d88 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -91,7 +91,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)
@@ -357,10 +357,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);
- iu_rab_act_ps(pctx, ggsn_ip, pdp->teid_own);
+ iu_rab_act_ps(pctx);
return 0;
}