[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150621014739.GA18664@orbit.nwl.cc>
Date: Sun, 21 Jun 2015 03:47:39 +0200
From: Phil Sutter <phil@....cc>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: netdev@...r.kernel.org, David Miller <davem@...emloft.net>
Subject: Re: [PATCH] net: inet_diag: export IPV6_V6ONLY sockopt
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 'unbound socket' ??? This makes no sense to me here.
Indeed, this is just plain wrong. Actually meant "not bound to a
specific IPv6 address".
> > Since the socket is natively IPv6, it is not
> > listed by e.g. 'netstat -l -4'.
>
> netstat does not use this interface. iproute2/ss does.
Just used this as a simple example illustrating the problem, but doing
the same with 'ss' is truly a better choice.
[...]
> 1) This certainly should not compile on current linux trees.
> Always submit such patches on net-next.
It cleanly applies to net.git.
> 2) It is not clear why we would add this attribute if it is 0.
> This looks a waste of data.
>
> So I would rather use :
ACK. Thanks for reviewing, v2 follows after I've tested it.
Cheers, Phil
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
Powered by blists - more mailing lists