bug 274: bridge must detect compatibility of devices with bridging mode
This commit is contained in:
1 parent
5fd19292ea
commit
8f7b450103
22 files changed
+552
-536
No files matched your search
+2
-2
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user