* [PATCH] ip.7: add IP_BIND_ADDRESS_NO_PORT description
@ 2016-02-01 23:35 Eric Dumazet
[not found] ` <1454369722.7627.191.camel-XN9IlZ5yJG9HTL0Zs8A6p/gx64E7kk8eUsxypvmhUTTZJqsBc5GL+g@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Eric Dumazet @ 2016-02-01 23:35 UTC (permalink / raw)
To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
From: Eric Dumazet <edumazet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
Documentation for IP_BIND_ADDRESS_NO_PORT socket option
added in linux-4.2
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=90c337da1524863838658078ec34241f45d8394d
Signed-off-by: Eric Dumazet <edumazet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
man7/ip.7 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/man7/ip.7 b/man7/ip.7
index 1c51a50..f8d4e63 100644
--- a/man7/ip.7
+++ b/man7/ip.7
@@ -338,6 +338,11 @@ application wants to receive data from.
This option can be used multiple times to allow
receiving data from more than one source.
.TP
+.BR IP_BIND_ADDRESS_NO_PORT " (since Linux 4.2)
+Instruct kernel to not reserve an ephemeral port at bind() time.
+The port will be automatically chosen at connect() time, in a way
+that allows sharing a source port as long as the 4-tuples are unique.
+.TP
.BR IP_BLOCK_SOURCE " (since Linux 2.4.22 / 2.5.68)"
Stop receiving multicast data from a specific source in a given group.
This is valid only after the application has subscribed
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1454369722.7627.191.camel-XN9IlZ5yJG9HTL0Zs8A6p/gx64E7kk8eUsxypvmhUTTZJqsBc5GL+g@public.gmane.org>]
* Re: [PATCH] ip.7: add IP_BIND_ADDRESS_NO_PORT description [not found] ` <1454369722.7627.191.camel-XN9IlZ5yJG9HTL0Zs8A6p/gx64E7kk8eUsxypvmhUTTZJqsBc5GL+g@public.gmane.org> @ 2016-02-03 14:49 ` Michael Kerrisk (man-pages) [not found] ` <56B21372.8030001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Michael Kerrisk (man-pages) @ 2016-02-03 14:49 UTC (permalink / raw) To: Eric Dumazet Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA Hi Eric, On 02/02/2016 12:35 AM, Eric Dumazet wrote: > From: Eric Dumazet <edumazet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> > > Documentation for IP_BIND_ADDRESS_NO_PORT socket option > added in linux-4.2 > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=90c337da1524863838658078ec34241f45d8394d Thanks for the patch. I've applied, and tweaked a little. It would be good to add a couple of sentences about why this option is useful and what use case it allows. Could you come up with something? Thanks, Michael PS How about a patch for SO_MAX_PACING_RATE for the socket(7) page :-) ? > Signed-off-by: Eric Dumazet <edumazet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> > --- > man7/ip.7 | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/man7/ip.7 b/man7/ip.7 > index 1c51a50..f8d4e63 100644 > --- a/man7/ip.7 > +++ b/man7/ip.7 > @@ -338,6 +338,11 @@ application wants to receive data from. > This option can be used multiple times to allow > receiving data from more than one source. > .TP > +.BR IP_BIND_ADDRESS_NO_PORT " (since Linux 4.2) > +Instruct kernel to not reserve an ephemeral port at bind() time. > +The port will be automatically chosen at connect() time, in a way > +that allows sharing a source port as long as the 4-tuples are unique. > +.TP > .BR IP_BLOCK_SOURCE " (since Linux 2.4.22 / 2.5.68)" > Stop receiving multicast data from a specific source in a given group. > This is valid only after the application has subscribed > > > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <56B21372.8030001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] ip.7: add IP_BIND_ADDRESS_NO_PORT description [not found] ` <56B21372.8030001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-02-03 15:44 ` Eric Dumazet 0 siblings, 0 replies; 3+ messages in thread From: Eric Dumazet @ 2016-02-03 15:44 UTC (permalink / raw) To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA On Wed, 2016-02-03 at 15:49 +0100, Michael Kerrisk (man-pages) wrote: > Hi Eric, > > On 02/02/2016 12:35 AM, Eric Dumazet wrote: > > From: Eric Dumazet <edumazet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> > > > > Documentation for IP_BIND_ADDRESS_NO_PORT socket option > > added in linux-4.2 > > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=90c337da1524863838658078ec34241f45d8394d > > Thanks for the patch. I've applied, and tweaked a little. > It would be good to add a couple of sentences about > why this option is useful and what use case it allows. > Could you come up with something? Well, port exhaustion is something hard to explain in a few words ;) https://idea.popcount.org/2014-04-03-bind-before-connect/ is explaining the problem quite well (but was written before IP_BIND_ADDRESS_NO_PORT came) Sure, I will post something about SO_MAX_PACING_RATE Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-03 15:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01 23:35 [PATCH] ip.7: add IP_BIND_ADDRESS_NO_PORT description Eric Dumazet
[not found] ` <1454369722.7627.191.camel-XN9IlZ5yJG9HTL0Zs8A6p/gx64E7kk8eUsxypvmhUTTZJqsBc5GL+g@public.gmane.org>
2016-02-03 14:49 ` Michael Kerrisk (man-pages)
[not found] ` <56B21372.8030001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-03 15:44 ` Eric Dumazet
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.