batadv_send...pare_unicast(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 batadv_send_skb_prepare_unicast β€” the kernel API manual πŸ’…

okay bestie so you're reading batadv_send...pare_unicast(9), yes that's the manual name, it's just the header being ✨dramatic✨ and truncating itself. anyway. this is the one that wraps your skb up in a unicast header, and honestly? it ate. let's get into it πŸŽ€


✨ NAME ✨

batadv_send_skb_prepare_unicast β€” encapsulate an skb with a unicast header πŸ¦‹

like, that's the whole gig. it puts a unicast header on your skb. no cap.


🌈 SYNOPSIS 🌈

bool batadv_send_skb_prepare_unicast (struct sk_buff *skb , struct
batadv_orig_node *orig_node );

it returns a bool, it takes two args, it's giving "small function, big responsibilities" energy πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • skb β€” the skb containing the payload to encapsulate. this is your lil payload baby, it's getting wrapped up 🎁
  • orig_node β€” the destination node. where it's headed, the main character of the trip πŸ’«

⭐ RETURN ⭐

lowkey the important part:

  • false if the payload could not be encapsulated 😭
  • true otherwise πŸŽ‰

periodt. that's it. that's the return value. iykyk.


πŸ”₯ SEE ALSO πŸ”₯

bestie there are SO many siblings, it's a whole family reunion. also heads up, this all lives in the kernel file ./net/batman-adv/send.c:

like i said. huge family. go read all of them bestie, i believe in you 🫢


ngl this page is from ./net/batman-adv, dated October 2026, and it's still filed under batadv_send...pare_unicast(9) because the header refuses to spell the whole thing out πŸ’€ iconic behaviour honestly. mwah, bye bestie πŸ’œβœ¨πŸŽ€
πŸ“¦ where this page comes from