A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ipv6-static-routing-helper.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 University of Washington
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*/
18
19
#ifndef IPV6_STATIC_ROUTING_HELPER_H
20
#define IPV6_STATIC_ROUTING_HELPER_H
21
22
#include "ns3/ipv6.h"
23
#include "ns3/ipv6-static-routing.h"
24
#include "ns3/ptr.h"
25
#include "ns3/ipv6-address.h"
26
#include "ns3/node.h"
27
#include "ns3/net-device.h"
28
29
#include "ns3/node-container.h"
30
#include "ns3/net-device-container.h"
31
#include "ns3/ipv6-routing-helper.h"
32
33
namespace
ns3 {
34
41
class
Ipv6StaticRoutingHelper
:
public
Ipv6RoutingHelper
42
{
43
public
:
47
Ipv6StaticRoutingHelper
();
48
53
Ipv6StaticRoutingHelper
(
const
Ipv6StaticRoutingHelper
&);
54
62
Ipv6StaticRoutingHelper
*
Copy
(
void
)
const
;
63
70
virtual
Ptr<Ipv6RoutingProtocol>
Create
(
Ptr<Node>
node)
const
;
71
77
Ptr<Ipv6StaticRouting>
GetStaticRouting
(
Ptr<Ipv6>
ipv6)
const
;
78
83
void
AddMulticastRoute
(
Ptr<Node>
n,
Ipv6Address
source,
Ipv6Address
group
,
84
Ptr<NetDevice>
input,
NetDeviceContainer
output
);
85
91
void
AddMulticastRoute
(std::string n,
Ipv6Address
source,
Ipv6Address
group,
92
Ptr<NetDevice>
input,
NetDeviceContainer
output);
93
98
void
AddMulticastRoute
(
Ptr<Node>
n,
Ipv6Address
source,
Ipv6Address
group,
99
std::string inputName,
NetDeviceContainer
output);
100
106
void
AddMulticastRoute
(std::string nName,
Ipv6Address
source,
Ipv6Address
group,
107
std::string inputName,
NetDeviceContainer
output);
108
109
#if 0
110
114
void
SetDefaultMulticastRoute (
Ptr<Node>
n,
Ptr<NetDevice>
nd);
115
void
SetDefaultMulticastRoute (
Ptr<Node>
n, std::string ndName);
116
void
SetDefaultMulticastRoute (std::string nName,
Ptr<NetDevice>
nd);
117
void
SetDefaultMulticastRoute (std::string nName, std::string ndName);
118
#endif
119
private
:
127
Ipv6StaticRoutingHelper
&
operator =
(
const
Ipv6StaticRoutingHelper
&o);
128
};
129
130
}
// namespace ns3
131
132
#endif
/* IPV6_STATIC_ROUTING_HELPER_H */
133
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::Ipv6StaticRoutingHelper::AddMulticastRoute
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> ...
Definition:
ipv6-static-routing-helper.cc:89
ns3::Ipv6StaticRoutingHelper::GetStaticRouting
Ptr< Ipv6StaticRouting > GetStaticRouting(Ptr< Ipv6 > ipv6) const
Get Ipv6StaticRouting pointer from IPv6 stack.
Definition:
ipv6-static-routing-helper.cc:59
ns3::Ipv6StaticRoutingHelper::Create
virtual Ptr< Ipv6RoutingProtocol > Create(Ptr< Node > node) const
Definition:
ipv6-static-routing-helper.cc:53
visualizer.higcontainer.group
tuple group
Definition:
higcontainer.py:88
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:41
ns3::Ipv6StaticRoutingHelper::Ipv6StaticRoutingHelper
Ipv6StaticRoutingHelper()
Constructor.
Definition:
ipv6-static-routing-helper.cc:38
ns3::Ipv6RoutingHelper
A factory to create ns3::Ipv6RoutingProtocol objects.
Definition:
ipv6-routing-helper.h:43
ns3::Ipv6StaticRoutingHelper
Helper class that adds ns3::Ipv6StaticRouting objects.
Definition:
ipv6-static-routing-helper.h:41
ns3::Ipv6StaticRoutingHelper::Copy
Ipv6StaticRoutingHelper * Copy(void) const
Definition:
ipv6-static-routing-helper.cc:47
ns3::Ipv6StaticRoutingHelper::operator=
Ipv6StaticRoutingHelper & operator=(const Ipv6StaticRoutingHelper &o)
Assignment operator declared private and not implemented to disallow assignment and prevent the compi...
ns3::Ipv6Address
Describes an IPv6 address.
Definition:
ipv6-address.h:46
output
EventId output
Definition:
tcp-variants-comparison.cc:58
src
internet
helper
ipv6-static-routing-helper.h
Generated on Fri Dec 20 2013 16:22:32 for ns-3 by
1.8.5