From 35c6d683d401afaecc17bbd74dbd82fd36c529d4 Mon Sep 17 00:00:00 2001 From: winckel <winckel@eurecom.fr> Date: Wed, 29 Jan 2014 10:48:16 +0000 Subject: [PATCH] Changed APN to add a one byte size field before each string item to be coherent with PFT traces and wireshark decoding. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4982 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/NAS/EURECOM-NAS/src/api/mme/mme_api.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/openair-cn/NAS/EURECOM-NAS/src/api/mme/mme_api.c b/openair-cn/NAS/EURECOM-NAS/src/api/mme/mme_api.c index 5b970e8f68..17670ef352 100644 --- a/openair-cn/NAS/EURECOM-NAS/src/api/mme/mme_api.c +++ b/openair-cn/NAS/EURECOM-NAS/src/api/mme/mme_api.c @@ -45,12 +45,22 @@ Description Implements the API used by the NAS layer running in the MME /* Default APN */ static const OctetString mme_api_default_apn = { - 14, (uint8_t *)("www.eurecom.fr") + /* LW: apn seems to be coded using a one byte size field before each part of the name */ +#if 1 + 15, (uint8_t *)("\x0e" "www.eurecom.fr") +#else + 35, (uint8_t *)("\x08" "internet" + "\x02" "v4" + "\x03" "pft" + "\x06" "mnc092" + "\x06" "mcc208" + "\x04" "gprs") +#endif }; /* APN configured for emergency bearer services */ static const OctetString mme_api_emergency_apn = { - 18, (uint8_t *)("www.eurecom_sos.fr") + 19, (uint8_t *)("\x12" "www.eurecom_sos.fr") }; /* Public Land Mobile Network identifier */ -- GitLab