]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: inet_diag: export IPV6_V6ONLY sockopt
authorPhil Sutter <phil@nwl.cc>
Wed, 24 Jun 2015 09:02:51 +0000 (11:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2015 09:51:39 +0000 (02:51 -0700)
commit204621551b2a0060a013b92f7add4d5c452fa7cb
tree5beead1f14aa004321b672edaad81e6a0a1730ab
parentf389a40ec30f1c6c63eb61ec104d7c9886e1109a
net: inet_diag: export IPV6_V6ONLY sockopt

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 iproute2 to enable
the additional information in 'ss -e'.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/inet_diag.h
net/ipv4/inet_diag.c