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
ipv4-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 IPV4_STATIC_ROUTING_HELPER_H
20
#define IPV4_STATIC_ROUTING_HELPER_H
21
22
#include "ns3/ipv4.h"
23
#include "ns3/ipv4-static-routing.h"
24
#include "ns3/ptr.h"
25
#include "ns3/ipv4-address.h"
26
#include "ns3/node.h"
27
#include "ns3/net-device.h"
28
#include "ns3/ipv4-routing-helper.h"
29
#include "ns3/node-container.h"
30
#include "ns3/net-device-container.h"
31
32
namespace
ns3 {
33
40
class
Ipv4StaticRoutingHelper
:
public
Ipv4RoutingHelper
41
{
42
public
:
43
/*
44
* Construct an Ipv4StaticRoutingHelper object, used to make configuration
45
* of static routing easier.
46
*/
47
Ipv4StaticRoutingHelper
();
48
53
Ipv4StaticRoutingHelper
(
const
Ipv4StaticRoutingHelper
&);
54
62
Ipv4StaticRoutingHelper
*
Copy
(
void
)
const
;
63
70
virtual
Ptr<Ipv4RoutingProtocol>
Create
(
Ptr<Node>
node)
const
;
71
79
Ptr<Ipv4StaticRouting>
GetStaticRouting
(
Ptr<Ipv4>
ipv4)
const
;
80
85
void
AddMulticastRoute
(
Ptr<Node>
n,
Ipv4Address
source,
Ipv4Address
group
,
86
Ptr<NetDevice>
input,
NetDeviceContainer
output);
87
93
void
AddMulticastRoute
(std::string n,
Ipv4Address
source,
Ipv4Address
group,
94
Ptr<NetDevice>
input,
NetDeviceContainer
output);
95
100
void
AddMulticastRoute
(
Ptr<Node>
n,
Ipv4Address
source,
Ipv4Address
group,
101
std::string inputName,
NetDeviceContainer
output);
102
108
void
AddMulticastRoute
(std::string nName,
Ipv4Address
source,
Ipv4Address
group,
109
std::string inputName,
NetDeviceContainer
output);
110
120
void
SetDefaultMulticastRoute
(
Ptr<Node>
n,
Ptr<NetDevice>
nd);
121
132
void
SetDefaultMulticastRoute
(
Ptr<Node>
n, std::string ndName);
133
144
void
SetDefaultMulticastRoute
(std::string nName,
Ptr<NetDevice>
nd);
145
157
void
SetDefaultMulticastRoute
(std::string nName, std::string ndName);
158
private
:
164
Ipv4StaticRoutingHelper
&
operator =
(
const
Ipv4StaticRoutingHelper
&o);
165
};
166
167
}
// namespace ns3
168
169
#endif
/* IPV4_STATIC_ROUTING_HELPER_H */
src
internet
helper
ipv4-static-routing-helper.h
Generated on Tue May 14 2013 11:08:21 for ns-3 by
1.8.1.2