Re: [PATCH] net: inet_diag: export IPV6_V6ONLY sockopt

2015-06-21 Thread Eric Dumazet
On Sun, 2015-06-21 at 03:47 +0200, Phil Sutter wrote: 1) This certainly should not compile on current linux trees. Always submit such patches on net-next. It cleanly applies to net.git. A very old one, because there is no ipv6only field anymore after commit

Re: [PATCH] net: inet_diag: export IPV6_V6ONLY sockopt

2015-06-20 Thread Phil Sutter
On Fri, Jun 19, 2015 at 06:52:00AM -0700, Eric Dumazet wrote: On Fri, 2015-06-19 at 14:15 +0200, Phil Sutter wrote: For AF_INET6 sockets, the value of struct ipv6_pinfo.ipv6only is exported to userspace. It indicates whether an unbound socket listens on IPv4 as well as IPv6. What is an

Re: [PATCH] net: inet_diag: export IPV6_V6ONLY sockopt

2015-06-19 Thread Eric Dumazet
On Fri, 2015-06-19 at 14:15 +0200, Phil Sutter wrote: For AF_INET6 sockets, the value of struct ipv6_pinfo.ipv6only is exported to userspace. It indicates whether an unbound socket listens on IPv4 as well as IPv6. What is an 'unbound socket' ??? This makes no sense to me here. Since the

[PATCH] net: inet_diag: export IPV6_V6ONLY sockopt

2015-06-19 Thread Phil Sutter
For AF_INET6 sockets, the value of struct ipv6_pinfo.ipv6only is exported to userspace. It indicates whether an unbound socket listens on IPv4 as well as IPv6. Since the socket is natively IPv6, it is not listed by e.g. 'netstat -l -4'. Signed-off-by: Phil Sutter p...@nwl.cc --- This patch is