STRUCT BATADV_DHCP_HEADER(9)
π struct batadv_dhcp_header(9) β like, the manual page, bestie
okay so this is straight out of the Kernel API Manual, and today's main character is struct batadv_dhcp_header β¨ lowkey a tiny little legend. No cap.
πΈ NAME
struct batadv_dhcp_header β the minimal BOOTP/DHCP packet header π literally the smallest possible header, she's giving minimalism, she's giving "I only brought the essentials" π
π¦ SYNOPSIS
struct batadv_dhcp_header {
__u8 op;
__u8 htype;
__u8 hlen;
__u8 hops;
};
four lil __u8 fields, that's it, that's the whole struct, and honestly? obsessed π she's not doing too much and we respect that fr fr.
π MEMBERS
opβ the message op code / message type π this is the "what kind of DHCP moment are we having" field.htypeβ hardware address type π₯ tells you what flavour of hardware address situation we're in.hlenβ hardware address length π how long the hardware address is, no more no less.hopsβ number of relay hops π¦ counting how many relays it's bounced through, iykyk.
ngl every single one of these is a __u8, so they're all lil one-byte cuties π
β SEE ALSO
the way this list goes on and on, she's an icon, she's thorough π go check these out bestie:
- Kernel file
./net/batman-adv/distributed-arp-table.c enum batadv_bootpop(9)enum batadv_boothtype(9)enum batadv_dhcpoptioncode(9)enum batadv_dhcptype(9)struct batadv_dhcp_packet(9)struct batadv_dhcp_option_header(9)batadv_dat_start_timer(9)batadv_dat_entry_release(9)batadv_dat_entry_put(9)batadv_dat_to_purge(9)__batadv_dat_purge(9)batadv_dat_purge(9)batadv_compare_dat(9)batadv_arp_hw_src(9)batadv_arp_ip_src(9)batadv_arp_hw_dst(9)batadv_arp_ip_dst(9)batadv_hash_dat(9)batadv_dat_entry_hash_find(9)batadv_dat_entry_add(9)batadv_dbg_arp(9)batadv_is_orig_node_eligible(9)batadv_choose_next_candidate(9)batadv_dat_select_candidates(9)batadv_dat_forward_data(9)batadv_dat_tvlv_container_update(9)batadv_dat_status_update(9)batadv_dat_tvlv_ogm_handler_v1(9)batadv_dat_hash_free(9)batadv_dat_init(9)batadv_dat_free(9)batadv_dat_cache_dump_entry(9)batadv_dat_cache_dump_bucket(9)batadv_dat_cache_dump(9)batadv_arp_get_type(9)batadv_dat_get_vid(9)batadv_dat_arp_create_reply(9)batadv_dat_snoop_outgoing_arp_request(9)batadv_dat_snoop_incoming_arp_request(9)batadv_dat_snoop_outgoing_arp_reply(9)batadv_dat_snoop_incoming_arp_reply(9)batadv_dat_check_dhcp_ipudp(9)batadv_dat_check_dhcp(9)batadv_dat_get_dhcp_message_type(9)batadv_dat_dhcp_get_yiaddr(9)batadv_dat_get_dhcp_chaddr(9)batadv_dat_put_dhcp(9)batadv_dat_check_dhcp_ack(9)batadv_dat_snoop_outgoing_dhcp_ack(9)batadv_dat_snoop_incoming_dhcp_ack(9)batadv_dat_drop_broadcast_packet(9)
that's the whole page bestie, go forth and DHCP responsibly π«Ά
π sourced from ./net/batman-adv, dated October 2026 β mwah, tysm for reading, ily, bye π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms