10#include "ns3/ipv6-address.h"
11#include "ns3/ipv6-list-routing.h"
12#include "ns3/ipv6-route.h"
13#include "ns3/ipv6-routing-protocol.h"
55 NS_LOG_LOGIC(
"Static routing found as the main IPv4 routing protocol.");
92 int32_t interface = ipv6->GetInterfaceForDevice(
nd);
94 "Ipv6StaticRoutingHelper::AddMulticastRoute (): "
95 "Expected an interface associated with the device nd");
101 "Ipv6StaticRoutingHelper::AddMulticastRoute (): "
102 "Expected an interface associated with the device input");
108 "Ipv6StaticRoutingHelper::SetDefaultMulticastRoute (): "
109 "Expected an Ipv6StaticRouting associated with this node");
150Ipv6StaticRoutingHelper::SetDefaultMulticastRoute (
157 "Ipv6StaticRoutingHelper::SetDefaultMulticastRoute (): "
158 "Expected an interface associated with the device");
164 "Ipv6StaticRoutingHelper::SetDefaultMulticastRoute (): "
165 "Expected an Ipv6StaticRouting associated with this node");
171Ipv6StaticRoutingHelper::SetDefaultMulticastRoute (
176 SetDefaultMulticastRoute (n,
nd);
180Ipv6StaticRoutingHelper::SetDefaultMulticastRoute (
184 Ptr<Node> n = Names::Find<Node> (
nName);
185 SetDefaultMulticastRoute (n,
nd);
189Ipv6StaticRoutingHelper::SetDefaultMulticastRoute (
193 Ptr<Node> n = Names::Find<Node> (
nName);
195 SetDefaultMulticastRoute (n,
nd);
Describes an IPv6 address.
Access to the IPv6 forwarding table, interfaces, and configuration.
Helper class that adds ns3::Ipv6StaticRouting objects.
Ptr< Ipv6RoutingProtocol > Create(Ptr< Node > node) const override
Ptr< Ipv6StaticRouting > GetStaticRouting(Ptr< Ipv6 > ipv6) const
Get Ipv6StaticRouting pointer from IPv6 stack.
void AddMulticastRoute(Ptr< Node > n, Ipv6Address source, Ipv6Address group, Ptr< NetDevice > input, NetDeviceContainer output)
Add a multicast route to a node and net device using explicit Ptr<Node> and Ptr<NetDevice>
Ipv6StaticRoutingHelper * Copy() const override
Ipv6StaticRoutingHelper()
Constructor.
holds a vector of ns3::NetDevice pointers
Smart pointer class similar to boost::intrusive_ptr.
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Every class exported by the ns3 library is enclosed in the ns3 namespace.