Bug 2758 - IPv4 sockets bound to unicast receive also subnet-directed broadcasts
IPv4 sockets bound to unicast receive also subnet-directed broadcasts
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
ns-3-dev
All All
: P3 major
Assigned To: Tommaso Pecorella
:
Depends on: 2759 2760
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-25 10:26 UTC by Tommaso Pecorella
Modified: 2017-06-26 13:57 UTC (History)
2 users (show)

See Also:


Attachments
patch (14.90 KB, patch)
2017-06-25 10:35 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 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