src/helper/bridge-helper.h
changeset 6273 8d70de29d514
parent 5361 e8989b44bffb
equal deleted inserted replaced
6272:f52c6e3cae70 6273:8d70de29d514
    54    * to the node, and attaches the given NetDevices as ports of the
    54    * to the node, and attaches the given NetDevices as ports of the
    55    * bridge.
    55    * bridge.
    56    *
    56    *
    57    * \param node The node to install the device in
    57    * \param node The node to install the device in
    58    * \param c Container of NetDevices to add as bridge ports
    58    * \param c Container of NetDevices to add as bridge ports
    59    * \returns A containter holding the added net device.
    59    * \returns A container holding the added net device.
    60    */
    60    */
    61   NetDeviceContainer Install (Ptr<Node> node, NetDeviceContainer c);
    61   NetDeviceContainer Install (Ptr<Node> node, NetDeviceContainer c);
    62   /**
    62   /**
    63    * This method creates an ns3::BridgeNetDevice with the attributes
    63    * This method creates an ns3::BridgeNetDevice with the attributes
    64    * configured by BridgeHelper::SetDeviceAttribute, adds the device
    64    * configured by BridgeHelper::SetDeviceAttribute, adds the device
    65    * to the node, and attaches the given NetDevices as ports of the
    65    * to the node, and attaches the given NetDevices as ports of the
    66    * bridge.
    66    * bridge.
    67    *
    67    *
    68    * \param nodeName The name of the node to install the device in
    68    * \param nodeName The name of the node to install the device in
    69    * \param c Container of NetDevices to add as bridge ports
    69    * \param c Container of NetDevices to add as bridge ports
    70    * \returns A containter holding the added net device.
    70    * \returns A container holding the added net device.
    71    */
    71    */
    72   NetDeviceContainer Install (std::string nodeName, NetDeviceContainer c);
    72   NetDeviceContainer Install (std::string nodeName, NetDeviceContainer c);
    73 private:
    73 private:
    74   ObjectFactory m_deviceFactory;
    74   ObjectFactory m_deviceFactory;
    75 };
    75 };