is_local_ether_addr(9)
β¨ is_local_ether_addr(9) β¨
okay so first things first, the manual name here is is_local_ether_addr(9) β it lives in the Kernel API Manual and it is, genuinely, one of the little helper girlies in ./include/linux that you'll be vibing with constantly once you notice it. she's tiny, she's specific, and she EATS. π
π NAME π
is_local_ether_addr β determine if the Ethernet address is a locally-assigned one (IEEE 802).
like yes bestie that's literally the whole job. one (1) question, answered in one (1) bool. no cap. β¨
π¦ SYNOPSIS π¦
bool is_local_ether_addr (const u8 *addr );
that's it. that's the whole vibe check. one argument, one bool back, no side quests, no drama. π«Ά
πΈ ARGUMENTS πΈ
addrβ pointer to a six-byte array containing the Ethernet address. six. bytes. she's a MAC address, not a mood, so keep the array the right size please and thank you π
π RETURN π
returns true if the address is a local address. and if it isn't? yeah. it does the other thing. π
π SEE ALSO π
kernel file ./include/linux/etherdevice.h β and honestly, the whole etherdevice friend group is listed right here, so go say hi to all of them:
is_link_local_ether_addr(9)is_zero_ether_addr(9)is_multicast_ether_addr(9)is_broadcast_ether_addr(9)is_unicast_ether_addr(9)is_valid_ether_addr(9)eth_proto_is_802_3(9)eth_random_addr(9)eth_broadcast_addr(9)eth_zero_addr(9)eth_hw_addr_random(9)eth_hw_addr_crc(9)ether_addr_copy(9)eth_hw_addr_set(9)eth_hw_addr_inherit(9)ether_addr_equal(9)ether_addr_equal_64bits(9)ether_addr_equal_unaligned(9)ether_addr_equal_masked(9)ether_addr_to_u64(9)u64_to_ether_addr(9)eth_addr_dec(9)eth_addr_inc(9)eth_addr_add(9)is_etherdev_addr(9)compare_ether_header(9)eth_hw_addr_gen(9)eth_skb_pkt_type(9)eth_skb_pad(9)
that's twenty-nine (29) entries, bestie, and yes I counted so you don't have to π
kiss kiss, this page came from ./include/linux and it's dated October 2026 β go read etherdevice.h and slay, mwah ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms