MAC OSX is needed to enable IP fowwarding

This commit is contained in:
Sukchan Lee 2017-10-17 07:44:48 +09:00
parent a20c96bc21
commit b9f4dcf4ea
2 changed files with 5 additions and 1 deletions

View File

@ -25,3 +25,7 @@ Install FreeDiameter, MongoDB C driver
===========================================
- brew install freediamter
- brew install mongo-c-driver
Enable IP Fowarding
====================
- sysctl -w net.inet.ip.forwarding=1

View File

@ -165,7 +165,7 @@ int testgtpu_enb_send(net_sock_t *sock)
ip_h->ip_p = IPPROTO_ICMP;
ip_h->ip_len = gtp_h->length;
ip_h->ip_src.s_addr = inet_addr("45.45.0.2");
ip_h->ip_dst.s_addr = inet_addr("45.45.0.1");
ip_h->ip_dst.s_addr = inet_addr("10.1.35.215");
ip_h->ip_sum = in_cksum(
(unsigned short *)ip_h, sizeof(struct ip));