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

This commit is contained in:
Mathieu Lacage committed 2008-09-02 11:28:03 -07:00
1 parent 5fd19292ea
commit 8f7b450103
22 files changed
+552 -536

No files matched your search

+2 -2
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));
}