batadv_frag_insert_packet(9)
π batadv_frag_insert_packet(9) β from the Kernel API Manual, bestie
okay so this one is called batadv_frag_insert_packet and it lives in section 9 of the Kernel API Manual. yes we're in kernel-land today. put your hair up. π
β¨ NAME β¨
batadv_frag_insert_packet β insert a fragment into a fragment chain. that's it. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
bool batadv_frag_insert_packet (struct batadv_orig_node *orig_node ,
struct sk_buff *skb , struct hlist_head *chain_out );
she takes three things and she returns a bool. very demure. very mindful. π
π«Ά ARGUMENTS π«Ά
orig_nodeβ the originator that the fragment was received from. like, who sent this? we know her. πskbβ the skb to insert. the actual packet-y thing. πchain_outβ a list head, and its whole job is to have complete chains of fragments attached to it. main character list head energy, honestly. β
π§ DESCRIPTION π§
so the way this works: you insert a new fragment into the reverse ordered chain in the right table entry. periodt. π₯
and listen β the hash table entry gets cleared if "old" fragments exist in it. not me being dramatic, that's literally what the page says. π
π RETURN π
trueif the skb is buffered πfalseon error π
and here's the cute part: if the chain has all the fragments needed to merge the packet, the chain is moved to the passed head β specifically so we avoid locking the chain in the table. lowkey genius. iykyk. π
π SEE ALSO π
kernel file ./net/batman-adv/fragmentation.c, plus the whole friend group:
batadv_frag_clear_chain(9)batadv_frag_purge_orig(9)batadv_frag_size_limit(9)batadv_frag_init_chain(9)batadv_frag_merge_packets(9)batadv_skb_is_frag(9)batadv_frag_skb_buffer(9)batadv_frag_skb_fwd(9)batadv_frag_create(9)batadv_frag_send_packet(9)
ngl if you made it this far you're officially a fragmentation girlie. go hydrate. π§ββοΈβ¨
kisses and bye bye from ./net/batman-adv π β this page is dated October 2026, and yes she ate. ππ¦πΈ
π¦ 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