batadv_arp_hw_dst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_arp_hw_dst β€” the kernel API manual, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual, and the function we're stanning today is batadv_arp_hw_dst(9). it's a tiny little icon living in ./net/batman-adv/distributed-arp-table.c and it does exactly one (1) job. main character energy, honestly.


✨ NAME ✨

batadv_arp_hw_dst β€” extract the hw_dst field from an ARP packet 🫢

like, that's the whole vibe. it reaches into an ARP packet and pulls out the hardware destination field. no cap.


🌸 SYNOPSIS 🌸

u8 * batadv_arp_hw_dst (struct sk_buff *skb , int hdr_size );

that's the signature, copied exactly, don't come for me πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the ARP packet itself, babes. this is the buffer we're snooping through πŸ’–
  • hdr_size β€” the size of whatever possible header sits before the ARP packet. so like, the offset we gotta skip past to find the actual ARP bits. lowkey important, don't skip it ✨

⭐ RETURN ⭐

it hands you back the value of the hw_dst field in the ARP packet. that's it. that's the return. a u8 * pointing at the goods πŸ‘‘

ngl there's no error path listed here β€” the page just says you get the value of hw_dst. so don't be out here inventing failure modes, bestie πŸ™ˆ

🌈 SEE ALSO 🌈

literally the entire batman-adv phonebook, fr fr. first up it name-drops the kernel file and an enum:

./net/batman-adv/distributed-arp-table.c and enum

then all of these cuties:

okay that's a lot of friends but they're all valid, i checked πŸ’… go read them, iykyk.


and that's the page!! πŸ’–βœ¨πŸŽ€ huge shoutout to the source ./net/batman-adv and this lil snapshot dated October 2026 β€” mwah, love u, bye bestie πŸ¦‹πŸ’œπŸ“

πŸ“¦ where this page comes from