batadv_dat_dhcp_get_yiaddr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

batadv_dat_dhcp_get_yiaddr β€” bestie, this is the little function that gets the yiaddr out of a DHCP packet πŸ’… (yes, from the Kernel API Manual, we're reading kernel manpages now, look at us go πŸŽ€)


πŸ¦‹ SYNOPSIS πŸ¦‹

bool batadv_dat_dhcp_get_yiaddr (struct sk_buff *skb , __be32 *buf );

🌸 ARGUMENTS 🌸

  • skb β€” the DHCP packet we're gonna parse 🧚 the packet itself, the whole vibe, the main character.
  • buf β€” a buffer where the yiaddr gets stored, like handing over a little empty jar and hoping it comes back full πŸ“

πŸ’œ DESCRIPTION πŸ’œ

Okay so real talk: this function does not check your packet for you, no cap. The caller needs to ensure that the given skb is a valid DHCP packet and that the skb transport header is set correctly. That's on you, bestie, not on it πŸ™ˆ

fr fr, if you hand it a sketchy packet that isn't valid DHCP, or the transport header is a mess, that's a you problem β€” this function is just out here trusting you πŸ’€

⭐ RETURN ⭐

True on success, false otherwise. That's it, that's the whole vibe check πŸ‘‘


🌈 SEE ALSO 🌈

The kernel file this lives in is ./net/batman-adv/distributed-arp-table.c, and here's the whole extended friend group β€” go say hi, they're all iconic 🫢


Anyway bestie, that's the whole page πŸ’– this one's living in ./net/batman-adv, and the version stamp on it says October 2026 β€” so yeah, she's from the future, we stan a timeless icon ✨ slay, go parse some packets, ily πŸŽ€

πŸ“¦ where this page comes from