diff mbox series

[v2,net-next,2/3] icmp: define probe message types

Message ID 1ea3b0b7ff42054bfc1bb9ee19e487a3671f3a6a.1605323689.git.andreas.a.roeseler@gmail.com
State Superseded
Headers show
Series Add support for sending RFC8335 PROBE | expand

Commit Message

Andreas Roeseler Nov. 14, 2020, 3:24 a.m. UTC
The types of ICMP Extended Echo Request and ICMP Extended Echo Reply are
defined in sections 2 and 3 of RFC8335.

Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
---
Changes since v1:
 - Switch to correct base tree
---
 include/linux/icmp.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/include/linux/icmp.h b/include/linux/icmp.h
index 474f2a51cf0..acc9bcbc72b 100644
--- a/include/linux/icmp.h
+++ b/include/linux/icmp.h
@@ -64,6 +64,9 @@ 
 #define ICMP_EXC_TTL		0	/* TTL count exceeded		*/
 #define ICMP_EXC_FRAGTIME	1	/* Fragment Reass time exceeded	*/
 
+/* Codes for EXT_ECHO (Probe) */
+#define ICMP_EXT_ECHO		42
+#define ICMP_EXT_ECHOREPLY	43
 
 struct icmphdr {
   __u8		type;