diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2012-09-20 05:49:31 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2012-09-20 05:49:31 +0000 |
commit | e8574be32c1248963b8eb0d811fd8d85d73db862 (patch) | |
tree | 8f71ea61ca6f51bb925f318fc55831239b3d68c5 /share | |
parent | 23cea7199b0f0d7e28803dda5b747d3cde7170df (diff) | |
download | src-e8574be32c1248963b8eb0d811fd8d85d73db862.tar.gz src-e8574be32c1248963b8eb0d811fd8d85d73db862.zip |
Redo r240386 providing more correct information.
Notes
Notes:
svn path=/head/; revision=240735
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/ip.4 | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/share/man/man4/ip.4 b/share/man/man4/ip.4 index e2137111dfbd..e5489ae95b3e 100644 --- a/share/man/man4/ip.4 +++ b/share/man/man4/ip.4 @@ -32,7 +32,7 @@ .\" @(#)ip.4 8.2 (Berkeley) 11/30/93 .\" $FreeBSD$ .\" -.Dd September 12, 2012 +.Dd September 20, 2012 .Dt IP 4 .Os .Sh NAME @@ -187,21 +187,19 @@ cmsg_level = IPPROTO_IP cmsg_type = IP_SENDSRCADDR .Ed .Pp -The socket should be bound to a local port. -The socket may be bound or not bound to a local address. -In the former case address supplied with -.Dv IP_SENDSRCADDR -overrides bound address. -If the socket is bound to a local address and the address supplied with +The socket should be either bound to +.Dv INADDR_ANY +and a local port, and the address supplied with .Dv IP_SENDSRCADDR -is +should't be .Dv INADDR_ANY , -then bound address is overriden via generic source address selection logic, -which would choose IP address of interface closest to destination. -If the socket is not bound to a local address, then address supplied with +or the socket should be bound to a local address and the address supplied with .Dv IP_SENDSRCADDR -can't be +should be .Dv INADDR_ANY . +In the latter case bound address is overriden via generic source address +selection logic, which would choose IP address of interface closest to +destination. .Pp For convenience, .Dv IP_SENDSRCADDR |