diff options
author | Phil Sutter <phil@nwl.cc> | 2015-06-24 11:02:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-24 02:51:39 -0700 |
commit | 204621551b2a0060a013b92f7add4d5c452fa7cb (patch) | |
tree | 5beead1f14aa004321b672edaad81e6a0a1730ab /include/uapi | |
parent | f389a40ec30f1c6c63eb61ec104d7c9886e1109a (diff) | |
download | op-kernel-dev-204621551b2a0060a013b92f7add4d5c452fa7cb.zip op-kernel-dev-204621551b2a0060a013b92f7add4d5c452fa7cb.tar.gz |
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>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/inet_diag.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/inet_diag.h b/include/uapi/linux/inet_diag.h index b629fc5..68a1f71 100644 --- a/include/uapi/linux/inet_diag.h +++ b/include/uapi/linux/inet_diag.h @@ -112,9 +112,10 @@ enum { INET_DIAG_SHUTDOWN, INET_DIAG_DCTCPINFO, INET_DIAG_PROTOCOL, /* response attribute only */ + INET_DIAG_SKV6ONLY, }; -#define INET_DIAG_MAX INET_DIAG_PROTOCOL +#define INET_DIAG_MAX INET_DIAG_SKV6ONLY /* INET_DIAG_MEM */ |