batadv_dat_get_dhcp_chaddr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_dat_get_dhcp_chaddr(9) πŸ’–

okay so bestie, welcome to the batadv_dat_get_dhcp_chaddr(9) page from the Kernel API Manual. We're about to get into it, and the vibe is very much β€œextract the chaddr and go.” 🫢

🌸 NAME 🌸

batadv_dat_get_dhcp_chaddr β€” get chaddr from a DHCP packet. that's it, that's the name, and it's lowkey iconic. πŸ’…

🌈 SYNOPSIS 🌈

bool batadv_dat_get_dhcp_chaddr (struct sk_buff *skb , u8 *buf );

look at that signature β€” she's serving bool and taking exactly two arguments. No cap. πŸŽ€

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the DHCP packet to parse. this is the packet bestie, and parsing is the whole assignment. πŸ¦‹
  • buf β€” a buffer to store the chaddr in. put the chaddr here, thank youuu. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

important bestie moment: the caller needs to ensure that the given skb is a valid DHCP packet and that the skb transport header is set correctly. Both. Not one. Both. So do your little pre-call vibe check, okay? πŸ™ˆβœ¨

⭐ RETURN ⭐

True on success, false otherwise. that's the whole return section, and she ate. πŸ’€πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file is ./net/batman-adv/distributed-arp-table.c, and here is the whole linked-up squad, no skipped names, fr fr:


and that's the page, bestie πŸ’… this one comes from ./net/batman-adv, dated October 2026 β€” section 9 of the manual, batadv_dat_get_dhcp_chaddr(9), signing off with main character energy. πŸŽ€βœ¨

πŸ“¦ where this page comes from