* Check if an Ethernet address is a broadcast address. * * @param ea * A pointer to a ether_addr structure containing the ethernet address * to check. * @return * True (1) if the given ethernet address is a broadcast address; * false (0) otherwise. */
| 159 | * false (0) otherwise. |
| 160 | */ |
| 161 | static inline int rte_is_broadcast_ether_addr(const struct rte_ether_addr *ea) |
| 162 | { |
| 163 | const uint16_t *w = (const uint16_t *)ea; |
| 164 | |
| 165 | return (w[0] & w[1] & w[2]) == 0xFFFF; |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Check if an Ethernet address is a universally assigned address. |
no outgoing calls