Skip to content
Snippets Groups Projects
Commit 81e8976c authored by Lionel Gauthier's avatar Lionel Gauthier
Browse files

format code

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5188 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 9a6835f0
Branches
Tags
No related merge requests found
/******************************************************************************* /*******************************************************************************
Eurecom OpenAirInterface core network
Eurecom OpenAirInterface Copyright(c) 1999 - 2014 Eurecom
Copyright(c) 1999 - 2012 Eurecom
This program is free software; you can redistribute it and/or modify it This program is free software; you can redistribute it and/or modify it
under the terms and conditions of the GNU General Public License, under the terms and conditions of the GNU General Public License,
...@@ -22,11 +21,20 @@ ...@@ -22,11 +21,20 @@
Contact Information Contact Information
Openair Admin: openair_admin@eurecom.fr Openair Admin: openair_admin@eurecom.fr
Openair Tech : openair_tech@eurecom.fr Openair Tech : openair_tech@eurecom.fr
Forums : http://forums.eurecom.fr/openairinterface Forums : http://forums.eurecom.fsr/openairinterface
Address : EURECOM, Campus SophiaTech, 450 Route des Chappes Address : EURECOM,
06410 Biot FRANCE Campus SophiaTech,
450 Route des Chappes,
CS 50193
06904 Biot Sophia Antipolis cedex,
FRANCE
*******************************************************************************/ *******************************************************************************/
/*! \file udp_primitives_server.c
* \brief
* \author Sebastien ROUX, Lionel Gauthier
* \company Eurecom
* \email: lionel.gauthier@eurecom.fr
*/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -207,9 +215,12 @@ static void *udp_intertask_interface(void *args_p) ...@@ -207,9 +215,12 @@ static void *udp_intertask_interface(void *args_p)
case UDP_INIT: { case UDP_INIT: {
udp_init_t *udp_init_p; udp_init_t *udp_init_p;
udp_init_p = &received_message_p->ittiMsg.udp_init; udp_init_p = &received_message_p->ittiMsg.udp_init;
udp_create_socket(udp_init_p->port, udp_init_p->address, udp_create_socket(
udp_init_p->port,
udp_init_p->address,
ITTI_MSG_ORIGIN_ID(received_message_p)); ITTI_MSG_ORIGIN_ID(received_message_p));
} break; } break;
case UDP_DATA_REQ: { case UDP_DATA_REQ: {
int udp_sd = -1; int udp_sd = -1;
ssize_t bytes_written; ssize_t bytes_written;
...@@ -256,11 +267,14 @@ static void *udp_intertask_interface(void *args_p) ...@@ -256,11 +267,14 @@ static void *udp_intertask_interface(void *args_p)
"(%d:%s)\n", errno, strerror(errno)); "(%d:%s)\n", errno, strerror(errno));
} }
} break; } break;
case TERMINATE_MESSAGE: { case TERMINATE_MESSAGE: {
itti_exit_task(); itti_exit_task();
} break; } break;
case MESSAGE_TEST: { case MESSAGE_TEST: {
} break; } break;
default: { default: {
UDP_DEBUG("Unkwnon message ID %d:%s\n", UDP_DEBUG("Unkwnon message ID %d:%s\n",
ITTI_MSG_ID(received_message_p), ITTI_MSG_NAME(received_message_p)); ITTI_MSG_ID(received_message_p), ITTI_MSG_NAME(received_message_p));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment