From 0c05208981e8cdae88cb6e6471b14aa8b2fc07b8 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Tue, 11 Apr 2017 15:13:30 +0900 Subject: [PATCH] update it --- main.c | 4 +--- src/mme/esm_handler.c | 12 +++++++++--- src/mme/mme_s11_path.c | 12 ------------ 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/main.c b/main.c index 543982756..9ee71786b 100644 --- a/main.c +++ b/main.c @@ -48,8 +48,6 @@ static int check_signal(int signum) } case SIGUSR1: { - extern void test_send(); - test_send(); break; } default: @@ -118,9 +116,9 @@ int main(int argc, char *argv[]) } { +#if 0 extern int _gtp_xact; d_trace_level(&_gtp_xact, 100); -#if 0 extern int _mme_sm; d_trace_level(&_mme_sm, 100); extern int _s1ap_sm; diff --git a/src/mme/esm_handler.c b/src/mme/esm_handler.c index 5a79918e6..5419e5291 100644 --- a/src/mme/esm_handler.c +++ b/src/mme/esm_handler.c @@ -4,10 +4,10 @@ #include "nas_message.h" +#include "mme_context.h" #include "mme_event.h" - -#include "nas_security.h" -#include "nas_conv.h" +#include "mme_s11_build.h" +#include "mme_s11_path.h" void esm_handle_pdn_connectivity_request(mme_esm_t *esm, nas_pdn_connectivity_request_t *pdn_connectivity_request) @@ -25,4 +25,10 @@ void esm_handle_pdn_connectivity_request(mme_esm_t *esm, void esm_handle_information_response(mme_esm_t *esm, nas_esm_information_response_t *esm_information_response) { + pkbuf_t *pkbuf; + c_uint8_t type; + c_uint32_t teid = 0; + + mme_s11_build_create_session_req(&type, &pkbuf, NULL); + mme_s11_send_to_sgw(mme_sgw_first(), type, teid, pkbuf); } diff --git a/src/mme/mme_s11_path.c b/src/mme/mme_s11_path.c index f33395e9e..139520801 100644 --- a/src/mme/mme_s11_path.c +++ b/src/mme/mme_s11_path.c @@ -97,15 +97,3 @@ status_t mme_s11_send_to_sgw(void *sgw, return CORE_OK; } - -#include "mme_s11_build.h" -void test_send() -{ - pkbuf_t *pkbuf; - c_uint8_t type; - c_uint32_t teid = 0; - - mme_s11_build_create_session_req(&type, &pkbuf, NULL); - - mme_s11_send_to_sgw(mme_sgw_first(), type, teid, pkbuf); -}