build TapBridge to allow ns-3 simulations to interact with Linux tap devices and processes on the Linux host. More...
#include "tap-bridge-helper.h"
Collaboration diagram for ns3::TapBridgeHelper:Public Member Functions | |
| TapBridgeHelper () | |
| Construct a TapBridgeHelper to make life easier for people wanting to have their simulations interact with Linux tap devices and processes on the Linux host. | |
| TapBridgeHelper (Ipv4Address gateway) | |
| Construct a TapBridgeHelper to make life easier for people wanting to have their simulations interact with Linux tap devices and processes on the Linux host. | |
| 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 specified. | |
| Ptr< NetDevice > | Install (Ptr< Node > node, Ptr< NetDevice > nd, const AttributeValue &bridgeType) |
| This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified. | |
| Ptr< NetDevice > | Install (Ptr< Node > node, std::string ndName) |
| This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified. | |
| Ptr< NetDevice > | Install (std::string nodeName, Ptr< NetDevice > nd) |
| This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified. | |
| Ptr< NetDevice > | Install (std::string nodeName, std::string ndName) |
| This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified. | |
| void | SetAttribute (std::string n1, const AttributeValue &v1) |
| Set an attribute in the underlying TapBridge net device when these devices are automatically created. | |
Private Attributes | |
| ObjectFactory | m_deviceFactory |
| Object factory. | |
build TapBridge to allow ns-3 simulations to interact with Linux tap devices and processes on the Linux host.
Definition at line 26 of file tap-bridge-helper.h.
| ns3::TapBridgeHelper::TapBridgeHelper | ( | ) |
Construct a TapBridgeHelper to make life easier for people wanting to have their simulations interact with Linux tap devices and processes on the Linux host.
Definition at line 20 of file tap-bridge-helper.cc.
References m_deviceFactory, and NS_LOG_FUNCTION_NOARGS.
| ns3::TapBridgeHelper::TapBridgeHelper | ( | Ipv4Address | gateway | ) |
Construct a TapBridgeHelper to make life easier for people wanting to have their simulations interact with Linux tap devices and processes on the Linux host.
| gateway | An Ipv4Address to be used as the default gateway for the created bridges, |
Definition at line 26 of file tap-bridge-helper.cc.
References ns3::TapBridge::CONFIGURE_LOCAL, m_deviceFactory, NS_LOG_FUNCTION_NOARGS, and SetAttribute().
Here is the call graph for this function:This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified.
The Node is specified using a Ptr<Node> and the NetDevice is specified using a Ptr<NetDevice>
| node | The Ptr<Node> to install the TapBridge in |
| nd | The Ptr<NetDevice> to attach to the bridge. |
Definition at line 49 of file tap-bridge-helper.cc.
References m_deviceFactory, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Referenced by Install(), Install(), Install(), and Install().
Here is the caller graph for this function:| Ptr< NetDevice > ns3::TapBridgeHelper::Install | ( | Ptr< Node > | node, |
| Ptr< NetDevice > | nd, | ||
| const AttributeValue & | bridgeType ) |
This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified.
The Node is specified using a Ptr<Node> and the NetDevice is specified using a Ptr<NetDevice>. The type of the actual Bridge device is specified with the provided AttributeValue (typically "ns3::TapBridge").
| node | The Ptr<Node> to install the TapBridge in |
| nd | The Ptr<NetDevice> to attach to the bridge. |
| bridgeType | The TypeId of the bridge that will be automatically created. |
Definition at line 41 of file tap-bridge-helper.cc.
References Install(), m_deviceFactory, and NS_LOG_FUNCTION.
Here is the call graph for this function:This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified.
The NetDevice is specified by a name string that has previously been associated with the NetDevice using the Object Name Service.
| node | The Ptr<Node> to install the TapBridge in |
| ndName | The name of the NetDevice to attach to the bridge. |
Definition at line 69 of file tap-bridge-helper.cc.
References ns3::Names::Find(), and Install().
Here is the call graph for this function:This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified.
The node is specified by a name string that has previously been associated with the Node using the Object Name Service. The NetDevice is specified by a Ptr<NetDevice>.
| nodeName | The name of the Node to install the TapBridge in |
| nd | The Ptr<NetDevice> to attach to the bridge. |
Definition at line 62 of file tap-bridge-helper.cc.
References ns3::Names::Find(), and Install().
Here is the call graph for this function:This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specified.
The node is specified by a name string that has previously been associated with the Node using the Object Name Service. The NetDevice is specified by a name string that has previously been associated with the Object Name Service.
| nodeName | The name of the Node to install the TapBridge in |
| ndName | The name of the NetDevice to attach to the bridge. |
Definition at line 76 of file tap-bridge-helper.cc.
References ns3::Names::Find(), and Install().
Here is the call graph for this function:| void ns3::TapBridgeHelper::SetAttribute | ( | std::string | n1, |
| const AttributeValue & | v1 ) |
Set an attribute in the underlying TapBridge net device when these devices are automatically created.
| n1 | the name of the attribute to set |
| v1 | the value of the attribute to set |
Definition at line 34 of file tap-bridge-helper.cc.
References m_deviceFactory, and NS_LOG_FUNCTION.
Referenced by TapBridgeHelper().
Here is the caller graph for this function:
|
private |
Object factory.
Definition at line 121 of file tap-bridge-helper.h.
Referenced by TapBridgeHelper(), TapBridgeHelper(), Install(), Install(), and SetAttribute().