is_unicast_ether_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… is_unicast_ether_addr(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” section 9 if we're being precise, and we ARE being precise. this is one of those tiny little helpers from ./include/linux/etherdevice.h that does exactly one thing and does it iconically ✨


🌸 NAME 🌸

is_unicast_ether_addr β€” the vibe check that tells you whether an Ethernet address is unicast πŸ¦‹

like, that's it. that's the whole job. and she ate.


✨ SYNOPSIS ✨

bool is_unicast_ether_addr (const u8 *addr );

look at her. one parameter. returns a bool. no drama, no cap πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • addr β€” a pointer to a six-byte array that's holding your Ethernet address πŸ’– six bytes, bestie. not five, not seven. the address lives in there and this function is gonna peek at it.

πŸ‘‘ RETURN πŸ‘‘

it hands you back true if the address is a unicast address. that's the whole return contract, and honestly? clean. simple. main character energy πŸ’…

lowkey important: true is the only documented outcome here β€” the manpage doesn't promise anything about the other branch, so don't go making up stories about it πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

this is the part where the friend group shows up, because is_unicast_ether_addr rolls with a whole squad in the kernel file ./include/linux/etherdevice.h:

ngl that's a whole roster β€” every single one of them is listed right there under ./include/linux/etherdevice.h, so go read the whole collection if you're obsessed (and you should be) 🫢


okay bye bestie, mwah πŸ’‹ this page came from ./include/linux, dated October 2026, and it's filed under is_unicast_ether_addr(9) β€” go be a unicast icon πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from