View | Details | Raw Unified | Return to bug 286
Collapse All | Expand All

(-)a/src/devices/bridge/bridge-net-device.h (-1 / +30 lines)
 Lines 33-39    Link Here 
33
/**
33
/**
34
 * \ingroup netdevice
34
 * \ingroup netdevice
35
 * 
35
 * 
36
 * \brief bridge net device for bridge things and testing
36
 * \brief a virtual net device that bridges multiple LAN segments
37
 *
38
 * The BridgeNetDevice object is a "virtual" netdevice that aggregates
39
 * multiple "real" netdevices and implements the data plane forwarding
40
 * part of IEEE 802.1D.  By adding a BridgeNetDevice to a Node, it
41
 * will act as a "bridge", or "switch", to multiple LAN segments.
42
 * 
43
 * By default the bridge netdevice implements a "learning bridge"
44
 * algorithm (see 802.1D), where incoming unicast frames from one port
45
 * may occasionally be forwarded throughout all other ports, but
46
 * usually they are forwarded only to a single correct output port.
47
 *
48
 * \attention The Spanning Tree Protocol part of 802.1D is not
49
 * implemented.  Therefore, you have to be careful not to create
50
 * bridging loops, or else the network will collapse.
51
 *
52
 * \attention Bridging is designed to work only with NetDevices
53
 * modelling IEEE 802-style technologies, such as CsmaNetDevice and
54
 * WifiNetDevice.
37
 */
55
 */
38
class BridgeNetDevice : public NetDevice
56
class BridgeNetDevice : public NetDevice
39
{
57
{
 Lines 41-46    Link Here 
41
  static TypeId GetTypeId (void);
59
  static TypeId GetTypeId (void);
42
  BridgeNetDevice ();
60
  BridgeNetDevice ();
43
61
62
  /** \brief Add a 'port' to a bridge device
63
   *
64
   * This method adds a new bridge port to a BridgeNetDevice, so that
65
   * the new bridge port NetDevice becomes part of the bridge and L2
66
   * frames start being forwarded to/from this NetDevice.
67
   *
68
   * \attention The netdevice that is being added as bridge port must
69
   * _not_ have an IP address.  In order to add IP connectivity to a
70
   * bridging node you must enable IP on the BridgeNetDevice itself,
71
   * never on its port netdevices.
72
   */
44
  void AddBridgePort (Ptr<NetDevice> bridgePort);
73
  void AddBridgePort (Ptr<NetDevice> bridgePort);
45
74
46
  // inherited from NetDevice base class.
75
  // inherited from NetDevice base class.

Return to bug 286