Commit b900880d authored by Cedric Roux's avatar Cedric Roux

- handle TERMINATE_MESSAGE in EPC layers

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4547 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 60dc6519
......@@ -449,6 +449,9 @@ static void *gtpv1u_thread(void *args)
free(data_req_p->buffer);
}
break;
case TERMINATE_MESSAGE: {
itti_exit_task();
} break;
case TIMER_HAS_EXPIRED:
nwGtpv1uProcessTimeout(&received_message_p->ittiMsg.timer_has_expired.arg);
break;
......
......@@ -79,6 +79,9 @@ next_message:
itti_send_msg_to_task(TASK_MME_APP, INSTANCE_DEFAULT, message_p);
} break;
case TERMINATE_MESSAGE: {
itti_exit_task();
} break;
default: {
NAS_DEBUG("Unkwnon message ID %d:%s\n",
ITTI_MSG_ID(received_message_p),
......
......@@ -144,6 +144,9 @@ void *s1ap_mme_thread(void *args)
case TIMER_HAS_EXPIRED: {
s1ap_handle_timer_expiry(&received_message_p->ittiMsg.timer_has_expired);
} break;
case TERMINATE_MESSAGE: {
itti_exit_task();
} break;
default: {
S1AP_DEBUG("Unkwnon message ID %d:%s\n",
ITTI_MSG_ID(received_message_p), ITTI_MSG_NAME(received_message_p));
......
......@@ -86,6 +86,9 @@ void *s6a_thread(void *args)
case S6A_AUTH_INFO_REQ: {
s6a_generate_authentication_info_req(&received_message_p->ittiMsg.s6a_auth_info_req);
} break;
case TERMINATE_MESSAGE: {
itti_exit_task();
} break;
default: {
S6A_DEBUG("Unkwnon message ID %d:%s\n",
ITTI_MSG_ID(received_message_p), ITTI_MSG_NAME(received_message_p));
......
......@@ -612,8 +612,11 @@ static void *sctp_intertask_interface(void *args_p)
}
} break;
case MESSAGE_TEST: {
int i = 10000;
while(i--);
// int i = 10000;
// while(i--);
} break;
case TERMINATE_MESSAGE: {
itti_exit_task();
} break;
default: {
SCTP_DEBUG("Unkwnon message ID %d:%s\n",
......
......@@ -16,6 +16,7 @@ static char fw_2_print_buffer[FW_2_PRINT_BUFFER_LEN];
void sgi_print_hex_octets(unsigned char* dataP, unsigned long sizeP)
//-----------------------------------------------------------------------------
{
return;
unsigned long octet_index = 0;
unsigned long buffer_marker = 0;
unsigned char aindex;
......
......@@ -90,6 +90,10 @@ static void *sgw_lite_intertask_interface(void *args_p)
sgw_lite_handle_sgi_endpoint_updated(&received_message_p->ittiMsg.sgiUpdateEndpointResp);
} break;
case TERMINATE_MESSAGE: {
itti_exit_task();
} break;
default: {
SPGW_APP_DEBUG("Unkwnon message ID %d:%s\n",
ITTI_MSG_ID(received_message_p), ITTI_MSG_NAME(received_message_p));
......
......@@ -256,6 +256,9 @@ static void *udp_intertask_interface(void *args_p)
"(%d:%s)\n", errno, strerror(errno));
}
} break;
case TERMINATE_MESSAGE: {
itti_exit_task();
} break;
case MESSAGE_TEST: {
} break;
default: {
......
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