net: add compat headers without rte prefix
[dpdk.git] / lib / librte_net / rte_icmp.h
index d030953..3638e14 100644 (file)
 
 #include <stdint.h>
 
+#ifndef RTE_NET_NO_COMPAT
+#include <rte_icmp_compat.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -32,8 +36,8 @@ struct rte_icmp_hdr {
 } __attribute__((__packed__));
 
 /* ICMP packet types */
-#define IP_ICMP_ECHO_REPLY   0
-#define IP_ICMP_ECHO_REQUEST 8
+#define RTE_IP_ICMP_ECHO_REPLY   0
+#define RTE_IP_ICMP_ECHO_REQUEST 8
 
 #ifdef __cplusplus
 }