Bug 2083 - BridgeNetDevice may send corrupted packets
BridgeNetDevice may send corrupted packets
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: bridge
ns-3-dev
All All
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-25 11:55 UTC by Tommaso Pecorella
Modified: 2015-03-25 12:01 UTC (History)
1 user (show)

See Also:


Attachments
fix (2.41 KB, patch)
2015-03-25 11:58 UTC, Tommaso Pecorella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2015-03-25 11:55:32 UTC
How is it possible that nobody did notice before ?

When the BridgeNetDevice sends a packet, it may forward it to all the interfaces. When this happens, the packet is re-used. As a consequence, if an interface modifies the packet (e.g., by adding an header), the next interface will have a corrupted packet.

As a side note, the wifi-wired-bridging examples has wrong IP numbers in the figure.
Comment 1 Tommaso Pecorella 2015-03-25 11:58:51 UTC
Created attachment 2001 [details]
fix
Comment 2 Tommaso Pecorella 2015-03-25 12:01:59 UTC
Pushed in changeset:   11237:77e2228781ac

Forgot to mention that the bug was found by Red Zhaoyj here:
https://groups.google.com/forum/#!topic/ns-3-users/bWtPoLMXUeY