NetDeviceContainer
EthernetBridgeHelper::Install (Ptr<Node> node, NetDeviceContainer c, std::map<Ptr<NetDevice>, bool> portsEnabled)
{
+ // Static Routing
+
NS_LOG_FUNCTION_NOARGS ();
NS_LOG_LOGIC ("**** Install bridge device on node " << node->GetId ());
NetDeviceContainer
EthernetBridgeHelper::Install (Ptr<Node> node, NetDeviceContainer c)
{
+ // Static Routing
+
NS_LOG_FUNCTION_NOARGS ();
NS_LOG_LOGIC ("**** Install bridge device on node " << node->GetId ());
devs.Add (dev);
node->AddDevice (dev);
+ ObjectFactory factory;
+ factory.SetTypeId ("ns3::RstpL3Protocol");
+ Ptr<Object> protocol = factory.Create<Object>();
+ node->AggregateObject(protocol);
+
for (NetDeviceContainer::Iterator i = c.Begin (); i != c.End (); ++i)
{
NS_LOG_LOGIC ("**** Add BridgePort "<< *i);