[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <53277ecd-be9f-bb91-740b-c98016e22047@gmail.com>
Date: Tue, 19 Mar 2019 08:51:11 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Stephen Suryaputra <ssuryaextr@...il.com>,
Eric Dumazet <eric.dumazet@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] ipv6: Add icmp_echo_ignore_multicast support for
ICMPv6
On 03/19/2019 07:10 AM, Stephen Suryaputra wrote:
> I wondered why NET_IPV6_ICMP_ECHO_IGNORE_ALL isn't being referenced.
> Your comment made me probe further. Apparently, commit
> e6f86b0f7ae473969a3301b74bf98af9e42ecd0e didn't add it to:
>
> static const struct bin_table bin_net_ipv6_icmp_table[] = {
> { CTL_INT, NET_IPV6_ICMP_RATELIMIT, "ratelimit" },
> {}
> };
>
> I will fix that as well.
>
No you do not want to 'fix' this.
We no longer add binary syctls (in kernel/sysctl_binary.c) , they are deprecated.
> Thanks.
>
> On Tue, Mar 19, 2019 at 9:10 AM Eric Dumazet <eric.dumazet@...il.com> wrote:
>>
>>
>>
>> On 03/19/2019 05:45 AM, Stephen Suryaputra wrote:
>>> IPv4 has icmp_echo_ignore_broadcast to prevent responding to broadcast pings.
>>> IPv6 needs a similar mechanism.
>>>
>>
>>
>> ...
>>
>>> diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h
>>> index 87aa2a6d9125..bd83ddedc014 100644
>>> --- a/include/uapi/linux/sysctl.h
>>> +++ b/include/uapi/linux/sysctl.h
>>> @@ -577,7 +577,8 @@ enum {
>>> /* /proc/sys/net/ipv6/icmp */
>>> enum {
>>> NET_IPV6_ICMP_RATELIMIT = 1,
>>> - NET_IPV6_ICMP_ECHO_IGNORE_ALL = 2
>>> + NET_IPV6_ICMP_ECHO_IGNORE_ALL = 2,
>>> + NET_IPV6_ICMP_ECHO_IGNORE_MULTICAST = 3
>>> };
>>>
>>> /* /proc/sys/net/<protocol>/neigh/<dev> */
>>
>> This part is probably not needed.
>>
Powered by blists - more mailing lists