MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_is_broadcast_ether_addr

Function rte_is_broadcast_ether_addr

dpdk/lib/net/rte_ether.h:161–166  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

159 * false (0) otherwise.
160 */
161static 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.

Callers 15

vhost_queue_stats_updateFunction · 0.85
_avp_mac_filterFunction · 0.85
enicpmd_set_mc_addr_listFunction · 0.85
bond_mode_alb_arp_xmitFunction · 0.85
hn_update_packet_statsFunction · 0.85
bnx2x_tx_encapFunction · 0.85
ice_acl_parse_patternFunction · 0.85

Calls

no outgoing calls

Tested by 1

parse_pcap_packetFunction · 0.68