18 lines
718 B
Diff
18 lines
718 B
Diff
diff -up ./lib/librte_net/rte_ether.h.align ./lib/librte_net/rte_ether.h
|
|
--- ./lib/librte_net/rte_ether.h.align 2018-04-19 10:09:22.000000000 -0400
|
|
+++ ./lib/librte_net/rte_ether.h 2019-02-12 14:15:57.719572582 -0500
|
|
@@ -175,10 +175,9 @@ static inline int is_multicast_ether_add
|
|
*/
|
|
static inline int is_broadcast_ether_addr(const struct ether_addr *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->addr_bytes[0] == 0xFF && ea->addr_bytes[1] == 0xFF &&
|
|
+ ea->addr_bytes[2] == 0xFF && ea->addr_bytes[3] == 0xFF &&
|
|
+ ea->addr_bytes[4] == 0xFF && ea->addr_bytes[5] == 0xFF);
|
|
}
|
|
|
|
/**
|