From cdbc8d1ab0ce96676fb91dec86c830ea5169dc2b Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Tue, 17 Oct 2017 00:56:00 +0900 Subject: [PATCH] MAC OSX ping loopback test done --- configure.ac | 2 +- lib/core/src/unix/net_lib.c | 2 ++ support/nextepc.conf.in | 2 +- test/attach_test.c | 2 -- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 2a24aa0db..e7b3568d5 100644 --- a/configure.ac +++ b/configure.ac @@ -207,7 +207,7 @@ AC_CHECK_HEADERS( \ sys/uio.h \ ) -AC_CHECK_HEADERS(netinet/ip.h,,,[[ +AC_CHECK_HEADERS(netinet/ip.h net/route.h,,,[[ #include #if HAVE_SYS_SOCKET_H #include diff --git a/lib/core/src/unix/net_lib.c b/lib/core/src/unix/net_lib.c index c2762d142..47b1c2351 100644 --- a/lib/core/src/unix/net_lib.c +++ b/lib/core/src/unix/net_lib.c @@ -16,7 +16,9 @@ #include #endif +#if HAVE_NET_ROUTE_H #include +#endif #define NET_FD_TYPE_SOCK 0 #define NET_FD_TYPE_LINK 1 diff --git a/support/nextepc.conf.in b/support/nextepc.conf.in index 464267512..d21230358 100644 --- a/support/nextepc.conf.in +++ b/support/nextepc.conf.in @@ -81,7 +81,7 @@ IP_POOL : { - CIDR: 45.45.0.1/24 + CIDR: 45.45.0.1/16 } DNS : diff --git a/test/attach_test.c b/test/attach_test.c index 88f5d910c..c6400c399 100644 --- a/test/attach_test.c +++ b/test/attach_test.c @@ -298,12 +298,10 @@ static void attach_test1(abts_case *tc, void *data) rv = testgtpu_enb_send(gtpu); ABTS_INT_EQUAL(tc, CORE_OK, rv); -#if LINUX == 1 /* Receive GTP-U ICMP Packet */ recvbuf = pkbuf_alloc(0, MAX_SDU_LEN); rc = testgtpu_enb_read(gtpu, recvbuf); pkbuf_free(recvbuf); -#endif /***************************************************************** * Attach Request : Known GUTI, Integrity Protected, MAC Matched