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)
commite542d29ca81d005651680a0a697b72ca13ddc4cc
treee53bacf268c26fad2d04344b9fa3ad6d8cc2c2a7
parentf89271f09f589b8e9f98a9d3373d4868d3e668a5
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