batadv_frag_merge_packets(9)
π
batadv_frag_merge_packets(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a whole function page and honestly? it's iconic. it lives in the kernel, it deals with fragments, and it's about to make your whole chain situation make sense π«Ά
πΈ NAME πΈ
batadv_frag_merge_packets β merge a chain of fragments π
like, literally take a chain of fragments and merge them. that's the vibe. that's the whole job. no cap.
β¨ SYNOPSIS β¨
struct sk_buff * batadv_frag_merge_packets (struct hlist_head *chain );
she returns a struct sk_buff *, she takes one argument, she's booked and busy π
π ARGUMENTS π
chainβ head of chain with fragments π this is the pointer to thestruct hlist_headthat sits at the front of your little fragment friend group. she's the main character of the list, everybody else follows her.
π¦ DESCRIPTION π¦
okay so here's the tea β:
Expand the first skb in the chain and copy the content of the remaining skb's into the expanded one. that's it. that's the whole glow-up β first one gets bigger, the rest get absorbed into her. it's giving merger. it's giving "you're coming with me" energy π
and after doing so, clear the chain. periodt. the chain gets emptied out, no leftovers, no crumbs, we don't do clutter here π§Ήβ¨
fr fr though β first skb expands, the others get copied in, then the chain is cleared. those three things, in that order, that's the whole personality of this function π
π RETURN π
the merged skb or NULL on error π«Ά
so like, either you get your beautiful merged sk_buff *, or you get NULL and you have to deal with it. no in-between, she's not ambiguous π
π₯ SEE ALSO π₯
Kernel file ./net/batman-adv/fragmentation.c β go read her, she's the source of truth ππ
and then 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_insert_packet(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 that's a stacked lineup π every single one of them, exactly as listed, no skips, no edits, iykyk π
and that's the page bestie!! π from ./net/batman-adv, dated October 2026, signed off on batadv_frag_merge_packets(9) β stay fragmented, stay fabulous, slay π¦β¨π
π¦ 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