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

2015-06-24 Thread David Miller
From: Phil Sutter Date: Wed, 24 Jun 2015 11:02:51 +0200 > For AF_INET6 sockets, the value of struct ipv6_pinfo.ipv6only is > exported to userspace. It indicates whether a socket bound to in6addr_any > listens on IPv4 as well as IPv6. Since the socket is natively IPv6, it is not > listed by e.g. '

[PATCH v2] net: inet_diag: export IPV6_V6ONLY sockopt

2015-06-24 Thread Phil Sutter
For AF_INET6 sockets, the value of struct ipv6_pinfo.ipv6only is exported to userspace. It indicates whether a socket bound to in6addr_any listens on IPv4 as well as IPv6. Since the socket is natively IPv6, it is not listed by e.g. 'ss -l -4'. This patch is accompanied by an appropriate one for ip