src/devices/mesh/flame/flame-protocol.cc
changeset 5086 fccfd0073ea3
parent 5084 ddf23699f0b7
child 5088 fe6fcf14f2a1
equal deleted inserted replaced
5085:5cfc1e9372af 5086:fccfd0073ea3
   217         return false;
   217         return false;
   218       Ptr<MeshWifiInterfaceMac>  mac = wifiNetDev->GetMac ()->GetObject<MeshWifiInterfaceMac> ();
   218       Ptr<MeshWifiInterfaceMac>  mac = wifiNetDev->GetMac ()->GetObject<MeshWifiInterfaceMac> ();
   219       if (mac == 0)
   219       if (mac == 0)
   220         return false;
   220         return false;
   221       // Installing plugins:
   221       // Installing plugins:
   222       Ptr<FlameMacPlugin> flameMac = Create<FlameMacPlugin> (wifiNetDev->GetIfIndex (), this);
   222       Ptr<FlameProtocolMac> flameMac = Create<FlameProtocolMac> (wifiNetDev->GetIfIndex (), this);
   223       m_interfaces[wifiNetDev->GetIfIndex ()] = flameMac;
   223       m_interfaces[wifiNetDev->GetIfIndex ()] = flameMac;
   224       mac->InstallPlugin (flameMac);
   224       mac->InstallPlugin (flameMac);
   225     }
   225     }
   226   mp->SetRoutingProtocol (this);
   226   mp->SetRoutingProtocol (this);
   227   // Mesh point aggregates all installed protocols
   227   // Mesh point aggregates all installed protocols