2013-02-12 17:04:47 +00:00
|
|
|
diff -up man-pages-3.47/man7/ip.7.orig man-pages-3.47/man7/ip.7
|
|
|
|
--- man-pages-3.47/man7/ip.7.orig 2013-02-12 04:53:01.000000000 +0100
|
|
|
|
+++ man-pages-3.47/man7/ip.7 2013-02-12 17:44:33.778266736 +0100
|
|
|
|
@@ -93,12 +93,11 @@ For
|
2012-09-13 11:40:46 +00:00
|
|
|
you may specify a valid IANA IP protocol defined in
|
|
|
|
RFC\ 1700 assigned numbers.
|
|
|
|
.PP
|
|
|
|
-.\" FIXME ip current does an autobind in listen, but I'm not sure
|
|
|
|
-.\" if that should be documented.
|
|
|
|
When a process wants to receive new incoming packets or connections, it
|
|
|
|
should bind a socket to a local interface address using
|
|
|
|
.BR bind (2).
|
|
|
|
-Only one IP socket may be bound to any given local (address, port) pair.
|
|
|
|
+In this case, only one IP socket may be bound to any given local
|
|
|
|
+(address, port) pair.
|
|
|
|
When
|
|
|
|
.B INADDR_ANY
|
|
|
|
is specified in the bind call, the socket will be bound to
|
2013-02-12 17:04:47 +00:00
|
|
|
@@ -106,10 +105,14 @@ is specified in the bind call, the socke
|
2012-09-13 11:40:46 +00:00
|
|
|
local interfaces.
|
|
|
|
When
|
|
|
|
.BR listen (2)
|
|
|
|
-or
|
|
|
|
+is called on an unbound socket, the socket is automatically bound
|
|
|
|
+to a random free port with the local address set to
|
|
|
|
+.BR INADDR_ANY .
|
|
|
|
+When
|
|
|
|
.BR connect (2)
|
|
|
|
-are called on an unbound socket, it is automatically bound to a
|
|
|
|
-random free port with the local address set to
|
|
|
|
+is called on an unbound socket, the socket is automatically bound
|
|
|
|
+to a random free port or an usable shared port with the local address
|
|
|
|
+set to
|
|
|
|
.BR INADDR_ANY .
|
|
|
|
|
|
|
|
A TCP local socket address that has been bound is unavailable for
|