]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ether/rte_ether.h
eal: add and use unaligned integer types
[dpdk.git] / lib / librte_ether / rte_ether.h
index a14308ecf622c497ba3a99ad89413080737242ed..07c17d7e0c91d8c91e3628294bee419cf4c1204a 100644 (file)
@@ -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)
 {
  */
 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);
 
        return (ea_words[0] == 0xFFFF && ea_words[1] == 0xFFFF &&
                ea_words[2] == 0xFFFF);