Bug 2758

Summary: IPv4 sockets bound to unicast receive also subnet-directed broadcasts
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: internetAssignee: Tommaso Pecorella <tommaso.pecorella>
Status: RESOLVED FIXED    
Severity: major CC: ns-bugs, tomh
Priority: P3    
Version: ns-3-dev   
Hardware: All   
OS: All   
Bug Depends on: 2759, 2760    
Bug Blocks:    
Attachments: patch

Description Tommaso Pecorella 2017-06-25 10:26:49 UTC
The normal socket behavior (tested on Linux) is:
- Socket bound to unicast receives only unicast packets.
- Socket bound to subnet-directed any receives subnet-directed broadcast and unicast packets.
- Socket bound to any receives any packet.
Comment 1 Tommaso Pecorella 2017-06-25 10:35:26 UTC
Created attachment 2874 [details]
patch

This patch fixes bugs #2758 and #2759
Comment 2 Tom Henderson 2017-06-26 10:35:33 UTC
patch looks good but please remove all of the commented out debugging statements
Comment 3 Tommaso Pecorella 2017-06-26 13:57:17 UTC
changeset 12936:eb1a121ab8bd