ns-3
|
Helper class to assign IPv6 address statically. More...
#include <ipv6-address-helper.h>
Public Member Functions | |
Ipv6AddressHelper () | |
Constructor. | |
void | NewNetwork (Ipv6Address network, Ipv6Prefix prefix) |
Allocate a new network. | |
Ipv6Address | NewAddress (Address addr) |
Allocate a new address. | |
Ipv6InterfaceContainer | Assign (const NetDeviceContainer &c) |
Allocate an Ipv6InterfaceContainer. | |
Ipv6InterfaceContainer | Assign (const NetDeviceContainer &c, std::vector< bool > withConfiguration) |
Allocate an Ipv6InterfaceContainer. | |
Ipv6InterfaceContainer | AssignWithoutAddress (const NetDeviceContainer &c) |
Allocate an Ipv6InterfaceContainer without static IPv6 configuration. |
Helper class to assign IPv6 address statically.
Allocate an Ipv6InterfaceContainer.
c | netdevice container |
References ns3::Ipv6InterfaceContainer::Add(), ns3::Ipv6::AddAddress(), ns3::Ipv6::AddInterface(), ns3::NetDeviceContainer::Get(), ns3::NetDevice::GetAddress(), ns3::Ipv6::GetInterfaceForDevice(), ns3::NetDeviceContainer::GetN(), ns3::NetDevice::GetNode(), ns3::Object::GetObject(), NewAddress(), NS_ASSERT_MSG, NS_LOG_FUNCTION_NOARGS, ns3::Ipv6::SetMetric(), and ns3::Ipv6::SetUp().
Ipv6InterfaceContainer ns3::Ipv6AddressHelper::Assign | ( | const NetDeviceContainer & | c, |
std::vector< bool > | withConfiguration | ||
) |
Allocate an Ipv6InterfaceContainer.
c | netdevice container |
withConfiguration | true : interface statically configured, false : no static configuration |
References ns3::Ipv6InterfaceContainer::Add(), ns3::Ipv6::AddAddress(), ns3::Ipv6::AddInterface(), ns3::NetDeviceContainer::Get(), ns3::NetDevice::GetAddress(), ns3::Ipv6::GetInterfaceForDevice(), ns3::NetDeviceContainer::GetN(), ns3::NetDevice::GetNode(), ns3::Object::GetObject(), NewAddress(), NS_ASSERT_MSG, NS_LOG_FUNCTION_NOARGS, ns3::Ipv6::SetMetric(), and ns3::Ipv6::SetUp().
Allocate an Ipv6InterfaceContainer without static IPv6 configuration.
c | netdevice container |
References ns3::Ipv6InterfaceContainer::Add(), ns3::Ipv6::AddInterface(), ns3::NetDeviceContainer::Get(), ns3::Ipv6::GetInterfaceForDevice(), ns3::NetDeviceContainer::GetN(), ns3::NetDevice::GetNode(), ns3::Object::GetObject(), NS_ASSERT_MSG, NS_LOG_FUNCTION_NOARGS, ns3::Ipv6::SetMetric(), and ns3::Ipv6::SetUp().
Allocate a new address.
addr | L2 address (currently only ethernet address is supported) |
References ns3::Mac48Address::ConvertFrom(), ns3::Address::GetLength(), ns3::Ipv6Address::MakeAutoconfiguredAddress(), and NS_LOG_FUNCTION.
Referenced by Assign().
void ns3::Ipv6AddressHelper::NewNetwork | ( | Ipv6Address | network, |
Ipv6Prefix | prefix | ||
) |
Allocate a new network.
network | The IPv6 network |
prefix | The prefix |
References NS_LOG_FUNCTION.