batadv_frag_insert_packet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’€

  • true if the skb is buffered πŸ“
  • false on 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:


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