|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #include "ns3/socket-factory.h"
23 #include "ns3/udp-socket-factory.h"
24 #include "ns3/simulator.h"
25 #include "ns3/simple-channel.h"
26 #include "ns3/simple-net-device.h"
27 #include "ns3/simple-net-device-helper.h"
28 #include "ns3/socket.h"
29 #include "ns3/boolean.h"
33 #include "ns3/inet6-socket-address.h"
35 #include "ns3/ipv6-l3-protocol.h"
36 #include "ns3/icmpv6-l4-protocol.h"
37 #include "ns3/udp-l4-protocol.h"
38 #include "ns3/ipv6-static-routing.h"
39 #include "ns3/internet-stack-helper.h"
40 #include "ns3/ipv6-address-helper.h"
41 #include "ns3/ipv6-routing-helper.h"
57 virtual void DoRun (
void);
62 :
TestCase (
"IPv6 Duplicate Address Detection")
95 ipv6node1->
AddAddress (ifIndexNode1, ipv6Addr);
100 device = net.
Get (1);
103 ipv6node2->
AddAddress (ifIndexNode2, ipv6Addr);
115 Simulator::Destroy ();
holds a vector of ns3::NetDevice pointers
IPv6 address associated with an interface.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static Ipv6DadTestSuite g_ipv6dadTestSuite
Static variable for test initialization.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
Ipv6InterfaceContainer AssignWithoutAddress(const NetDeviceContainer &c)
Allocate an Ipv6InterfaceContainer but do not assign any IPv6 addresses.
virtual int32_t GetInterfaceForDevice(Ptr< const NetDevice > device) const =0
Get the interface index of the specified NetDevice.
Describes an IPv6 address.
State_e
State of an address associated with an interface.
Helper class to auto-assign global IPv6 unicast addresses.
virtual bool AddAddress(uint32_t interface, Ipv6InterfaceAddress address, bool addOnLinkRoute=true)=0
Add an address on the specified IPv6 interface.
IPv6 Duplicate Address Detection Test.
IPv6 Duplicate Address Detection TestSuite.
void Install(std::string nodeName) const
Aggregate implementations of the ns3::Ipv4, ns3::Ipv6, ns3::Udp, and ns3::Tcp classes onto the provid...
Keep track of a set of IPv6 interfaces.
build a set of SimpleNetDevice objects
NetDeviceContainer Install(Ptr< Node > node) const
This method creates an ns3::SimpleChannel with the attributes configured by SimpleNetDeviceHelper::Se...
virtual void DoRun(void)
Implementation to actually run this TestCase.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
@ UNIT
This test suite implements a Unit Test.
keep track of a set of node pointers.
Access to the IPv6 forwarding table, interfaces, and configuration.
Ipv6InterfaceAddress::State_e GetState() const
Get the address state.
Describes an IPv6 prefix.
aggregate IP/TCP/UDP functionality to existing Nodes.
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
void SetNetDevicePointToPointMode(bool pointToPointMode)
SimpleNetDevice is Broadcast capable and ARP needing.
virtual Ipv6InterfaceAddress GetAddress(uint32_t interface, uint32_t addressIndex) const =0
Get IPv6 address on specified IPv6 interface.