mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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>
This commit is contained in:
parent
f389a40ec3
commit
204621551b
2 changed files with 6 additions and 1 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue