Bug 2083 - BridgeNetDevice may send corrupted packets
This commit is contained in:
@@ -34,6 +34,7 @@ Bugs fixed
|
||||
- Bug 2076 - TCP MinRTO Attribute is not actually used
|
||||
- Bug 2077 - Icmpv6L4Protocol::HandleDestinationUnreachable must check the packet size, not its serialized size
|
||||
- Bug 2079 - mcs variable in ht-wifi-network example is confusing
|
||||
- Bug 2083 - BridgeNetDevice may send corrupted packets
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// +-----+ +-----+ +-----+ +-----+
|
||||
// | STA | | STA | | STA | | STA |
|
||||
// +-----+ +-----+ +-----+ +-----+
|
||||
// 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6
|
||||
// 192.168.0.2 192.168.0.3 192.168.0.5 192.168.0.6
|
||||
// -------- -------- -------- --------
|
||||
// WIFI STA WIFI STA WIFI STA WIFI STA
|
||||
// -------- -------- -------- --------
|
||||
@@ -37,7 +37,7 @@
|
||||
// ############## ##############
|
||||
// BRIDGE BRIDGE
|
||||
// ############## ##############
|
||||
// 192.168.0.1 192.168.0.2
|
||||
// 192.168.0.1 192.168.0.4
|
||||
// +---------+ +---------+
|
||||
// | AP Node | | AP Node |
|
||||
// +---------+ +---------+
|
||||
|
||||
@@ -398,11 +398,13 @@ BridgeNetDevice::SendFrom (Ptr<Packet> packet, const Address& src, const Address
|
||||
|
||||
// data was not unicast or no state has been learned for that mac
|
||||
// address => flood through all ports.
|
||||
Ptr<Packet> pktCopy;
|
||||
for (std::vector< Ptr<NetDevice> >::iterator iter = m_ports.begin ();
|
||||
iter != m_ports.end (); iter++)
|
||||
{
|
||||
pktCopy = packet->Copy ();
|
||||
Ptr<NetDevice> port = *iter;
|
||||
port->SendFrom (packet, src, dest, protocolNumber);
|
||||
port->SendFrom (pktCopy, src, dest, protocolNumber);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user