]> git.baikalelectronics.ru Git - kernel.git/commit
icmp: standardize naming of RFC 8335 PROBE constants
authorAndreas Roeseler <andreas.a.roeseler@gmail.com>
Tue, 27 Apr 2021 15:36:35 +0000 (10:36 -0500)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Apr 2021 20:42:23 +0000 (13:42 -0700)
commit0e650e45e976c2e4b04f2152e853ccf31a970744
treee53bacf268c26fad2d04344b9fa3ad6d8cc2c2a7
parent96e01a975ea7cdf730673921bfb770f450a7d3f8
icmp: standardize naming of RFC 8335 PROBE constants

The current definitions of constants for PROBE, currently defined only
in the net-next kernel branch, are inconsistent, with
some beginning with ICMP and others with simply EXT. This patch
attempts to standardize the naming conventions of the constants for
PROBE before their release into a stable Kernel, and to update the
relevant definitions in net/ipv4/icmp.c.

Similarly, the definitions for the code field (previously
ICMP_EXT_MAL_QUERY, etc) use the same prefixes as the type field. This
patch adds _CODE_ to the prefix to clarify the distinction of these
constants.

Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
Acked-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20210427153635.2591-1-andreas.a.roeseler@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/icmp.h
net/ipv4/icmp.c