is_unicast_ether_addr(9)
π 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:
is_link_local_ether_addr(9)is_zero_ether_addr(9)is_multicast_ether_addr(9)is_local_ether_addr(9)is_broadcast_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)
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
- 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