Add capability to bridge multiple LAN segments (IEEE 802.1D bridging) More...
#include "bridge-helper.h"
| Public Member Functions | |
| BridgeHelper () | |
| NetDeviceContainer | Install (Ptr< Node > node, NetDeviceContainer c) | 
| This method creates an ns3::BridgeNetDevice with the attributes configured by BridgeHelper::SetDeviceAttribute, adds the device to the node, and attaches the given NetDevices as ports of the bridge. | |
| NetDeviceContainer | Install (std::string nodeName, NetDeviceContainer c) | 
| This method creates an ns3::BridgeNetDevice with the attributes configured by BridgeHelper::SetDeviceAttribute, adds the device to the node, and attaches the given NetDevices as ports of the bridge. | |
| void | SetDeviceAttribute (std::string n1, const AttributeValue &v1) | 
| Set an attribute on each ns3::BridgeNetDevice created by BridgeHelper::Install. | |
| Private Attributes | |
| ObjectFactory | m_deviceFactory | 
| Object factory. | |
Add capability to bridge multiple LAN segments (IEEE 802.1D bridging)
Definition at line 33 of file bridge-helper.h.
| ns3::BridgeHelper::BridgeHelper | ( | ) | 
Definition at line 25 of file bridge-helper.cc.
References m_deviceFactory, and NS_LOG_FUNCTION_NOARGS.
| NetDeviceContainer ns3::BridgeHelper::Install | ( | Ptr< Node > | node, | 
| NetDeviceContainer | c ) | 
This method creates an ns3::BridgeNetDevice with the attributes configured by BridgeHelper::SetDeviceAttribute, adds the device to the node, and attaches the given NetDevices as ports of the bridge.
| node | The node to install the device in | 
| c | Container of NetDevices to add as bridge ports | 
Definition at line 39 of file bridge-helper.cc.
References ns3::NetDeviceContainer::Add(), ns3::NetDeviceContainer::Begin(), ns3::NetDeviceContainer::End(), m_deviceFactory, NS_LOG_FUNCTION_NOARGS, and NS_LOG_LOGIC.
Referenced by CsmaBridgeTestCase::DoRun(), BridgeTest::DoSetup(), TwoBridgeTest::DoSetup(), and Install().
| NetDeviceContainer ns3::BridgeHelper::Install | ( | std::string | nodeName, | 
| NetDeviceContainer | c ) | 
This method creates an ns3::BridgeNetDevice with the attributes configured by BridgeHelper::SetDeviceAttribute, adds the device to the node, and attaches the given NetDevices as ports of the bridge.
| nodeName | The name of the node to install the device in | 
| c | Container of NetDevices to add as bridge ports | 
Definition at line 58 of file bridge-helper.cc.
References ns3::Names::Find(), Install(), and NS_LOG_FUNCTION_NOARGS.
| void ns3::BridgeHelper::SetDeviceAttribute | ( | std::string | n1, | 
| const AttributeValue & | v1 ) | 
Set an attribute on each ns3::BridgeNetDevice created by BridgeHelper::Install.
| n1 | the name of the attribute to set | 
| v1 | the value of the attribute to set | 
Definition at line 32 of file bridge-helper.cc.
References m_deviceFactory, and NS_LOG_FUNCTION_NOARGS.
| 
 | private | 
Object factory.
Definition at line 72 of file bridge-helper.h.
Referenced by BridgeHelper(), Install(), and SetDeviceAttribute().