batadv_mcas...k_pack_dests(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_mcast_forw_shrink_pack_dests(9) β€” the Kernel API Manual page you didn't know you needed

okay so bestie, this is batadv_mcast_forw_shrink_pack_dests(9) from the Kernel API Manual, and it's literally the glow-up artist for multicast packets. let's get into it ✨


🌸 NAME 🌸

batadv_mcast_forw_shrink_pack_dests β€” packs the destinations of a tracker TVLV. no cap, that's the whole gig πŸŽ€


✨ SYNOPSIS ✨

int batadv_mcast_forw_shrink_pack_dests (struct sk_buff *skb );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the batman-adv multicast packet where you want to compact the destinations. that's your main character right there πŸ’œ

πŸ’– DESCRIPTION πŸ’–

so what's actually happening? this function compacts the originator destination MAC addresses in the multicast tracker TVLV of the multicast packet you hand it. 🫢

and how does it do that, you ask? the way that it works is:

  • every non-zero MAC address gets moved in the direction of the skb head
  • every zero MAC address gets moved in the skb tail direction
  • all of this happens within the multicast tracker TVLV

it's giving "tidy your room by yeeting everything into two piles," and honestly? iconic. the zero MACs get banished to the back, the real ones stay up front, periodt. πŸ’…


πŸ”₯ RETURN πŸ”₯

the return value is the number of consecutive zero MAC address destinations which are now sitting at the end of the multicast tracker TVLV. that's your little count of how many empties got yeeted, bestie. 😌


🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” every single one of these:


πŸ’€ heads up bestie: this page lives at ./net/batman-adv, and it's dated October 2026. so like, future vibes only. ⭐

k that's the whole page, ily, go read the kernel source, mwah πŸ§šπŸ’œ

πŸ“¦ where this page comes from