cvs commit: src/sys/netinet udp_usrreq.c
Bruce M Simpson
bms at FreeBSD.org
Thu Mar 8 15:26:55 UTC 2007
bms 2007-03-08 15:26:54 UTC
FreeBSD src repository
Modified files:
sys/netinet udp_usrreq.c
Log:
Fix IP_SENDSRCADDR semantics.
* To use this option with a UDP socket, it must be bound to a local port,
and INADDR_ANY, to disallow possible collisions with existing udp inpcbs
bound to the same port on other interfaces at send time.
* If the socket is bound to INADDR_ANY, specifying IP_SENDSRCADDR with
INADDR_ANY will be rejected as it is ambiguous.
* If the socket is bound to an address other than INADDR_ANY, specifying
IP_SENDSRCADDR with INADDR_ANY will be disallowed by in_pcbbind_setup().
Reviewed by: silence on -net
Tested with: src/tools/regression/netinet/ipbroadcast
MFC after: 4 days
Revision Changes Path
1.203 +11 -4 src/sys/netinet/udp_usrreq.c
More information about the cvs-src
mailing list