PSEA - SABOX fix - changed the max accumulated apn length

parent cab10e85
...@@ -168,7 +168,7 @@ void capture_pdu_session_establishment_accept_msg(uint8_t *buffer, uint32_t msg_ ...@@ -168,7 +168,7 @@ void capture_pdu_session_establishment_accept_msg(uint8_t *buffer, uint32_t msg_
LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received DNN IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received DNN IE\n");
psea_msg.dnn_ie.dnn_length = *(buffer + offset++); psea_msg.dnn_ie.dnn_length = *(buffer + offset++);
uint8_t i=0; uint8_t i=0;
char apn[20]; char apn[APN_MAX_LEN];
while (*(buffer + offset + i) != ASCII_ACK) { while (*(buffer + offset + i) != ASCII_ACK) {
apn[i] = *(buffer + offset + i); apn[i] = *(buffer + offset + i);
......
...@@ -58,6 +58,13 @@ ...@@ -58,6 +58,13 @@
#define ASCII_ACK 0x06 /* Delimiter in the DNN IEI */ #define ASCII_ACK 0x06 /* Delimiter in the DNN IEI */
/* DNN - APN
* TS 23.003 9.1
* The APN is composed of two parts, the APN Network Identifier (9.1.1) & The APN Operator Identifier (9.1.2).
* The accumulated max length of APN is 100 bytes.
*/
#define APN_MAX_LEN 100
/* Mandatory Presence IE - TS 24.501 Table 8.3.2.1.1 */ /* Mandatory Presence IE - TS 24.501 Table 8.3.2.1.1 */
typedef struct packet_filter_create_qos_rule_s { typedef struct packet_filter_create_qos_rule_s {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment