update it

This commit is contained in:
Sukchan Lee 2017-03-23 23:15:55 +09:00
parent 52ae136923
commit 120716eeeb
5 changed files with 15 additions and 13 deletions

View File

@ -7,6 +7,9 @@
extern "C" {
#endif /* __cplusplus */
#define S11_UDP_PORT 2123
#define S5_UDP_PORT 2152
CORE_DECLARE(status_t) gtp_open(net_sock_t **sock, net_sock_handler handler,
void *data, const c_uint32_t addr, const c_uint16_t port);
CORE_DECLARE(status_t) gtp_close(net_sock_t *sock);

View File

@ -7,7 +7,7 @@ libmme_la_SOURCES = \
event.h context.h \
s1ap_build.h s1ap_conv.h s1ap_path.h \
nas_conv.h nas_security.h \
gtp_path.h \
s11_path.h \
sm.h s6a_sm.h
nodist_libmme_la_SOURCES = \
@ -15,7 +15,7 @@ nodist_libmme_la_SOURCES = \
init.c event.c context.c \
s1ap_build.c s1ap_conv.c s1ap_path.c \
nas_conv.c nas_security.c \
gtp_path.c \
s11_path.c \
mme_sm.c enb_s1ap_sm.c ue_emm_sm.c s6a_sm.c
libmme_la_DEPENDENCIES = \

View File

@ -8,6 +8,7 @@
#include "context.h"
#include "nas_ies.h"
#include "s1ap_message.h"
#include "gtp_path.h"
#define CELL_PER_ENB 8
#define UE_PER_ENB 128
@ -18,8 +19,6 @@
#define SIZE_OF_RAB_POOL (SIZE_OF_UE_POOL * RAB_PER_UE)
#define S1AP_SCTP_PORT 36412
#define S11_UDP_PORT 2123
#define S5_UDP_PORT 2152
static mme_ctx_t self;
@ -50,7 +49,7 @@ status_t mme_ctx_init()
self.sgw_remote_addr = inet_addr("127.0.0.1");
self.s11_local_port = S11_UDP_PORT;
self.s11_remote_port = S11_UDP_PORT + 1;
self.s11_remote_port = S11_UDP_PORT + 1; /* for loopback testing */
self.plmn_id.mnc_len = 2;
self.plmn_id.mcc = 1; /* 001 */

View File

@ -4,14 +4,14 @@
#include "core_net.h"
#include "3gpp_message.h"
#include "gtp_path.h"
#include "s11_path.h"
status_t mme_gtp_open()
status_t mme_s11_open()
{
return CORE_OK;
}
status_t mme_gtp_close()
status_t mme_s11_close()
{
return CORE_OK;
}

View File

@ -1,5 +1,5 @@
#ifndef __MME_GTP_PATH_H__
#define __MME_GTP_PATH_H__
#ifndef __MME_S11_PATH_H__
#define __MME_S11_PATH_H__
#include "core.h"
@ -7,8 +7,8 @@
extern "C" {
#endif /* __cplusplus */
CORE_DECLARE(status_t) mme_gtp_open();
CORE_DECLARE(status_t) mme_gtp_close();
CORE_DECLARE(status_t) mme_s11_open();
CORE_DECLARE(status_t) mme_s11_close();
CORE_DECLARE(status_t) mme_s11_send_to_sgw(pkbuf_t *pkbuf);
@ -16,4 +16,4 @@ CORE_DECLARE(status_t) mme_s11_send_to_sgw(pkbuf_t *pkbuf);
}
#endif /* __cplusplus */
#endif /* __MME_GTP_PATH_H__ */
#endif /* __MME_S11_PATH_H__ */