bug 274: bridge must detect compatibility of devices with bridging mode

This commit is contained in:
Mathieu Lacage
2008-09-02 11:28:03 -07:00
parent 5fd19292ea
commit 8f7b450103
22 changed files with 552 additions and 536 deletions

View File

@@ -184,7 +184,7 @@ Node::RegisterProtocolHandler (ProtocolHandler handler,
i != m_devices.end (); i++)
{
Ptr<NetDevice> dev = *i;
if (dev->SupportsPromiscuous ())
if (dev->SupportsSendFrom ())
{
dev->SetPromiscReceiveCallback (MakeCallback (&Node::PromiscReceiveFromDevice, this));
}
@@ -192,7 +192,7 @@ Node::RegisterProtocolHandler (ProtocolHandler handler,
}
else
{
if (device->SupportsPromiscuous ())
if (device->SupportsSendFrom ())
{
device->SetPromiscReceiveCallback (MakeCallback (&Node::PromiscReceiveFromDevice, this));
}