Bug 2083

Summary: BridgeNetDevice may send corrupted packets
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: bridgeAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: fix

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