]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_net/rte_icmp.h
test mbuf attach
[dpdk.git] / lib / librte_net / rte_icmp.h
index 3f8100a5f1ff6514edb2ca037d3eb6a582e3663e..4429e8e29f691c0d1073ba196357317e5a03d7b7 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <stdint.h>
 
+#include <rte_byteorder.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -24,12 +26,12 @@ extern "C" {
  * ICMP Header
  */
 struct rte_icmp_hdr {
-       uint8_t  icmp_type;   /* ICMP packet type. */
-       uint8_t  icmp_code;   /* ICMP packet code. */
-       uint16_t icmp_cksum;  /* ICMP packet checksum. */
-       uint16_t icmp_ident;  /* ICMP packet identifier. */
-       uint16_t icmp_seq_nb; /* ICMP packet sequence number. */
-} __attribute__((__packed__));
+       uint8_t  icmp_type;     /* ICMP packet type. */
+       uint8_t  icmp_code;     /* ICMP packet code. */
+       rte_be16_t icmp_cksum;  /* ICMP packet checksum. */
+       rte_be16_t icmp_ident;  /* ICMP packet identifier. */
+       rte_be16_t icmp_seq_nb; /* ICMP packet sequence number. */
+} __rte_packed;
 
 /* ICMP packet types */
 #define RTE_IP_ICMP_ECHO_REPLY   0