ns3::BridgeHelper Class Reference

Add capability to bridge multiple LAN segments (IEEE 802.1D bridging). More...

#include <bridge-helper.h>

Collaboration diagram for ns3::BridgeHelper:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void SetDeviceAttribute (std::string n1, const AttributeValue &v1)
NetDeviceContainer Install (Ptr< Node > node, NetDeviceContainer c)
NetDeviceContainer Install (std::string nodeName, NetDeviceContainer c)


Detailed Description

Add capability to bridge multiple LAN segments (IEEE 802.1D bridging).

Member Function Documentation

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.

Parameters:
nodeName The name of the node to install the device in
c Container of NetDevices to add as bridge ports
Returns:
A containter holding the added net device.

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.

Parameters:
node The node to install the device in
c Container of NetDevices to add as bridge ports
Returns:
A containter holding the added net device.

void ns3::BridgeHelper::SetDeviceAttribute ( std::string  n1,
const AttributeValue v1 
)

Parameters:
n1 the name of the attribute to set
v1 the value of the attribute to set
Set an attribute on each ns3::BridgeNetDevice created by BridgeHelper::Install


The documentation for this class was generated from the following file:

Generated on Fri Apr 9 15:01:10 2010 for NS-3 by  doxygen 1.5.8