Commit 4767a4c0 authored by winckel's avatar winckel

Changed ITTI S1AP log message names.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4881 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 5a3250e7
//WARNING: Do not include this header directly. Use intertask_interface.h instead. //WARNING: Do not include this header directly. Use intertask_interface.h instead.
MESSAGE_DEF(S1AP_UE_CAPABILITIES_IND, MESSAGE_PRIORITY_MED, s1ap_ue_cap_ind_t, s1ap_ue_cap_ind) /* Messages for S1AP logging */
MESSAGE_DEF(S1AP_ENB_DEREGISTERED_IND, MESSAGE_PRIORITY_MED, s1ap_eNB_deregistered_ind_t, s1ap_eNB_deregistered_ind) MESSAGE_DEF(S1AP_UPLINK_NAS_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_uplink_nas_log)
MESSAGE_DEF(S1AP_DEREGISTER_UE_REQ, MESSAGE_PRIORITY_MED, s1ap_deregister_ue_req_t, s1ap_deregister_ue_req) MESSAGE_DEF(S1AP_UE_CAPABILITY_IND_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_ue_capability_ind_log)
MESSAGE_DEF(S1AP_INITIAL_CONTEXT_SETUP_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_initial_context_setup_log)
MESSAGE_DEF(S1AP_NAS_NON_DELIVERY_IND_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_nas_non_delivery_ind_log)
MESSAGE_DEF(S1AP_DOWNLINK_NAS_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_downlink_nas_log)
MESSAGE_DEF(S1AP_S1_SETUP_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_s1_setup_log)
MESSAGE_DEF(S1AP_INITIAL_UE_MESSAGE_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_initial_ue_message_log)
MESSAGE_DEF(S1AP_UE_CONTEXT_RELEASE_REQ_LOG, MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_ue_context_release_req_log)
MESSAGE_DEF(S1AP_UE_CONTEXT_RELEASE_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_ue_context_release_log)
MESSAGE_DEF(S1AP_UE_CAPABILITIES_IND , MESSAGE_PRIORITY_MED, s1ap_ue_cap_ind_t , s1ap_ue_cap_ind)
MESSAGE_DEF(S1AP_ENB_DEREGISTERED_IND , MESSAGE_PRIORITY_MED, s1ap_eNB_deregistered_ind_t , s1ap_eNB_deregistered_ind)
MESSAGE_DEF(S1AP_DEREGISTER_UE_REQ , MESSAGE_PRIORITY_MED, s1ap_deregister_ue_req_t , s1ap_deregister_ue_req)
...@@ -48,10 +48,11 @@ ...@@ -48,10 +48,11 @@
static int s1ap_eNB_decode_initiating_message(s1ap_message *message, static int s1ap_eNB_decode_initiating_message(s1ap_message *message,
S1ap_InitiatingMessage_t *initiating_p) S1ap_InitiatingMessage_t *initiating_p)
{ {
int ret = -1; int ret = -1;
MessageDef *message_p; MessageDef *message_p;
char *message_string = NULL; char *message_string = NULL;
size_t message_string_size; size_t message_string_size;
MessagesIds message_id;
DevAssert(initiating_p != NULL); DevAssert(initiating_p != NULL);
...@@ -68,12 +69,14 @@ static int s1ap_eNB_decode_initiating_message(s1ap_message *message, ...@@ -68,12 +69,14 @@ static int s1ap_eNB_decode_initiating_message(s1ap_message *message,
ret = s1ap_decode_s1ap_downlinknastransporties( ret = s1ap_decode_s1ap_downlinknastransporties(
&message->msg.s1ap_DownlinkNASTransportIEs, &initiating_p->value); &message->msg.s1ap_DownlinkNASTransportIEs, &initiating_p->value);
s1ap_xer_print_s1ap_downlinknastransport(s1ap_xer__print2sp, message_string, message); s1ap_xer_print_s1ap_downlinknastransport(s1ap_xer__print2sp, message_string, message);
message_id = S1AP_DOWNLINK_NAS_LOG;
break; break;
case S1ap_ProcedureCode_id_InitialContextSetup: case S1ap_ProcedureCode_id_InitialContextSetup:
ret = s1ap_decode_s1ap_initialcontextsetuprequesties( ret = s1ap_decode_s1ap_initialcontextsetuprequesties(
&message->msg.s1ap_InitialContextSetupRequestIEs, &initiating_p->value); &message->msg.s1ap_InitialContextSetupRequestIEs, &initiating_p->value);
s1ap_xer_print_s1ap_initialcontextsetuprequest(s1ap_xer__print2sp, message_string, message); s1ap_xer_print_s1ap_initialcontextsetuprequest(s1ap_xer__print2sp, message_string, message);
message_id = S1AP_INITIAL_CONTEXT_SETUP_LOG;
break; break;
default: default:
...@@ -84,8 +87,9 @@ static int s1ap_eNB_decode_initiating_message(s1ap_message *message, ...@@ -84,8 +87,9 @@ static int s1ap_eNB_decode_initiating_message(s1ap_message *message,
message_string_size = strlen(message_string); message_string_size = strlen(message_string);
message_p = itti_alloc_new_message_sized(TASK_S1AP, GENERIC_LOG, message_string_size); message_p = itti_alloc_new_message_sized(TASK_S1AP, message_id, message_string_size + sizeof (IttiMsgText));
memcpy(&message_p->ittiMsg.generic_log, message_string, message_string_size); message_p->ittiMsg.s1ap_downlink_nas_log.size = message_string_size;
memcpy(&message_p->ittiMsg.s1ap_downlink_nas_log.text, message_string, message_string_size);
itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p); itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p);
...@@ -101,6 +105,7 @@ static int s1ap_eNB_decode_successful_outcome(s1ap_message *message, ...@@ -101,6 +105,7 @@ static int s1ap_eNB_decode_successful_outcome(s1ap_message *message,
MessageDef *message_p; MessageDef *message_p;
char *message_string = NULL; char *message_string = NULL;
size_t message_string_size; size_t message_string_size;
MessagesIds message_id;
DevAssert(successfullOutcome_p != NULL); DevAssert(successfullOutcome_p != NULL);
...@@ -117,6 +122,7 @@ static int s1ap_eNB_decode_successful_outcome(s1ap_message *message, ...@@ -117,6 +122,7 @@ static int s1ap_eNB_decode_successful_outcome(s1ap_message *message,
ret = s1ap_decode_s1ap_s1setupresponseies( ret = s1ap_decode_s1ap_s1setupresponseies(
&message->msg.s1ap_S1SetupResponseIEs, &successfullOutcome_p->value); &message->msg.s1ap_S1SetupResponseIEs, &successfullOutcome_p->value);
s1ap_xer_print_s1ap_s1setupresponse(s1ap_xer__print2sp, message_string, message); s1ap_xer_print_s1ap_s1setupresponse(s1ap_xer__print2sp, message_string, message);
message_id = S1AP_S1_SETUP_LOG;
break; break;
default: default:
...@@ -127,8 +133,9 @@ static int s1ap_eNB_decode_successful_outcome(s1ap_message *message, ...@@ -127,8 +133,9 @@ static int s1ap_eNB_decode_successful_outcome(s1ap_message *message,
message_string_size = strlen(message_string); message_string_size = strlen(message_string);
message_p = itti_alloc_new_message_sized(TASK_S1AP, GENERIC_LOG, message_string_size); message_p = itti_alloc_new_message_sized(TASK_S1AP, message_id, message_string_size + sizeof (IttiMsgText));
memcpy(&message_p->ittiMsg.generic_log, message_string, message_string_size); message_p->ittiMsg.s1ap_s1_setup_log.size = message_string_size;
memcpy(&message_p->ittiMsg.s1ap_s1_setup_log.text, message_string, message_string_size);
itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p); itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p);
......
...@@ -119,6 +119,7 @@ int s1ap_eNB_encode_initiating(s1ap_message *s1ap_message_p, ...@@ -119,6 +119,7 @@ int s1ap_eNB_encode_initiating(s1ap_message *s1ap_message_p,
MessageDef *message_p; MessageDef *message_p;
char *message_string = NULL; char *message_string = NULL;
size_t message_string_size; size_t message_string_size;
MessagesIds message_id;
DevAssert(s1ap_message_p != NULL); DevAssert(s1ap_message_p != NULL);
...@@ -131,24 +132,28 @@ int s1ap_eNB_encode_initiating(s1ap_message *s1ap_message_p, ...@@ -131,24 +132,28 @@ int s1ap_eNB_encode_initiating(s1ap_message *s1ap_message_p,
ret = s1ap_eNB_encode_s1_setup_request( ret = s1ap_eNB_encode_s1_setup_request(
&s1ap_message_p->msg.s1ap_S1SetupRequestIEs, buffer, len); &s1ap_message_p->msg.s1ap_S1SetupRequestIEs, buffer, len);
s1ap_xer_print_s1ap_s1setuprequest(s1ap_xer__print2sp, message_string, s1ap_message_p); s1ap_xer_print_s1ap_s1setuprequest(s1ap_xer__print2sp, message_string, s1ap_message_p);
message_id = S1AP_S1_SETUP_LOG;
break; break;
case S1ap_ProcedureCode_id_uplinkNASTransport: case S1ap_ProcedureCode_id_uplinkNASTransport:
ret = s1ap_eNB_encode_uplink_nas_transport( ret = s1ap_eNB_encode_uplink_nas_transport(
&s1ap_message_p->msg.s1ap_UplinkNASTransportIEs, buffer, len); &s1ap_message_p->msg.s1ap_UplinkNASTransportIEs, buffer, len);
s1ap_xer_print_s1ap_uplinknastransport(s1ap_xer__print2sp, message_string, s1ap_message_p); s1ap_xer_print_s1ap_uplinknastransport(s1ap_xer__print2sp, message_string, s1ap_message_p);
message_id = S1AP_UPLINK_NAS_LOG;
break; break;
case S1ap_ProcedureCode_id_UECapabilityInfoIndication: case S1ap_ProcedureCode_id_UECapabilityInfoIndication:
ret = s1ap_eNB_encode_ue_capability_info_indication( ret = s1ap_eNB_encode_ue_capability_info_indication(
&s1ap_message_p->msg.s1ap_UECapabilityInfoIndicationIEs, buffer, len); &s1ap_message_p->msg.s1ap_UECapabilityInfoIndicationIEs, buffer, len);
s1ap_xer_print_s1ap_uecapabilityinfoindication(s1ap_xer__print2sp, message_string, s1ap_message_p); s1ap_xer_print_s1ap_uecapabilityinfoindication(s1ap_xer__print2sp, message_string, s1ap_message_p);
message_id = S1AP_UE_CAPABILITY_IND_LOG;
break; break;
case S1ap_ProcedureCode_id_initialUEMessage: case S1ap_ProcedureCode_id_initialUEMessage:
ret = s1ap_eNB_encode_initial_ue_message( ret = s1ap_eNB_encode_initial_ue_message(
&s1ap_message_p->msg.s1ap_InitialUEMessageIEs, buffer, len); &s1ap_message_p->msg.s1ap_InitialUEMessageIEs, buffer, len);
s1ap_xer_print_s1ap_initialuemessage(s1ap_xer__print2sp, message_string, s1ap_message_p); s1ap_xer_print_s1ap_initialuemessage(s1ap_xer__print2sp, message_string, s1ap_message_p);
message_id = S1AP_INITIAL_UE_MESSAGE_LOG;
break; break;
case S1ap_ProcedureCode_id_NASNonDeliveryIndication: case S1ap_ProcedureCode_id_NASNonDeliveryIndication:
...@@ -156,18 +161,21 @@ int s1ap_eNB_encode_initiating(s1ap_message *s1ap_message_p, ...@@ -156,18 +161,21 @@ int s1ap_eNB_encode_initiating(s1ap_message *s1ap_message_p,
&s1ap_message_p->msg.s1ap_NASNonDeliveryIndication_IEs, buffer, len); &s1ap_message_p->msg.s1ap_NASNonDeliveryIndication_IEs, buffer, len);
s1ap_xer_print_s1ap_nasnondeliveryindication_(s1ap_xer__print2sp, s1ap_xer_print_s1ap_nasnondeliveryindication_(s1ap_xer__print2sp,
message_string, s1ap_message_p); message_string, s1ap_message_p);
message_id = S1AP_NAS_NON_DELIVERY_IND_LOG;
break; break;
default: default:
S1AP_DEBUG("Unknown procedure ID (%d) for initiating message\n", S1AP_DEBUG("Unknown procedure ID (%d) for initiating message\n",
(int)s1ap_message_p->procedureCode); (int)s1ap_message_p->procedureCode);
return ret;
break; break;
} }
message_string_size = strlen(message_string); message_string_size = strlen(message_string);
message_p = itti_alloc_new_message_sized(TASK_S1AP, GENERIC_LOG, message_string_size); message_p = itti_alloc_new_message_sized(TASK_S1AP, message_id, message_string_size + sizeof (IttiMsgText));
memcpy(&message_p->ittiMsg.generic_log, message_string, message_string_size); message_p->ittiMsg.s1ap_s1_setup_log.size = message_string_size;
memcpy(&message_p->ittiMsg.s1ap_s1_setup_log.text, message_string, message_string_size);
itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p); itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p);
...@@ -184,6 +192,7 @@ int s1ap_eNB_encode_successfull_outcome(s1ap_message *s1ap_message_p, ...@@ -184,6 +192,7 @@ int s1ap_eNB_encode_successfull_outcome(s1ap_message *s1ap_message_p,
MessageDef *message_p; MessageDef *message_p;
char *message_string = NULL; char *message_string = NULL;
size_t message_string_size; size_t message_string_size;
MessagesIds message_id;
DevAssert(s1ap_message_p != NULL); DevAssert(s1ap_message_p != NULL);
...@@ -196,17 +205,21 @@ int s1ap_eNB_encode_successfull_outcome(s1ap_message *s1ap_message_p, ...@@ -196,17 +205,21 @@ int s1ap_eNB_encode_successfull_outcome(s1ap_message *s1ap_message_p,
ret = s1ap_eNB_encode_initial_context_setup_response( ret = s1ap_eNB_encode_initial_context_setup_response(
&s1ap_message_p->msg.s1ap_InitialContextSetupResponseIEs, buffer, len); &s1ap_message_p->msg.s1ap_InitialContextSetupResponseIEs, buffer, len);
s1ap_xer_print_s1ap_initialcontextsetupresponse(s1ap_xer__print2sp, message_string, s1ap_message_p); s1ap_xer_print_s1ap_initialcontextsetupresponse(s1ap_xer__print2sp, message_string, s1ap_message_p);
message_id = S1AP_INITIAL_CONTEXT_SETUP_LOG;
break; break;
default: default:
S1AP_DEBUG("Unknown procedure ID (%d) for successfull outcome message\n", S1AP_DEBUG("Unknown procedure ID (%d) for successfull outcome message\n",
(int)s1ap_message_p->procedureCode); (int)s1ap_message_p->procedureCode);
return ret;
break; break;
} }
message_string_size = strlen(message_string); message_string_size = strlen(message_string);
message_p = itti_alloc_new_message_sized(TASK_S1AP, GENERIC_LOG, message_string_size); message_p = itti_alloc_new_message_sized(TASK_S1AP, message_id, message_string_size + sizeof (IttiMsgText));
memcpy(&message_p->ittiMsg.generic_log, message_string, message_string_size); message_p->ittiMsg.s1ap_initial_context_setup_log.size = message_string_size;
memcpy(&message_p->ittiMsg.s1ap_initial_context_setup_log.text, message_string, message_string_size);
itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p); itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p);
...@@ -223,6 +236,7 @@ int s1ap_eNB_encode_unsuccessfull_outcome(s1ap_message *s1ap_message_p, ...@@ -223,6 +236,7 @@ int s1ap_eNB_encode_unsuccessfull_outcome(s1ap_message *s1ap_message_p,
MessageDef *message_p; MessageDef *message_p;
char *message_string = NULL; char *message_string = NULL;
size_t message_string_size; size_t message_string_size;
MessagesIds message_id;
DevAssert(s1ap_message_p != NULL); DevAssert(s1ap_message_p != NULL);
...@@ -235,16 +249,20 @@ int s1ap_eNB_encode_unsuccessfull_outcome(s1ap_message *s1ap_message_p, ...@@ -235,16 +249,20 @@ int s1ap_eNB_encode_unsuccessfull_outcome(s1ap_message *s1ap_message_p,
// ret = s1ap_encode_s1ap_initialcontextsetupfailureies( // ret = s1ap_encode_s1ap_initialcontextsetupfailureies(
// &s1ap_message_p->ittiMsg.s1ap_InitialContextSetupFailureIEs, buffer, len); // &s1ap_message_p->ittiMsg.s1ap_InitialContextSetupFailureIEs, buffer, len);
s1ap_xer_print_s1ap_initialcontextsetupfailure(s1ap_xer__print2sp, message_string, s1ap_message_p); s1ap_xer_print_s1ap_initialcontextsetupfailure(s1ap_xer__print2sp, message_string, s1ap_message_p);
message_id = S1AP_INITIAL_CONTEXT_SETUP_LOG;
break; break;
default: default:
S1AP_DEBUG("Unknown procedure ID (%d) for unsuccessfull outcome message\n", S1AP_DEBUG("Unknown procedure ID (%d) for unsuccessfull outcome message\n",
(int)s1ap_message_p->procedureCode); (int)s1ap_message_p->procedureCode);
return ret;
break; break;
} }
message_string_size = strlen(message_string); message_string_size = strlen(message_string);
message_p = itti_alloc_new_message_sized(TASK_S1AP, GENERIC_LOG, message_string_size); message_p = itti_alloc_new_message_sized(TASK_S1AP, message_id, message_string_size + sizeof (IttiMsgText));
memcpy(&message_p->ittiMsg.generic_log, message_string, message_string_size); message_p->ittiMsg.s1ap_initial_context_setup_log.size = message_string_size;
memcpy(&message_p->ittiMsg.s1ap_initial_context_setup_log.text, message_string, message_string_size);
itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p); itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p);
......
...@@ -58,6 +58,7 @@ static int s1ap_mme_decode_initiating( ...@@ -58,6 +58,7 @@ static int s1ap_mme_decode_initiating(
MessageDef *message_p; MessageDef *message_p;
char *message_string = NULL; char *message_string = NULL;
size_t message_string_size; size_t message_string_size;
MessagesIds message_id;
DevAssert(initiating_p != NULL); DevAssert(initiating_p != NULL);
...@@ -73,6 +74,7 @@ static int s1ap_mme_decode_initiating( ...@@ -73,6 +74,7 @@ static int s1ap_mme_decode_initiating(
&message->msg.s1ap_UplinkNASTransportIEs, &initiating_p->value); &message->msg.s1ap_UplinkNASTransportIEs, &initiating_p->value);
s1ap_xer_print_s1ap_uplinknastransport(s1ap_xer__print2sp, message_string, s1ap_xer_print_s1ap_uplinknastransport(s1ap_xer__print2sp, message_string,
message); message);
message_id = S1AP_UPLINK_NAS_LOG;
} }
break; break;
...@@ -80,6 +82,7 @@ static int s1ap_mme_decode_initiating( ...@@ -80,6 +82,7 @@ static int s1ap_mme_decode_initiating(
ret = s1ap_decode_s1ap_s1setuprequesties(&message->msg.s1ap_S1SetupRequestIEs, ret = s1ap_decode_s1ap_s1setuprequesties(&message->msg.s1ap_S1SetupRequestIEs,
&initiating_p->value); &initiating_p->value);
s1ap_xer_print_s1ap_s1setuprequest(s1ap_xer__print2sp, message_string, message); s1ap_xer_print_s1ap_s1setuprequest(s1ap_xer__print2sp, message_string, message);
message_id = S1AP_S1_SETUP_LOG;
} }
break; break;
...@@ -89,6 +92,7 @@ static int s1ap_mme_decode_initiating( ...@@ -89,6 +92,7 @@ static int s1ap_mme_decode_initiating(
&initiating_p->value); &initiating_p->value);
s1ap_xer_print_s1ap_initialuemessage(s1ap_xer__print2sp, message_string, s1ap_xer_print_s1ap_initialuemessage(s1ap_xer__print2sp, message_string,
message); message);
message_id = S1AP_INITIAL_UE_MESSAGE_LOG;
} }
break; break;
...@@ -97,6 +101,7 @@ static int s1ap_mme_decode_initiating( ...@@ -97,6 +101,7 @@ static int s1ap_mme_decode_initiating(
&message->msg.s1ap_UEContextReleaseRequestIEs, &initiating_p->value); &message->msg.s1ap_UEContextReleaseRequestIEs, &initiating_p->value);
s1ap_xer_print_s1ap_uecontextreleaserequest(s1ap_xer__print2sp, message_string, s1ap_xer_print_s1ap_uecontextreleaserequest(s1ap_xer__print2sp, message_string,
message); message);
message_id = S1AP_UE_CONTEXT_RELEASE_REQ_LOG;
} }
break; break;
...@@ -105,6 +110,7 @@ static int s1ap_mme_decode_initiating( ...@@ -105,6 +110,7 @@ static int s1ap_mme_decode_initiating(
&message->msg.s1ap_UECapabilityInfoIndicationIEs, &initiating_p->value); &message->msg.s1ap_UECapabilityInfoIndicationIEs, &initiating_p->value);
s1ap_xer_print_s1ap_uecapabilityinfoindication(s1ap_xer__print2sp, s1ap_xer_print_s1ap_uecapabilityinfoindication(s1ap_xer__print2sp,
message_string, message); message_string, message);
message_id = S1AP_UE_CAPABILITY_IND_LOG;
} }
break; break;
...@@ -117,9 +123,9 @@ static int s1ap_mme_decode_initiating( ...@@ -117,9 +123,9 @@ static int s1ap_mme_decode_initiating(
message_string_size = strlen(message_string); message_string_size = strlen(message_string);
message_p = itti_alloc_new_message_sized(TASK_S1AP, GENERIC_LOG, message_p = itti_alloc_new_message_sized(TASK_S1AP, message_id, message_string_size + sizeof (IttiMsgText));
message_string_size); message_p->ittiMsg.s1ap_uplink_nas_log.size = message_string_size;
memcpy(&message_p->ittiMsg.generic_log, message_string, message_string_size); memcpy(&message_p->ittiMsg.s1ap_uplink_nas_log.text, message_string, message_string_size);
itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p); itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p);
...@@ -136,6 +142,7 @@ static int s1ap_mme_decode_successfull_outcome( ...@@ -136,6 +142,7 @@ static int s1ap_mme_decode_successfull_outcome(
MessageDef *message_p; MessageDef *message_p;
char *message_string = NULL; char *message_string = NULL;
size_t message_string_size; size_t message_string_size;
MessagesIds message_id;
DevAssert(successfullOutcome_p != NULL); DevAssert(successfullOutcome_p != NULL);
...@@ -152,15 +159,19 @@ static int s1ap_mme_decode_successfull_outcome( ...@@ -152,15 +159,19 @@ static int s1ap_mme_decode_successfull_outcome(
&successfullOutcome_p->value); &successfullOutcome_p->value);
s1ap_xer_print_s1ap_initialcontextsetupresponse(s1ap_xer__print2sp, s1ap_xer_print_s1ap_initialcontextsetupresponse(s1ap_xer__print2sp,
message_string, message); message_string, message);
message_id = S1AP_INITIAL_CONTEXT_SETUP_LOG;
} }
break; break;
case S1ap_ProcedureCode_id_UEContextRelease: { case S1ap_ProcedureCode_id_UEContextRelease: {
ret = s1ap_decode_s1ap_uecontextreleasecompleteies( ret = s1ap_decode_s1ap_uecontextreleasecompleteies(
&message->msg.s1ap_UEContextReleaseCompleteIEs, &successfullOutcome_p->value); &message->msg.s1ap_UEContextReleaseCompleteIEs, &successfullOutcome_p->value);
s1ap_xer_print_s1ap_uecontextreleasecomplete(s1ap_xer__print2sp, s1ap_xer_print_s1ap_uecontextreleasecomplete(s1ap_xer__print2sp,
message_string, message); message_string, message);
message_id = S1AP_UE_CONTEXT_RELEASE_LOG;
} }
break; break;
default: { default: {
S1AP_ERROR("Unknown procedure ID (%ld) for successfull outcome message\n", S1AP_ERROR("Unknown procedure ID (%ld) for successfull outcome message\n",
successfullOutcome_p->procedureCode); successfullOutcome_p->procedureCode);
...@@ -170,9 +181,9 @@ static int s1ap_mme_decode_successfull_outcome( ...@@ -170,9 +181,9 @@ static int s1ap_mme_decode_successfull_outcome(
message_string_size = strlen(message_string); message_string_size = strlen(message_string);
message_p = itti_alloc_new_message_sized(TASK_S1AP, GENERIC_LOG, message_p = itti_alloc_new_message_sized(TASK_S1AP, message_id, message_string_size + sizeof (IttiMsgText));
message_string_size); message_p->ittiMsg.s1ap_initial_context_setup_log.size = message_string_size;
memcpy(&message_p->ittiMsg.generic_log, message_string, message_string_size); memcpy(&message_p->ittiMsg.s1ap_initial_context_setup_log.text, message_string, message_string_size);
itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p); itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p);
...@@ -189,6 +200,7 @@ static int s1ap_mme_decode_unsuccessfull_outcome( ...@@ -189,6 +200,7 @@ static int s1ap_mme_decode_unsuccessfull_outcome(
MessageDef *message_p; MessageDef *message_p;
char *message_string = NULL; char *message_string = NULL;
size_t message_string_size; size_t message_string_size;
MessagesIds message_id;
DevAssert(unSuccessfulOutcome_p != NULL); DevAssert(unSuccessfulOutcome_p != NULL);
...@@ -204,8 +216,10 @@ static int s1ap_mme_decode_unsuccessfull_outcome( ...@@ -204,8 +216,10 @@ static int s1ap_mme_decode_unsuccessfull_outcome(
&message->msg.s1ap_InitialContextSetupFailureIEs, &unSuccessfulOutcome_p->value); &message->msg.s1ap_InitialContextSetupFailureIEs, &unSuccessfulOutcome_p->value);
s1ap_xer_print_s1ap_initialcontextsetupfailure(s1ap_xer__print2sp, s1ap_xer_print_s1ap_initialcontextsetupfailure(s1ap_xer__print2sp,
message_string, message); message_string, message);
message_id = S1AP_INITIAL_CONTEXT_SETUP_LOG;
} }
break; break;
default: { default: {
S1AP_ERROR("Unknown procedure ID (%d) for unsuccessfull outcome message\n", S1AP_ERROR("Unknown procedure ID (%d) for unsuccessfull outcome message\n",
(int)unSuccessfulOutcome_p->procedureCode); (int)unSuccessfulOutcome_p->procedureCode);
...@@ -215,9 +229,9 @@ static int s1ap_mme_decode_unsuccessfull_outcome( ...@@ -215,9 +229,9 @@ static int s1ap_mme_decode_unsuccessfull_outcome(
message_string_size = strlen(message_string); message_string_size = strlen(message_string);
message_p = itti_alloc_new_message_sized(TASK_S1AP, GENERIC_LOG, message_p = itti_alloc_new_message_sized(TASK_S1AP, message_id, message_string_size + sizeof (IttiMsgText));
message_string_size); message_p->ittiMsg.s1ap_initial_context_setup_log.size = message_string_size;
memcpy(&message_p->ittiMsg.generic_log, message_string, message_string_size); memcpy(&message_p->ittiMsg.s1ap_initial_context_setup_log.text, message_string, message_string_size);
itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p); itti_send_msg_to_task(TASK_UNKNOWN, INSTANCE_DEFAULT, message_p);
......
/* Messages for S1AP logging */
MESSAGE_DEF(S1AP_UPLINK_NAS_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_uplink_nas_log)
MESSAGE_DEF(S1AP_UE_CAPABILITY_IND_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_ue_capability_ind_log)
MESSAGE_DEF(S1AP_INITIAL_CONTEXT_SETUP_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_initial_context_setup_log)
MESSAGE_DEF(S1AP_NAS_NON_DELIVERY_IND_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_nas_non_delivery_ind_log)
MESSAGE_DEF(S1AP_DOWNLINK_NAS_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_downlink_nas_log)
MESSAGE_DEF(S1AP_S1_SETUP_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_s1_setup_log)
MESSAGE_DEF(S1AP_INITIAL_UE_MESSAGE_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_initial_ue_message_log)
MESSAGE_DEF(S1AP_UE_CONTEXT_RELEASE_REQ_LOG, MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_ue_context_release_req_log)
MESSAGE_DEF(S1AP_UE_CONTEXT_RELEASE_LOG , MESSAGE_PRIORITY_MED, IttiMsgText , s1ap_ue_context_release_log)
/* eNB application layer -> S1AP messages */ /* eNB application layer -> S1AP messages */
MESSAGE_DEF(S1AP_REGISTER_ENB_REQ , MESSAGE_PRIORITY_MED, s1ap_register_enb_req_t , s1ap_register_enb_req) MESSAGE_DEF(S1AP_REGISTER_ENB_REQ , MESSAGE_PRIORITY_MED, s1ap_register_enb_req_t , s1ap_register_enb_req)
......
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