7#include "ns3/internet-stack-helper.h"
8#include "ns3/ipv4-address-helper.h"
9#include "ns3/ipv6-address-generator.h"
10#include "ns3/ipv6-address-helper.h"
12#include "ns3/net-device-container.h"
13#include "ns3/node-container.h"
14#include "ns3/simple-net-device.h"
31 void DoRun()
override;
36 :
TestCase(
"IpAddressHelper Ipv6 test case")
58 "Ipv6AddressHelper failure");
102 "Ipv6AddressHelper failure");
135 Ipv6Address(
"2001:00aa:0000:0000:0200:00ff:fe00:0001"),
136 "Ipv6AddressHelper failure");
139 Ipv6Address(
"2001:00aa:0000:0000:0200:00ff:fe00:0001"),
140 "Ipv6AddressHelper failure");
144 Ipv6Address(
"2001:00aa:0000:0000:0200:00ff:fe00:0002"),
145 "Ipv6AddressHelper failure");
148 Ipv6Address(
"2001:00aa:0000:0000:0200:00ff:fe00:0002"),
149 "Ipv6AddressHelper failure");
void DoRun() override
Implementation to actually run this TestCase.
~IpAddressHelperTestCasev6() override
void DoTeardown() override
Implementation to do any local setup required for this TestCase.
IpAddressHelperTestCasev6()
IPv6 AddressHelper TestSuite.
Ipv6AddressHelperTestSuite()
aggregate IP/TCP/UDP functionality to existing Nodes.
void SetIpv4StackInstall(bool enable)
Enable/disable IPv4 stack install.
static void Reset()
Reset the networks and Ipv6Address to zero.
Helper class to auto-assign global IPv6 unicast addresses.
Describes an IPv6 address.
Access to the IPv6 forwarding table, interfaces, and configuration.
IPv6 address associated with an interface.
Keep track of a set of IPv6 interfaces.
Describes an IPv6 prefix.
static Mac48Address Allocate()
Allocate a new Mac48Address.
holds a vector of ns3::NetDevice pointers
keep track of a set of node pointers.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
Ptr< Node > Get(uint32_t i) const
Get the Ptr<Node> stored in this container at a given index.
uint32_t AddDevice(Ptr< NetDevice > device)
Associate a NetDevice to this node.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
Smart pointer class similar to boost::intrusive_ptr.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
#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.
static Ipv6AddressHelperTestSuite ipv6AddressHelperTestSuite
Static variable for test initialization.
Every class exported by the ns3 library is enclosed in the ns3 namespace.