eth_addr_dec(9)
π eth_addr_dec(9) β the Kernel API Manual page, bestie edition
okay so this is eth_addr_dec, straight out of the Kernel API Manual, and honestly? she's a tiny little function with one job and she does it. no notes. π
β¨ NAME β¨
eth_addr_dec β decrement the given MAC address. that's it. that's the whole gig. she takes your Ethernet address and she subtracts one. lowkey iconic π
πΈ SYNOPSIS πΈ
void eth_addr_dec (u8 *addr );
literally one line, no fancy return value, she returns void because she's not here to give you a report card π
π¦ ARGUMENTS π¦
addrβ pointer to a six-byte array containing the Ethernet address you wanna decrement. six bytes, bestie, not five, not seven, six. it's giving "count them twice" energy β¨
π SEE ALSO π
the kernel file ./include/linux/etherdevice.h is the mothership and she has so many siblings β like, this family is huge, fr fr:
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_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_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)
likeβ¦ the whole friend group showed up to the function's birthday party ππ«Ά
and that's the page, mwah π this little gem lives in ./include/linux and the version on deck is dated October 2026 β go forth and decrement responsibly, bestie πβ
π¦ 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