PSEA - Log - Change the debug to trace

parent 99c77d6f
...@@ -88,12 +88,12 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng ...@@ -88,12 +88,12 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
while(offset < msg_length) { while(offset < msg_length) {
switch (psea_iei) { switch (psea_iei) {
case IEI_5GSM_CAUSE: /* Ommited */ case IEI_5GSM_CAUSE: /* Ommited */
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received 5GSM Cause IEI\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received 5GSM Cause IEI\n");
offset++; offset++;
break; break;
case IEI_PDU_ADDRESS: case IEI_PDU_ADDRESS:
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received PDU Address IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received PDU Address IE\n");
psea_msg.pdu_addr_ie.pdu_length = *(buffer + offset++); psea_msg.pdu_addr_ie.pdu_length = *(buffer + offset++);
psea_msg.pdu_addr_ie.pdu_type = *(buffer + offset++); psea_msg.pdu_addr_ie.pdu_type = *(buffer + offset++);
...@@ -105,7 +105,7 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng ...@@ -105,7 +105,7 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
nas_getparams(); nas_getparams();
sprintf(baseNetAddress, "%d.%d", psea_msg.pdu_addr_ie.pdu_addr_oct1, psea_msg.pdu_addr_ie.pdu_addr_oct2); sprintf(baseNetAddress, "%d.%d", psea_msg.pdu_addr_ie.pdu_addr_oct1, psea_msg.pdu_addr_ie.pdu_addr_oct2);
nas_config(1,psea_msg.pdu_addr_ie.pdu_addr_oct3, psea_msg.pdu_addr_ie.pdu_addr_oct4, "oaitun_ue"); nas_config(1,psea_msg.pdu_addr_ie.pdu_addr_oct3, psea_msg.pdu_addr_ie.pdu_addr_oct4, "oaitun_ue");
LOG_I(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received UE IP: %d.%d.%d.%d\n", LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received UE IP: %d.%d.%d.%d\n",
psea_msg.pdu_addr_ie.pdu_addr_oct1, psea_msg.pdu_addr_ie.pdu_addr_oct1,
psea_msg.pdu_addr_ie.pdu_addr_oct2, psea_msg.pdu_addr_ie.pdu_addr_oct2,
psea_msg.pdu_addr_ie.pdu_addr_oct3, psea_msg.pdu_addr_ie.pdu_addr_oct3,
...@@ -118,54 +118,54 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng ...@@ -118,54 +118,54 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
break; break;
case IEI_RQ_TIMER_VALUE: /* Ommited */ case IEI_RQ_TIMER_VALUE: /* Ommited */
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received RQ timer value IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received RQ timer value IE\n");
offset++; /* TS 24.008 10.5.7.3 */ offset++; /* TS 24.008 10.5.7.3 */
psea_iei = *(buffer + offset++); psea_iei = *(buffer + offset++);
break; break;
case IEI_SNSSAI: /* Ommited */ case IEI_SNSSAI: /* Ommited */
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received S-NSSAI IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received S-NSSAI IE\n");
uint8_t snssai_length = *(buffer + offset); uint8_t snssai_length = *(buffer + offset);
offset += (snssai_length + sizeof(snssai_length)); offset += (snssai_length + sizeof(snssai_length));
psea_iei = *(buffer + offset++); psea_iei = *(buffer + offset++);
break; break;
case IEI_ALWAYSON_PDU: /* Ommited */ case IEI_ALWAYSON_PDU: /* Ommited */
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received Always-on PDU Session indication IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received Always-on PDU Session indication IE\n");
offset++; offset++;
psea_iei = *(buffer + offset++); psea_iei = *(buffer + offset++);
break; break;
case IEI_MAPPED_EPS: /* Ommited */ case IEI_MAPPED_EPS: /* Ommited */
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received Mapped EPS bearer context IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received Mapped EPS bearer context IE\n");
uint16_t mapped_eps_length = htons(*(uint16_t *)(buffer + offset)); uint16_t mapped_eps_length = htons(*(uint16_t *)(buffer + offset));
offset += mapped_eps_length; offset += mapped_eps_length;
psea_iei = *(buffer + offset++); psea_iei = *(buffer + offset++);
break; break;
case IEI_EAP_MSG: /* Ommited */ case IEI_EAP_MSG: /* Ommited */
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received EAP message IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received EAP message IE\n");
uint16_t eap_length = htons(*(uint16_t *)(buffer + offset)); uint16_t eap_length = htons(*(uint16_t *)(buffer + offset));
offset += (eap_length + sizeof(eap_length)); offset += (eap_length + sizeof(eap_length));
psea_iei = *(buffer + offset++); psea_iei = *(buffer + offset++);
break; break;
case IEI_AUTH_QOS_DESC: /* Ommited */ case IEI_AUTH_QOS_DESC: /* Ommited */
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received Authorized QoS flow descriptions IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received Authorized QoS flow descriptions IE\n");
psea_msg.qos_fd_ie.length = htons(*(uint16_t *)(buffer + offset)); psea_msg.qos_fd_ie.length = htons(*(uint16_t *)(buffer + offset));
offset += (psea_msg.qos_fd_ie.length + sizeof(psea_msg.qos_fd_ie.length)); offset += (psea_msg.qos_fd_ie.length + sizeof(psea_msg.qos_fd_ie.length));
psea_iei = *(buffer + offset++); psea_iei = *(buffer + offset++);
break; break;
case IEI_EXT_CONF_OPT: /* Ommited */ case IEI_EXT_CONF_OPT: /* Ommited */
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received Extended protocol configuration options IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Received Extended protocol configuration options IE\n");
psea_msg.ext_pp_ie.length = htons(*(uint16_t *)(buffer + offset)); psea_msg.ext_pp_ie.length = htons(*(uint16_t *)(buffer + offset));
offset += (psea_msg.ext_pp_ie.length + sizeof(psea_msg.ext_pp_ie.length )); offset += (psea_msg.ext_pp_ie.length + sizeof(psea_msg.ext_pp_ie.length ));
psea_iei = *(buffer + offset++); psea_iei = *(buffer + offset++);
break; break;
case IEI_DNN: case IEI_DNN:
LOG_D(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[20];
...@@ -175,13 +175,13 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng ...@@ -175,13 +175,13 @@ void capture_pdu_session_establishment_accept(uint8_t *buffer, uint32_t msg_leng
++i; ++i;
} }
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - APN: %s\n", apn); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - APN: %s\n", apn);
offset += psea_msg.dnn_ie.dnn_length; offset += psea_msg.dnn_ie.dnn_length;
psea_iei = *(buffer + offset++); psea_iei = *(buffer + offset++);
break; break;
default: default:
LOG_D(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Not known IE\n"); LOG_T(NAS, "PDU SESSION ESTABLISHMENT ACCEPT - Not known IE\n");
offset = msg_length; offset = msg_length;
break; break;
} }
......
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