summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-05-04 17:21:15 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2016-05-04 19:05:05 +0200
commite42a2ab158bdeb042062fb53abb59b83c5335f9a (patch)
tree5a12c60135ea17f5446607f8ba2fa40029834f47
parent9336cede840a10dd3252298529721e285ca4e871 (diff)
libiu: Also get routing area code if present in InitialUE Message
-rw-r--r--openbsc/src/libiu/iu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libiu/iu.c b/openbsc/src/libiu/iu.c
index e77bf7ac5..b56f677f4 100644
--- a/openbsc/src/libiu/iu.c
+++ b/openbsc/src/libiu/iu.c
@@ -311,6 +311,10 @@ static int ranap_handle_co_initial_ue(void *ctx, RANAP_InitialUE_MessageIEs_t *i
return -1;
}
+ if (ies->presenceMask & INITIALUE_MESSAGEIES_RANAP_RAC_PRESENT) {
+ ra_id.rac = asn1str_to_u8(&ies->rac);
+ }
+
if (iu_grnc_id_parse(&grnc_id, &ies->globalRNC_ID) != 0) {
LOGP(DRANAP, LOGL_ERROR,
"Failed to parse RANAP Global-RNC-ID IE\n");