[PATCH v9 1/8] net: add more icmp types
Stephen Hemminger
stephen at networkplumber.org
Sat Sep 28 18:18:31 CEST 2024
Add more defines for additional defined ICMP types.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
lib/net/rte_icmp.h | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/lib/net/rte_icmp.h b/lib/net/rte_icmp.h
index 4bf64d70ad..b51b60a6d2 100644
--- a/lib/net/rte_icmp.h
+++ b/lib/net/rte_icmp.h
@@ -54,10 +54,24 @@ struct rte_icmp_hdr {
} __rte_packed;
/* ICMP packet types */
-#define RTE_IP_ICMP_ECHO_REPLY 0
-#define RTE_IP_ICMP_ECHO_REQUEST 8
-#define RTE_ICMP6_ECHO_REQUEST 128
-#define RTE_ICMP6_ECHO_REPLY 129
+#define RTE_IP_ICMP_ECHO_REPLY 0
+#define RTE_IP_ICMP_DEST_UNREACH 3
+#define RTE_IP_ICMP_SOURCE_QUENCH 4
+#define RTE_IP_ICMP_REDIRECT 5
+#define RTE_IP_ICMP_ECHO_REQUEST 8
+#define RTE_IP_ICMP_TIME_EXCEEDED 11
+#define RTE_IP_ICMP_PARAMETERPROB 12
+#define RTE_IP_ICMP_TIMESTAMP 13
+#define RTE_IP_ICMP_TIMESTAMPREPLY 14
+#define RTE_IP_ICMP_INFO_REQUEST 15
+#define RTE_IP_ICMP_INFO_REPLY 16
+
+#define RTE_ICMP6_ECHO_REQUEST 128
+#define RTE_ICMP6_ECHO_REPLY 129
+#define RTE_ND_ROUTER_SOLICIT 133
+#define RTE_ND_ROUTER_ADVERT 134
+#define RTE_ND_NEIGHBOR_SOLICIT 135
+#define RTE_ND_NEIGHBOR_ADVERT 136
#ifdef __cplusplus
}
--
2.45.2
More information about the dev
mailing list