]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC rev 1.203:
authorbms <bms@FreeBSD.org>
Tue, 13 Mar 2007 22:12:23 +0000 (22:12 +0000)
committerbms <bms@FreeBSD.org>
Tue, 13 Mar 2007 22:12:23 +0000 (22:12 +0000)
commitd013c6882d990a405982990cdcb1e17ae490ef86
tree94449cce569b1b00562916e5155f97f5f0b51f4d
parentf55ba6295ad05dd2cd999ba066284311befd6260
MFC rev 1.203:
  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
sys/netinet/udp_usrreq.c