internet, sixlowpan: use win32-internet.h as an alternative to netinet/in.h and sys/socket.h

This commit is contained in:
Gabriel Ferreira
2022-10-08 21:23:38 -03:00
parent a29d8ad552
commit 67c512c3ef
8 changed files with 60 additions and 21 deletions

View File

@@ -12,8 +12,13 @@
#include "ns3/packet.h"
#include "ns3/uinteger.h"
#ifdef __WIN32__
#include "ns3/win32-internet.h"
#else
#include <netinet/in.h>
#include <sys/socket.h>
#endif
#include <sys/types.h>
namespace ns3

View File

@@ -33,8 +33,13 @@
#include "ns3/packet.h"
#include "ns3/uinteger.h"
#ifdef __WIN32__
#include "ns3/win32-internet.h"
#else
#include <netinet/in.h>
#include <sys/socket.h>
#endif
#include <sys/types.h>
namespace ns3

View File

@@ -45,8 +45,13 @@
#include "ns3/udp-socket.h"
#include "ns3/uinteger.h"
#include <limits>
#ifdef __WIN32__
#include "ns3/win32-internet.h"
#else
#include <netinet/in.h>
#endif
#include <limits>
#include <string>
using namespace ns3;

View File

@@ -38,11 +38,16 @@
#include "ns3/test.h"
#include "ns3/traffic-control-layer.h"
#include <limits>
#ifdef __WIN32__
#include "ns3/win32-internet.h"
#else
#include <netinet/in.h>
#include <sys/socket.h>
#endif
#include <limits>
#include <sstream>
#include <string>
#include <sys/socket.h>
#include <sys/types.h>
using namespace ns3;

View File

@@ -40,10 +40,15 @@
#include "ns3/socket.h"
#include "ns3/test.h"
#include <limits>
#ifdef __WIN32__
#include "ns3/win32-internet.h"
#else
#include <netinet/in.h>
#include <string>
#include <sys/socket.h>
#endif
#include <limits>
#include <string>
#include <sys/types.h>
using namespace ns3;

View File

@@ -23,11 +23,20 @@
* This is the test code for ipv6-l3protocol.cc (only the fragmentation and reassembly part).
*/
#include "ns3/arp-l3-protocol.h"
#include "ns3/boolean.h"
#include "ns3/config.h"
#include "ns3/error-channel.h"
#include "ns3/icmpv4-l4-protocol.h"
#include "ns3/icmpv6-l4-protocol.h"
#include "ns3/inet-socket-address.h"
#include "ns3/inet6-socket-address.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-l3-protocol.h"
#include "ns3/ipv4-list-routing.h"
#include "ns3/ipv4-raw-socket-factory.h"
#include "ns3/ipv4-static-routing.h"
#include "ns3/ipv6-l3-protocol.h"
#include "ns3/ipv6-list-routing.h"
#include "ns3/ipv6-raw-socket-factory.h"
#include "ns3/ipv6-static-routing.h"
@@ -38,24 +47,19 @@
#include "ns3/socket-factory.h"
#include "ns3/socket.h"
#include "ns3/test.h"
#include "ns3/traffic-control-layer.h"
#include "ns3/udp-l4-protocol.h"
#include "ns3/udp-socket-factory.h"
#include "ns3/udp-socket.h"
#include "ns3/uinteger.h"
#
#include "ns3/arp-l3-protocol.h"
#include "ns3/error-channel.h"
#include "ns3/icmpv4-l4-protocol.h"
#include "ns3/icmpv6-l4-protocol.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-l3-protocol.h"
#include "ns3/ipv4-list-routing.h"
#include "ns3/ipv4-static-routing.h"
#include "ns3/ipv6-l3-protocol.h"
#include "ns3/traffic-control-layer.h"
#include "ns3/udp-l4-protocol.h"
#ifdef __WIN32__
#include "ns3/win32-internet.h"
#else
#include <netinet/in.h>
#endif
#include <limits>
#include <netinet/in.h>
#include <string>
using namespace ns3;

View File

@@ -42,10 +42,15 @@
#include "ns3/test.h"
#include "ns3/uinteger.h"
#include <limits>
#ifdef __WIN32__
#include "ns3/win32-internet.h"
#else
#include <netinet/in.h>
#include <string>
#include <sys/socket.h>
#endif
#include <limits>
#include <string>
#include <sys/types.h>
using namespace ns3;

View File

@@ -36,8 +36,13 @@
#include "ns3/udp-socket.h"
#include "ns3/uinteger.h"
#include <limits>
#ifdef __WIN32__
#include "ns3/win32-internet.h"
#else
#include <netinet/in.h>
#endif
#include <limits>
#include <string>
using namespace ns3;