]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Add icmp_echo_ignore_all support for ICMPv6
authorVirgile Jarry <virgile@acceis.fr>
Fri, 10 Aug 2018 15:48:15 +0000 (17:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Aug 2018 15:42:25 +0000 (08:42 -0700)
commit979f3bf8a372975d3a39732aeaa22234974b0feb
treef0c50fdb5282bc53c95af075031b803ecf7e79bc
parent434c03aab6e80e9f33f0ee41db557c1fedc3c461
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>
Documentation/networking/ip-sysctl.txt
include/net/netns/ipv6.h
include/uapi/linux/sysctl.h
net/ipv6/af_inet6.c
net/ipv6/icmp.c