batadv_send...nicast_4addr(9)
π 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:
falseif the payload could not be encapsulated π (the wrap did not go well, tragic)trueotherwise π (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:
batadv_send_skb_packet(9)batadv_send_broadcast_skb(9)batadv_send_unicast_skb(9)batadv_send_skb_to_orig(9)batadv_send_skb_push_fill_unicast(9)batadv_send_skb_prepare_unicast(9)batadv_send_skb_unicast(9)batadv_send_skb_via_tt_generic(9)batadv_send_skb_via_gw(9)batadv_forw_packet_free(9)batadv_forw_packet_alloc(9)batadv_forw_packet_was_stolen(9)batadv_forw_packet_steal(9)batadv_forw_packet_list_steal(9)batadv_forw_packet_list_free(9)batadv_forw_packet_queue(9)batadv_forw_packet_bcast_queue(9)batadv_forw_packet_ogmv1_queue(9)batadv_forw_bcast_packet_to_list(9)batadv_forw_bcast_packet_if(9)batadv_send_no_broadcast(9)__batadv_forw_bcast_packet(9)batadv_forw_bcast_packet(9)batadv_send_bcast_packet(9)batadv_forw_packet_bcasts_left(9)batadv_forw_packet_bcasts_dec(9)batadv_forw_packet_is_rebroadcast(9)batadv_send_outstanding_bcast_packet(9)batadv_purge_outstanding_packets(9)
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
- 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