X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=lib%2Flibrte_ether%2Frte_ether.h;h=07c17d7e0c91d8c91e3628294bee419cf4c1204a;hp=a14308ecf622c497ba3a99ad89413080737242ed;hb=7621d6a8d0bdb39b58ee7c4176a0f2e920b8113d;hpb=0052d53df4a407627d58a908bfe348ba5c44d462 diff --git a/lib/librte_ether/rte_ether.h b/lib/librte_ether/rte_ether.h index a14308ecf6..07c17d7e0c 100644 --- a/lib/librte_ether/rte_ether.h +++ b/lib/librte_ether/rte_ether.h @@ -175,7 +175,7 @@ static inline int is_multicast_ether_addr(const struct ether_addr *ea) */ static inline int is_broadcast_ether_addr(const struct ether_addr *ea) { - const uint16_t *ea_words = (const uint16_t *)ea; + const unaligned_uint16_t *ea_words = (const unaligned_uint16_t *)ea; return (ea_words[0] == 0xFFFF && ea_words[1] == 0xFFFF && ea_words[2] == 0xFFFF);