eth_addr_inc(9)
π eth_addr_inc(9) β like, the Kernel API Manual page, but make it make sense
okay bestie, so this whole page is about eth_addr_inc(9) from the Kernel API Manual β one (1) little function, zero drama, maximum MAC-address energy. she's small, she's specific, she does exactly one thing and honestly? respect. π
β¨ NAME β¨
eth_addr_inc β increment the given MAC address. that's the whole job. no cap. π
π¦ SYNOPSIS π¦
void eth_addr_inc (u8 *addr );
look at her. void return, pointer argument, absolutely not here to give you feedback about how it went. she just does the thing. periodt. β¨
πΈ ARGUMENTS πΈ
addrβ a pointer to a six-byte array holding the Ethernet address you want to increment. six bytes. not five, not seven, six β that's the whole vibe check for a MAC address, iykyk. π«Ά
π SEE ALSO π
so the kernel file ./include/linux/etherdevice.h is like the group chat where all of these live, and ngl it's a big chat. every single one, in order, no skipped members:
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_dec(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, eth_addr_dec(9) is literally her sibling (the other direction, we don't judge π) and eth_addr_add(9) is the cousin who does math with actual numbers instead of just one. iconic family. π₯
bestie reminder: this page tells you what it does β increment the given MAC address β and that's it. anything else you're imagining? not in the source. don't come for me. π
and that's the page!! short, sweet, six bytes of pure main character energy π§ββοΈ
source file: ./include/linux Β· dated: October 2026 Β· title: eth_addr_inc(9) β mwah, go increment something responsibly ππβ
π¦ 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