[Ns-bugs] [Bug 51] Allow UDP sockets to receive broadcast
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Fri Sep 21 10:45:34 PDT 2007
http://www.nsnam.org/bugzilla/show_bug.cgi?id=51
------- Comment #9 from tomh at tomh.org 2007-09-21 13:45 -------
Response to your question in comment #6:
There appear to be different possible correct behaviors, one of which is what
is implemented in ns-3. Note that it differs from Linux.
>From Stevens, UNP, vol 1, ed. 3, p. 532.
"What does a host do when sending UDP to 255.255.255.255? Most hosts allow
this and convert the destination address to the subnet-directed broadcast
address of the outgoing interface. It is often necessary to access the
datalink directly to send a packet to 255.255.255.255.
Another question is: What does a multihomed host do when the application sends
UDP to 255.255.255.255? Some systems send a single broadcast on the primary
interface with destination set to subnet-directed broadcast. Other systems
send one copy out from each broadcast-capabile interface. Section 3.3.6 of RFC
1122 "takes no stand" on this issue. For portability, however, applications
that want to broadcast to all interfaces should obtain the interface
configuration and do one sendto() for each interface with destination set to
that interface's broadcast address."
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list