History

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'.

Phil Sutter committed 11 years ago

Commit 20462151 parent f389a402 files · +6 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/inet_diag.h+2−1
@@ -112,9 +112,10 @@ enum { · 111 unmodified lines
112112 INET_DIAG_SHUTDOWN,
113113 INET_DIAG_DCTCPINFO,
114114 INET_DIAG_PROTOCOL, /* response attribute only */
115+ INET_DIAG_SKV6ONLY,
115116 };
116117
117−#define INET_DIAG_MAX INET_DIAG_PROTOCOL
118+#define INET_DIAG_MAX INET_DIAG_SKV6ONLY
118119
119120 /* INET_DIAG_MEM */
120121