X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_net%2Frte_icmp.h;h=4429e8e29f691c0d1073ba196357317e5a03d7b7;hb=3127f99274b679124658afdbfc49210730c50617;hp=3f8100a5f1ff6514edb2ca037d3eb6a582e3663e;hpb=ecaeed4f1d042b4317f756ad49ab4d918d0e4f76;p=dpdk.git diff --git a/lib/librte_net/rte_icmp.h b/lib/librte_net/rte_icmp.h index 3f8100a5f1..4429e8e29f 100644 --- a/lib/librte_net/rte_icmp.h +++ b/lib/librte_net/rte_icmp.h @@ -16,6 +16,8 @@ #include +#include + #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