diff --git a/openair2/COMMON/messages_def.h b/openair2/COMMON/messages_def.h index 5db487b599f28eaffa82b0240cc90864370b7b66..4b14c7e9b0f33000d3a64fece6c12ff6aad29a66 100644 --- a/openair2/COMMON/messages_def.h +++ b/openair2/COMMON/messages_def.h @@ -13,4 +13,5 @@ #include "s1ap_messages_def.h" #include "x2ap_messages_def.h" #include "sctp_messages_def.h" +#include "udp_messages_def.h" diff --git a/openair2/COMMON/messages_types.h b/openair2/COMMON/messages_types.h index dcceaa009863104758118829774dac55eec6c751..8bebeb997ea107d395281a027f6318db5063d459 100644 --- a/openair2/COMMON/messages_types.h +++ b/openair2/COMMON/messages_types.h @@ -21,5 +21,6 @@ #include "s1ap_messages_types.h" #include "x2ap_messages_types.h" #include "sctp_messages_types.h" +#include "udp_messages_types.h" #endif /* MESSAGES_TYPES_H_ */ diff --git a/openair2/COMMON/tasks_def.h b/openair2/COMMON/tasks_def.h index b30f91cedf886cfa99e498c678010814dd166b44..db4b4621ced2ecd3e2a108d56cc40d6e667dd22e 100644 --- a/openair2/COMMON/tasks_def.h +++ b/openair2/COMMON/tasks_def.h @@ -23,6 +23,10 @@ SUB_TASK_DEF(TASK_L2L1, TASK_PDCP_ENB, 200) /// RAL task for ENB TASK_DEF(TASK_RAL_ENB, TASK_PRIORITY_MED, 200) + // UDP TASK + TASK_DEF(TASK_UDP, TASK_PRIORITY_MED, 200) + // GTP_V1U task + TASK_DEF(TASK_GTPU, TASK_PRIORITY_MED, 200) TASK_DEF(TASK_S1AP, TASK_PRIORITY_MED, 200) /// X2ap task, acts as both source and target TASK_DEF(TASK_X2AP, TASK_PRIORITY_MED, 200) diff --git a/openair2/COMMON/udp_messages_def.h b/openair2/COMMON/udp_messages_def.h new file mode 100755 index 0000000000000000000000000000000000000000..08e98b801e444b056c6c61e8217d39be5d59c18b --- /dev/null +++ b/openair2/COMMON/udp_messages_def.h @@ -0,0 +1,3 @@ +MESSAGE_DEF(UDP_INIT, MESSAGE_PRIORITY_MED, udp_init_t, udp_init) +MESSAGE_DEF(UDP_DATA_REQ, MESSAGE_PRIORITY_MED, udp_data_req_t, udp_data_req) +MESSAGE_DEF(UDP_DATA_IND, MESSAGE_PRIORITY_MED, udp_data_ind_t, udp_data_ind) diff --git a/openair2/COMMON/udp_messages_types.h b/openair2/COMMON/udp_messages_types.h new file mode 100755 index 0000000000000000000000000000000000000000..f548b2b0bc52a0b030d5dcc97cf1804a24d92069 --- /dev/null +++ b/openair2/COMMON/udp_messages_types.h @@ -0,0 +1,18 @@ +#ifndef UDP_MESSAGES_TYPES_H_ +#define UDP_MESSAGES_TYPES_H_ + +#define UDP_INIT(mSGpTR) (mSGpTR)->ittiMsg.udp_init + +typedef struct { + uint32_t port; + char *address; +} udp_init_t; + +typedef struct { + uint8_t *buffer; + uint32_t buffer_length; + uint32_t peer_address; + uint32_t peer_port; +} udp_data_req_t, udp_data_ind_t; + +#endif /* UDP_MESSAGES_TYPES_H_ */