Bug 2083 - BridgeNetDevice may send corrupted packets

This commit is contained in:
Tommaso Pecorella
2015-03-25 16:55:18 +01:00
parent 61c6d8227f
commit a25dbffd6f
3 changed files with 6 additions and 3 deletions

View File

@@ -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
------------

View File

@@ -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 |
// +---------+ +---------+

View File

@@ -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;