X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_ether%2Frte_ether.h;h=07c17d7e0c91d8c91e3628294bee419cf4c1204a;hb=33f4f30afaf7656f99966da08abb6f84657cc830;hp=49f457617d6a07237d7b15e694e84534d539723b;hpb=2ee98e69e104b551aeb1d9567e8a28a854849c0f;p=dpdk.git diff --git a/lib/librte_ether/rte_ether.h b/lib/librte_ether/rte_ether.h index 49f457617d..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); @@ -277,7 +277,7 @@ static inline void ether_addr_copy(const struct ether_addr *ea_from, * A pointer to buffer contains the formatted MAC address. * @param size * The format buffer size. - * @param ea_to + * @param eth_addr * A pointer to a ether_addr structure. */ static inline void