is_local_ether_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

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