]> 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)
commit634815995355bfd1c98f2189e3fa1a16b332f9d4
treee53bacf268c26fad2d04344b9fa3ad6d8cc2c2a7
parent28ac6e81111b4d22b9b248c26c70d3ec72ef8c7f
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