summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/sysctl.h
diff options
context:
space:
mode:
authorVirgile Jarry2018-08-10 17:48:15 +0200
committerDavid S. Miller2018-08-13 17:42:25 +0200
commite6f86b0f7ae473969a3301b74bf98af9e42ecd0e (patch)
treef0c50fdb5282bc53c95af075031b803ecf7e79bc /include/uapi/linux/sysctl.h
parentMerge branch 'net-tls-Combined-memory-allocation-for-decryption-request' (diff)
downloadkernel-qcow2-linux-e6f86b0f7ae473969a3301b74bf98af9e42ecd0e.tar.gz
kernel-qcow2-linux-e6f86b0f7ae473969a3301b74bf98af9e42ecd0e.tar.xz
kernel-qcow2-linux-e6f86b0f7ae473969a3301b74bf98af9e42ecd0e.zip
ipv6: Add icmp_echo_ignore_all support for ICMPv6
Preventing the kernel from responding to ICMP Echo Requests messages can be useful in several ways. The sysctl parameter 'icmp_echo_ignore_all' can be used to prevent the kernel from responding to IPv4 ICMP echo requests. For IPv6 pings, such a sysctl kernel parameter did not exist. Add the ability to prevent the kernel from responding to IPv6 ICMP echo requests through the use of the following sysctl parameter : /proc/sys/net/ipv6/icmp/echo_ignore_all. Update the documentation to reflect this change. Signed-off-by: Virgile Jarry <virgile@acceis.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/sysctl.h')
-rw-r--r--include/uapi/linux/sysctl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h
index 6b58371b1f0d..d71013fffaf6 100644
--- a/include/uapi/linux/sysctl.h
+++ b/include/uapi/linux/sysctl.h
@@ -575,7 +575,8 @@ enum {
/* /proc/sys/net/ipv6/icmp */
enum {
- NET_IPV6_ICMP_RATELIMIT=1
+ NET_IPV6_ICMP_RATELIMIT = 1,
+ NET_IPV6_ICMP_ECHO_IGNORE_ALL = 2
};
/* /proc/sys/net/<protocol>/neigh/<dev> */