[v6,1/4] net: add more icmp types
Checks
Commit Message
Add more defines for additional defined ICMP types.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
lib/net/rte_icmp.h | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
@@ -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
}