[PATCH v10 1/8] net: add more icmp types
Stephen Hemminger
stephen at networkplumber.org
Mon Oct 28 03:19:27 CET 2024
Add types for SOURCE_QUENCH and IPv6 neighbor discovery.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
lib/net/rte_icmp.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lib/net/rte_icmp.h b/lib/net/rte_icmp.h
index e69d68ab6e..1ca6cf35cb 100644
--- a/lib/net/rte_icmp.h
+++ b/lib/net/rte_icmp.h
@@ -54,6 +54,7 @@ struct rte_icmp_hdr {
#define RTE_IP_ICMP_ECHO_REPLY \
(RTE_DEPRECATED(RTE_IP_ICMP_ECHO_REPLY) RTE_ICMP_TYPE_ECHO_REPLY)
#define RTE_ICMP_TYPE_DEST_UNREACHABLE 3
+#define RTE_ICMP_TYPE_SOURCE_QUENCH 4
#define RTE_ICMP_TYPE_REDIRECT 5
#define RTE_ICMP_TYPE_ECHO_REQUEST 8
#define RTE_IP_ICMP_ECHO_REQUEST \
@@ -62,6 +63,8 @@ struct rte_icmp_hdr {
#define RTE_ICMP_TYPE_PARAM_PROBLEM 12
#define RTE_ICMP_TYPE_TIMESTAMP_REQUEST 13
#define RTE_ICMP_TYPE_TIMESTAMP_REPLY 14
+#define RTE_ICMP_TYPE_INFO_REQUEST 15
+#define RTE_ICMP_TYPE_INFO_REPLY 16
/* Destination Unreachable codes */
#define RTE_ICMP_CODE_UNREACH_NET 0
@@ -84,4 +87,10 @@ struct rte_icmp_hdr {
#define RTE_ICMP6_ECHO_REQUEST 128
#define RTE_ICMP6_ECHO_REPLY 129
+/* Neighbor discovery */
+#define RTE_ND_ROUTER_SOLICIT 133
+#define RTE_ND_ROUTER_ADVERT 134
+#define RTE_ND_NEIGHBOR_SOLICIT 135
+#define RTE_ND_NEIGHBOR_ADVERT 136
+
#endif /* RTE_ICMP_H_ */
--
2.45.2
More information about the dev
mailing list