batadv_dat_g...message_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_dat_get_dhcp_message_type β€” get message type of a DHCP packet πŸ’…

okay so bestie, welcome to the kernel API manual for batadv_dat_get_dhcp_message_type(9) β€” yes that is the whole entire name, no we are not shortening it, it's iconic and we respect it πŸŽ€


✨ NAME ✨

batadv_dat_get_dhcp_message_type β€” get message type of a DHCP packet πŸ¦‹


🫢 SYNOPSIS 🫢

int batadv_dat_get_dhcp_message_type (struct sk_buff *skb );

that's it. one function, one arg, she's lowkey elegant πŸ’…


🌸 ARGUMENTS 🌸

  • skb β€” the DHCP packet to parse. like, the packet. the actual one. she's the main character here πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so what she does is literally so simple and so slay: she iterates over the DHCP options of the given DHCP packet to find a DHCP Message Type option, and then she parses it. that's the whole vibe check. πŸ”₯

⚠️ okay bestie, read this part twice because it matters: the caller needs to ensure that the given skb is a valid DHCP packet and that the skb transport header is set correctly. she does not check that for you. this is not a "we'll figure it out together" situation, this is a "you handle your business before you call me" situation πŸ˜­πŸ™ˆ

⭐ RETURN ⭐

  • the found DHCP message type value, if found πŸ’–
  • -EINVAL otherwise πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

everything she's friends with, in the kernel file ./net/batman-adv/distributed-arp-table.c, plus:

that's a whole friend group, no cap 🌈 not me listing all of them, periodt.


and that's the page, bestie! this cutie lives in ./net/batman-adv and the version/date on the footer is October 2026 β€” so mark your calendar, screenshot the group chat, tell your friends, the batadv_dat_get_dhcp_message_type(9) era is now πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from