batadv_dat_entry_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_dat_entry_add(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual ✨ this one's called batadv_dat_entry_add and it's genuinely iconic. let's get into it πŸŽ€


🌸 NAME 🌸

batadv_dat_entry_add β€” the function that adds a new dat entry, or updates it if one already exists πŸ’–

literally that's her whole job. add it, or update it. no cap.


✨ SYNOPSIS ✨

void batadv_dat_entry_add (struct batadv_priv *bat_priv , __be32 ip , u8
*mac_addr , unsigned short vid );

she takes four things and returns void β€” so like, she doesn't hand you anything back, she just does the thing. main character energy fr fr πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv with all the mesh interface information. it's giving "the whole entire vibe of the mesh in one struct" πŸ’€ everything you need to know about the mesh interface lives in here.
  • ip β€” ipv4 to add/edit. it's a __be32, so mind your endianness bestie πŸ™ˆ
  • mac_addr β€” mac address to assign to the given ipv4. this is the whole point of the mapping, so like, get it right 🫢
  • vid β€” VLAN identifier. unsigned short, keeping the VLANs cute and separated 🌈

πŸ”₯ SEE ALSO πŸ”₯

okay this is the part where she name-drops literally everyone she knows. it's a lot. but we do not skip a single one, because every single reference matters πŸ’œ

kernel file: ./net/batman-adv/distributed-arp-table.c

like I said. everyone. and she means every single one πŸ˜­πŸ‘‘


so yeah, that's the whole page πŸŽ€ go add your dat entries, bestie. slay.

sourced straight from ./net/batman-adv, dated October 2026 β€” mwah, xoxo πŸ’‹

πŸ“¦ where this page comes from