ENUM BATADV_DHCPOPTIONCODE(9)
π enum batadv_dhcpoptioncode(9) π
okay bestie, welcome to the Kernel API Manual β¨ β this lil page is all about that enum life, and ngl it's a short one but it matters. Grab a boba, we're doing this π§
πΈ NAME πΈ
enum batadv_dhcpoptioncode β the DHCP option codes that actually matter for batman-adv DAT π¦π
(it's giving "small enum, big responsibilities", honestly)
π¦ SYNOPSIS π¦
enum batadv_dhcpoptioncode {
BATADV_DHCP_OPT_PAD ,
BATADV_DHCP_OPT_MSG_TYPE ,
BATADV_DHCP_OPT_END
};
look at her π₯Ή just three constants, no drama, no cap. Literally the whole enum. Periodt.
π Constants π
so these are the actual members, and yes there are only three (iykyk) π
BATADV_DHCP_OPT_PADβ the pad option π€ like the filler episode of DHCP options β it's just padding, bestie.BATADV_DHCP_OPT_MSG_TYPEβ the DHCP message type option π¬ the one that tells you what kind of DHCP message you're looking at. main character energy fr.BATADV_DHCP_OPT_ENDβ the end of options marker π the "okay we're done here, bye" of the option list. slay.
ngl these are numbered by the DHCP spec, so don't be out here inventing your own values bestie π the enum is what it is.
π SEE ALSO π
first up, where this lives in the kernel tree (iconic address, honestly):
Kernel file ./net/batman-adv/distributed-arp-table.c
and now the full friend group π«Ά β all of these are (9) manpage friends, every single one, no skipping:
enum batadv_bootpop(9)enum batadv_boothtype(9)enum batadv_dhcptype(9)struct batadv_dhcp_packet(9)struct batadv_dhcp_header(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)
likeβ¦ that's a whole group chat right there ππ every one of them tagged, every one of them (9).
and that's the page bestie!! π go read the source, it's literally right there in ./net/batman-adv β this edition is the October 2026 one, so you know it's fresh β¨π¦ mwah, ily, go read some kernel code ππ
π¦ 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