28 #include "ns3/ipv4-packet-info-tag.h"
29 #include "ns3/ipv4-address.h"
31 #include "ns3/abort.h"
32 #include "ns3/attribute.h"
33 #include "ns3/simple-net-device.h"
34 #include "ns3/object-factory.h"
35 #include "ns3/socket-factory.h"
36 #include "ns3/udp-socket-factory.h"
37 #include "ns3/udp-socket.h"
38 #include "ns3/inet-socket-address.h"
39 #include "ns3/ipv4-l3-protocol.h"
40 #include "ns3/ipv4-raw-socket-factory.h"
41 #include "ns3/ipv4-interface.h"
42 #include "ns3/arp-l3-protocol.h"
43 #include "ns3/icmpv4-l4-protocol.h"
44 #include "ns3/ipv4-static-routing.h"
45 #include "ns3/ipv4-list-routing.h"
46 #include "ns3/udp-l4-protocol.h"
47 #include "ns3/tcp-l4-protocol.h"
48 #include "ns3/simulator.h"
65 ipv4Routing->AddRoutingProtocol (ipv4staticRouting, 0);
80 virtual void DoRun (
void);
93 uint32_t availableData;
97 m_receivedPacket = socket->
Recv (std::numeric_limits<uint32_t>::max (), 0);
110 if (DynamicCast<UdpSocket> (socket) != 0)
118 socket->
SendTo (Create<Packet> (123), 0, realTo);
144 node1->AddDevice (device2);
159 socket->Bind (local);
160 socket->SetRecvPktInfo (
true);
176 socket = factory->CreateSocket ();
178 socket->Bind (local);
179 socket->SetRecvPktInfo (
true);
188 socket2 = factory2->CreateSocket ();
203 :
TestSuite (
"ipv4-packet-info-tag", UNIT)