internet, sixlowpan: use win32-internet.h as an alternative to netinet/in.h and sys/socket.h
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user