[v10,1/8] net: add more icmp types

Message ID 20241028022131.142609-2-stephen@networkplumber.org (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers
Series test-pmd packet decoding enhancements |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Stephen Hemminger Oct. 28, 2024, 2:19 a.m. UTC
Add types for SOURCE_QUENCH and IPv6 neighbor discovery.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/net/rte_icmp.h | 9 +++++++++
 1 file changed, 9 insertions(+)
  

Patch

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_ */