update it
This commit is contained in:
parent
52ae136923
commit
120716eeeb
|
@ -7,6 +7,9 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#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,
|
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);
|
void *data, const c_uint32_t addr, const c_uint16_t port);
|
||||||
CORE_DECLARE(status_t) gtp_close(net_sock_t *sock);
|
CORE_DECLARE(status_t) gtp_close(net_sock_t *sock);
|
||||||
|
|
|
@ -7,7 +7,7 @@ libmme_la_SOURCES = \
|
||||||
event.h context.h \
|
event.h context.h \
|
||||||
s1ap_build.h s1ap_conv.h s1ap_path.h \
|
s1ap_build.h s1ap_conv.h s1ap_path.h \
|
||||||
nas_conv.h nas_security.h \
|
nas_conv.h nas_security.h \
|
||||||
gtp_path.h \
|
s11_path.h \
|
||||||
sm.h s6a_sm.h
|
sm.h s6a_sm.h
|
||||||
|
|
||||||
nodist_libmme_la_SOURCES = \
|
nodist_libmme_la_SOURCES = \
|
||||||
|
@ -15,7 +15,7 @@ nodist_libmme_la_SOURCES = \
|
||||||
init.c event.c context.c \
|
init.c event.c context.c \
|
||||||
s1ap_build.c s1ap_conv.c s1ap_path.c \
|
s1ap_build.c s1ap_conv.c s1ap_path.c \
|
||||||
nas_conv.c nas_security.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
|
mme_sm.c enb_s1ap_sm.c ue_emm_sm.c s6a_sm.c
|
||||||
|
|
||||||
libmme_la_DEPENDENCIES = \
|
libmme_la_DEPENDENCIES = \
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include "nas_ies.h"
|
#include "nas_ies.h"
|
||||||
#include "s1ap_message.h"
|
#include "s1ap_message.h"
|
||||||
|
#include "gtp_path.h"
|
||||||
|
|
||||||
#define CELL_PER_ENB 8
|
#define CELL_PER_ENB 8
|
||||||
#define UE_PER_ENB 128
|
#define UE_PER_ENB 128
|
||||||
|
@ -18,8 +19,6 @@
|
||||||
#define SIZE_OF_RAB_POOL (SIZE_OF_UE_POOL * RAB_PER_UE)
|
#define SIZE_OF_RAB_POOL (SIZE_OF_UE_POOL * RAB_PER_UE)
|
||||||
|
|
||||||
#define S1AP_SCTP_PORT 36412
|
#define S1AP_SCTP_PORT 36412
|
||||||
#define S11_UDP_PORT 2123
|
|
||||||
#define S5_UDP_PORT 2152
|
|
||||||
|
|
||||||
static mme_ctx_t self;
|
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.sgw_remote_addr = inet_addr("127.0.0.1");
|
||||||
self.s11_local_port = S11_UDP_PORT;
|
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.mnc_len = 2;
|
||||||
self.plmn_id.mcc = 1; /* 001 */
|
self.plmn_id.mcc = 1; /* 001 */
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
#include "core_net.h"
|
#include "core_net.h"
|
||||||
|
|
||||||
#include "3gpp_message.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;
|
return CORE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t mme_gtp_close()
|
status_t mme_s11_close()
|
||||||
{
|
{
|
||||||
return CORE_OK;
|
return CORE_OK;
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef __MME_GTP_PATH_H__
|
#ifndef __MME_S11_PATH_H__
|
||||||
#define __MME_GTP_PATH_H__
|
#define __MME_S11_PATH_H__
|
||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
CORE_DECLARE(status_t) mme_gtp_open();
|
CORE_DECLARE(status_t) mme_s11_open();
|
||||||
CORE_DECLARE(status_t) mme_gtp_close();
|
CORE_DECLARE(status_t) mme_s11_close();
|
||||||
|
|
||||||
CORE_DECLARE(status_t) mme_s11_send_to_sgw(pkbuf_t *pkbuf);
|
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 /* __cplusplus */
|
||||||
|
|
||||||
#endif /* __MME_GTP_PATH_H__ */
|
#endif /* __MME_S11_PATH_H__ */
|
Loading…
Reference in New Issue