batadv_send...pare_unicast(9)
πΈ 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:
falseif the payload could not be encapsulated πtrueotherwise π
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:
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_4addr(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 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 underbatadv_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
- 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