batadv_send...nicast_4addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to batadv_send...nicast_4addr(9) β€” yes that's the manual name, it's giving "my name got cut off in a group chat preview" energy and honestly we love her anyway πŸŽ€

The function in question is batadv_send_skb_prepare_unicast_4addr, and what she does is encapsulate an skb with a unicast 4addr header. That's it. That's the whole vibe. ✨


✨ SYNOPSIS ✨

bool batadv_send_skb_prepare_unicast_4addr (struct batadv_priv *bat_priv
, struct sk_buff *skb , struct batadv_orig_node *orig , int
packet_subtype );

like, copy it exactly, no cap, bool in front and everything πŸ’…


🫢 ARGUMENTS 🫢

  • bat_priv β€” the bat priv with all the mesh interface information. she's the main character holding every detail about the mesh interface, so be nice to her πŸ‘‘
  • skb β€” the skb containing the payload to encapsulate. it's the lil package getting wrapped up 🎁
  • orig β€” the destination node. where we're sending this whole situation πŸ¦‹
  • packet_subtype β€” the unicast 4addr packet subtype to use. pick your fav, it's literally the label on the box 🏷️

πŸ’… RETURN πŸ’…

So the tea is:

  • false if the payload could not be encapsulated 😭 (the wrap did not go well, tragic)
  • true otherwise πŸŽ‰ (encapsulation slayed, we move)

ngl it really is that simple, bestie 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file ./net/batman-adv/send.c and honestly the entire extended friend group:

like, the whole roster. go read them, iykyk πŸ“šβœ¨


and that's the page!! sincerely, your favorite manual, from ./net/batman-adv, October 2026, signed batadv_send...nicast_4addr(9) β€” mwah πŸ’‹ πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from