A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
tap-bridge-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 TAP_BRIDGE_HELPER_H
20
#define TAP_BRIDGE_HELPER_H
21
22
#include "ns3/net-device-container.h"
23
#include "ns3/object-factory.h"
24
#include "ns3/tap-bridge.h"
25
#include <string>
26
27
namespace
ns3
{
28
29
class
Node;
30
class
AttributeValue;
31
36
class
TapBridgeHelper
37
{
38
public
:
44
TapBridgeHelper
();
45
54
TapBridgeHelper
(
Ipv4Address
gateway);
55
63
void
SetAttribute
(std::string n1,
const
AttributeValue
&v1);
64
74
Ptr<NetDevice>
Install
(
Ptr<Node>
node,
Ptr<NetDevice>
nd);
75
86
Ptr<NetDevice>
Install
(std::string nodeName,
Ptr<NetDevice>
nd);
87
98
Ptr<NetDevice>
Install
(
Ptr<Node>
node, std::string ndName);
99
112
Ptr<NetDevice>
Install
(std::string nodeName, std::string ndName);
113
127
Ptr<NetDevice>
Install
(
Ptr<Node>
node,
Ptr<NetDevice>
nd,
const
AttributeValue
&bridgeType);
128
private
:
129
ObjectFactory
m_deviceFactory
;
130
};
131
132
}
// namespace ns3
133
134
135
#endif
/* TAP_BRIDGE_HELPER_H */
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:69
ns3::Ipv4Address
Ipv4 addresses are stored in host order in this class.
Definition:
ipv4-address.h:41
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition:
object-factory.h:48
ns3::Ptr< NetDevice >
ns3::TapBridgeHelper
build TapBridge to allow ns-3 simulations to interact with Linux tap devices and processes on the Lin...
Definition:
tap-bridge-helper.h:37
ns3::TapBridgeHelper::Install
Ptr< NetDevice > Install(Ptr< Node > node, Ptr< NetDevice > nd)
This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specif...
Definition:
tap-bridge-helper.cc:61
ns3::TapBridgeHelper::TapBridgeHelper
TapBridgeHelper()
Construct a TapBridgeHelper to make life easier for people wanting to have their simulations interact...
Definition:
tap-bridge-helper.cc:30
ns3::TapBridgeHelper::SetAttribute
void SetAttribute(std::string n1, const AttributeValue &v1)
Set an attribute in the underlying TapBridge net device when these devices are automatically created.
Definition:
tap-bridge-helper.cc:45
ns3::TapBridgeHelper::m_deviceFactory
ObjectFactory m_deviceFactory
Object factory.
Definition:
tap-bridge-helper.h:129
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
tap-bridge
helper
tap-bridge-helper.h
Generated on Tue Feb 6 2024 19:21:27 for ns-3 by
1.9.1