diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2016-02-03 15:50:41 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-03-03 16:19:11 +0100 |
commit | f7436b22b3de13ec9ec130a03c295a8b53d395d3 (patch) | |
tree | 67e7ab5fc129330401f78e8b51f6b4a0002b74f7 /openbsc/src/libiu | |
parent | 711333c1137137508912000cc9e4398cf205c341 (diff) |
sgsn_iu/libgtp: Update pdp context with new IP address after RAB assign
In the IU case the RNC and ggsn communicate directly on the user plane.
Since the IP address of the RNC is not known in our case (it sits behind
the hnbgw) we need to update the PDP context with the new IP address
after receiving the RAB assignment response (which includes the IP
address).
Diffstat (limited to 'openbsc/src/libiu')
-rw-r--r-- | openbsc/src/libiu/iu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libiu/iu.c b/openbsc/src/libiu/iu.c index 33583aa82..1e440ffc6 100644 --- a/openbsc/src/libiu/iu.c +++ b/openbsc/src/libiu/iu.c @@ -286,6 +286,9 @@ static int ranap_handle_co_rab_ass_resp(struct ue_conn_ctx *ctx, RANAP_RAB_Assig LOGPC(DRANAP, LOGL_INFO, " Setup: (%u/%s)", rab_id, osmo_hexdump(item->transportLayerAddress->buf, item->transportLayerAddress->size)); + memcpy(pdp->lib->gsnlu.v, &item->transportLayerAddress->buf[3], 4); + gtp_update_context(pdp->ggsn->gsn, pdp->lib, pdp, &pdp->lib->hisaddr0); + } ranap_free_rab_setupormodifieditemies(&setup_ies); } |