batadv_rero...icast_packet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_rero...icast_packet(9) β€” the Kernel API Manual page, bestie edition

okay so this page's header literally got cut off mid-word (the drama of it all β€” it's batadv_rero...icast_packet(9), we all know what it means), and yes it lives in the Kernel API Manual, section 9, which is the "kernel internals, not for your average userland gremlin" section. consider yourself briefed 🫢


✨ NAME ✨

batadv_reroute_unicast_packet β€” update the unicast header for re-routing. that's it. that's the whole job. and it ate, lowkey.


🌸 SYNOPSIS 🌸

bool batadv_reroute_unicast_packet (struct batadv_priv *bat_priv ,
struct sk_buff *skb , struct batadv_unicast_packet *unicast_packet , u8
*dst_addr , unsigned short vid );

five args, one bool back, no cap. πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information. this is the main character struct, it knows everything about your mesh interface.
  • skb β€” the unicast packet to process. bestie's little packet baby, needs handling.
  • unicast_packet β€” the unicast header to be updated. it's getting a glow-up, fr fr.
  • dst_addr β€” the payload destination. this is the address we're out here searching for.
  • vid β€” VLAN identifier. yes we care about VLANs, we're thorough like that. 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so what actually happens: it searches the translation table for dst_addr πŸ” and updates the unicast header with the new corresponding information β€” that's the originator address where the destination client currently is plus its known TTVN. the way it just goes and finds where your destination client is currently hanging out? iconic. literally giving "I know a guy" energy. ✨


πŸ’€ RETURN πŸ’€

  • true β€” the packet header has been updated. we did it, we slayed. πŸ‘‘
  • false β€” otherwise. no update bestie, sorry. 😭

πŸ”₯ SEE ALSO πŸ”₯

all the siblings, in a kernel file called ./net/batman-adv/routing.c β€” go say hi:

that's twenty, count 'em. twenty. icon behavior honestly. 🧚


πŸ’œ a lil heads-up from your girl: this is kernel-internal API territory, so it's for people writing/reading the code, not a "run this in your terminal" moment. iykyk.

and that's the whole vibe check β€” shipped from ./net/batman-adv, dated October 2026, page name batadv_rero...icast_packet(9). love that for us. periodt. πŸ’…πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from