A Discrete-Event Network Simulator
API
ipv6-static-routing-helper.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 University of Washington
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation;
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  */
17 
18 #ifndef IPV6_STATIC_ROUTING_HELPER_H
19 #define IPV6_STATIC_ROUTING_HELPER_H
20 
21 #include "ns3/ipv6-address.h"
22 #include "ns3/ipv6-routing-helper.h"
23 #include "ns3/ipv6-static-routing.h"
24 #include "ns3/ipv6.h"
25 #include "ns3/net-device-container.h"
26 #include "ns3/net-device.h"
27 #include "ns3/node-container.h"
28 #include "ns3/node.h"
29 #include "ns3/ptr.h"
30 
31 namespace ns3
32 {
33 
43 {
44  public:
49 
56 
57  // Delete assignment operator to avoid misuse
59 
66  Ipv6StaticRoutingHelper* Copy() const override;
67 
74  Ptr<Ipv6RoutingProtocol> Create(Ptr<Node> node) const override;
75 
82 
94  Ipv6Address source,
95  Ipv6Address group,
96  Ptr<NetDevice> input,
97  NetDeviceContainer output);
98 
110  void AddMulticastRoute(std::string n,
111  Ipv6Address source,
112  Ipv6Address group,
113  Ptr<NetDevice> input,
114  NetDeviceContainer output);
115 
127  Ipv6Address source,
128  Ipv6Address group,
129  std::string inputName,
130  NetDeviceContainer output);
131 
143  void AddMulticastRoute(std::string nName,
144  Ipv6Address source,
145  Ipv6Address group,
146  std::string inputName,
147  NetDeviceContainer output);
148 
149 #if 0
154  void SetDefaultMulticastRoute (Ptr<Node> n, Ptr<NetDevice> nd);
155  void SetDefaultMulticastRoute (Ptr<Node> n, std::string ndName);
156  void SetDefaultMulticastRoute (std::string nName, Ptr<NetDevice> nd);
157  void SetDefaultMulticastRoute (std::string nName, std::string ndName);
158 #endif
159 };
160 
161 } // namespace ns3
162 
163 #endif /* IPV6_STATIC_ROUTING_HELPER_H */
Describes an IPv6 address.
Definition: ipv6-address.h:50
A factory to create ns3::Ipv6RoutingProtocol objects.
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 & operator=(const Ipv6StaticRoutingHelper &)=delete
holds a vector of ns3::NetDevice pointers
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
Every class exported by the ns3 library is enclosed in the ns3 namespace.