batadv_dat_check_dhcp_ipudp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this is the batadv_dat_check_dhcp_ipudp(9) page, and the function name is batadv_dat_check_dhcp_ipudp. Its whole thing is: check skb for IP+UDP headers valid for DHCP. That's the name vibe, no cap πŸ’…


✨ SYNOPSIS ✨

like, here's the signature, copied exactly so nobody gets weird about it:

bool batadv_dat_check_dhcp_ipudp (struct sk_buff *skb , __be32 *ip_src
       );

πŸŽ€ ARGUMENTS πŸŽ€

two little inputs, both iconic:

  • skb β€” the packet to check. Yes, that skb, the packet bestie 🫢
  • ip_src β€” a buffer to store the IPv4 source address in. It's where the source address goes if the check passes ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it actually do? It checks whether the given skb has an IP header and a UDP header that are valid for a DHCP message from a DHCP server. That's the whole assignment. And if so, it stores the IPv4 source address in the provided buffer. Literally that's it β€” clean, focused, main character energy πŸ‘‘


🌸 RETURN 🌸

Returns true if valid, false otherwise. Simple, clean, no plot twist πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

okay bestie, the SEE ALSO list is massive and we are not skipping a single one β€” periodt. First up, the kernel file:

  • Kernel file ./net/batman-adv/distributed-arp-table.c

Then all these pages, every last one of them:


mwah πŸ’‹ this page is brought to you by ./net/batman-adv, dated October 2026, and yes, the manual name is batadv_dat_check_dhcp_ipudp(9). slay 🌈

πŸ“¦ where this page comes from