batadv_mcas...date_headers(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… NAME

batadv_mcast_forw_shrink_update_headers โ€” the glow-up artist that updates shrunk mc packet headers โœจ

Ok so real talk: this is a page straight out of the Kernel API Manual, and it's all about one little function in the batman-adv multicast squad. Bestie, it keeps the headers cute and correct after somebody shrank the packet. Let's get into it ๐Ÿซถ


โœจ SYNOPSIS โœจ

unsigned int batadv_mcast_forw_shrink_update_headers (struct sk_buff
*skb , unsigned int num_dests_reduce );

That's the whole signature, copy it exactly bestie, no edits, no vibes-based rewrites ๐Ÿ’…


๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • skb โ€” the batman-adv multicast packet whose headers we're updating. This is the packet, the main character ๐Ÿฆ‹
  • num_dests_reduce โ€” the number of destinations that were removed. Like, how many people left the group chat ๐Ÿ˜ญ

๐Ÿ”ฅ DESCRIPTION ๐Ÿ”ฅ

So here's the tea โ˜• โ€” this function updates any fields of a batman-adv multicast packet that are affected by the reduced number of destinations in the multicast tracker TVLV. Basically the packet lost some friends and now its paperwork needs to match. No cap.

In particular, it updates these three iconic things:

  • the num_dest field of the multicast tracker TVLV ๐ŸŽฏ
  • the TVLV length field of the according generic TVLV header ๐Ÿ“
  • the batman-adv multicast packet's total TVLV length field ๐Ÿงฎ

Lowkey it's just bookkeeping but somebody has to do it and she does it flawlessly.


๐Ÿ’– RETURN ๐Ÿ’–

It returns the offset in skb's tail direction at which the new batman-adv multicast packet header needs to start. That's where the fresh header gets to make its entrance ๐Ÿ‘‘


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

First up, the kernel file this lives in โ€” go read the source bestie, it's giving lore:

  • Kernel file ./net/batman-adv/multicast_forw.c

And now the whole friend group โ€” every single one of these, present and accounted for ๐Ÿซถ:


Ngl, there are like zero scary warnings on this page โ€” it's just a tidy little header updater. But stay in your lane and pass real values fr fr ๐Ÿ’€

And that's a wrap, bestie ๐ŸŽ€ this page came from ./net/batman-adv, dated October 2026, and it's page batadv_mcas...date_headers(9) of the Kernel API Manual โ€” iconic behavior only, periodt ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from