net: fix icmp_echo_enable_probe sysctl
authorEric Dumazet <edumazet@google.com>
Tue, 30 Mar 2021 21:06:13 +0000 (14:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 00:38:43 +0000 (17:38 -0700)
commitb8128656a5edd23a91542c9da849cd878a54148d
treef0061206d7e52763f2584310d3b6cd47e709bb61
parent3c7a83fa427daf08c46a9af41be3cd3267832fe6
net: fix icmp_echo_enable_probe sysctl

sysctl_icmp_echo_enable_probe is an u8.

ipv4_net_table entry should use
 .maxlen       = sizeof(u8).
 .proc_handler = proc_dou8vec_minmax,

Fixes: f1b8fa9fa586 ("net: add sysctl for enabling RFC 8335 PROBE messages")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Andreas Roeseler <andreas.a.roeseler@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/sysctl_net_ipv4.c