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>
Public Member Functions | |
TapBridgeHelper () | |
TapBridgeHelper (Ipv4Address gateway) | |
void | SetAttribute (std::string n1, const AttributeValue &v1) |
Ptr< NetDevice > | Install (Ptr< Node > node, Ptr< NetDevice > nd) |
Ptr< NetDevice > | Install (std::string nodeName, Ptr< NetDevice > nd) |
Ptr< NetDevice > | Install (Ptr< Node > node, std::string ndName) |
Ptr< NetDevice > | Install (std::string nodeName, std::string ndName) |
Ptr< NetDevice > | Install (Ptr< Node > node, Ptr< NetDevice > nd, const AttributeValue &bridgeType) |
build TapBridge to allow ns-3 simulations to interact with Linux tap devices and processes on the Linux host.
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.
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, |
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. |
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. |
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 assoicated with the Node using the Object Name Service. The NetDevice is specified by a name string that has prevously been associated with the Object Name Service.
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 assoicated with the NetDevice using the Object Name Service.
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 assoicated 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. |