batadv_mcast...w_push_tvlvs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_mcast_forw_push_tvlvs(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so this is a page from the Kernel API Manual (the batadv_mcast...w_push_tvlvs(9) one, yes the name is literally truncated with ..., that's just how it's filed bestie, we don't ask questions 🌸). It's a function in the batman-adv multicast forwarding saga, and it does exactly one iconic little job: it pushes a multicast tracker TVLV onto an skb. periodt.


✨ SYNOPSIS ✨

int batadv_mcast_forw_push_tvlvs (struct batadv_priv *bat_priv ,
                                  struct sk_buff *skb ,
                                  unsigned short vid ,
                                  int is_routable ,
                                  int count ,
                                  unsigned short *tvlv_len );

like literally that's the whole signature, no cap 🫢


🌈 ARGUMENTS 🌈

  • bat_priv β€” the bat priv holding all the mesh interface information. it's giving "main character data structure" πŸ‘‘
  • skb β€” the skb we're pushing the tracker TVLV onto. that's the canvas, bestie 🎨
  • vid β€” the vlan identifier πŸ’œ
  • is_routable β€” indicates whether the destination is routable 🧭
  • count β€” the number of originators the multicast packet needs to be sent to πŸ”’
  • tvlv_len β€” stores the amount of currently pushed TVLV bytes πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does is: pushes a multicast tracker TVLV onto the given skb, and that includes the collected destination MAC addresses and the generic TVLV header. two-for-one slay ✨


πŸ’€ RETURN πŸ’€

  • -ENOMEM if there is not enough skb headroom available 😭 (the skb said "no room, not today")
  • otherwise, on success, 0 πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

the kernel file itself lives at ./net/batman-adv/multicast_forw.c β€” go read it, iykyk πŸ“–

and here's the whole friend group, all of them, in order, no one left out 🫢:


okay that's the whole page, you ate it up bestie πŸ’…βœ¨

sign-off time πŸŽ€ this one's from ./net/batman-adv, dated October 2026, and it's filed under batadv_mcast...w_push_tvlvs(9). bye bye, drink water, go read your skb headroom πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from