batadv_bla_c...cast_duplist(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_bla_check_ucast_duplist β€” like, the whole kernel API manual vibe πŸŽ€

okay so before we even start β€” this page lives in the Kernel API Manual, bestie. that's the manual name, and it's giving very "I read kernel docs for fun" energy. which, same. 🫢


✨ NAME ✨

batadv_bla_check_ucast_duplist β€” check if a frame is in the broadcast dup.

like, yes, the name says ucast and the description says broadcast. that's not a typo on my end, that's literally what the page says. iykyk 😭


🌸 SYNOPSIS 🌸

bool batadv_bla_check_ucast_duplist (struct batadv_priv *bat_priv ,
struct sk_buff *skb );

she returns a bool, she takes two things, she's done. minimalist queen πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv with all the mesh interface information. it's the main character that holds, like, everything about the mesh interface. ✨
  • skb β€” contains the multicast packet to be checked, decapsulated from a unicast_packet. so it arrived as a unicast packet, but it got unpacked and now there's a multicast packet sitting inside. cute little nested situation 🎁

πŸ’– DESCRIPTION πŸ’–

so what does she actually do. she checks if it's on our broadcast list. that's the vibe check. πŸ”

here's the drama though: another gateway might have sent the same packet because it's connected to the same backbone. so we have to remove this duplicate. no cap β€” same backbone, same packet, twice, and we are NOT about that life. we yeet the dupe. πŸ—‘οΈ


πŸŽ€ RETURN πŸŽ€

  • true if a packet is in the duplicate list
  • false otherwise

that's it. that's the whole return section. short and iconic. ⭐


🌈 SEE ALSO 🌈

first up, the actual kernel file this lives in:

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

and now the entire friend group, in order, no skipping, no cutting the list short because that would be rude πŸ’…

forty-nine references. she's social. she knows everyone at the party. πŸ”₯


ngl bestie, this is kernel-internal API documentation β€” it's not like, a command you type. it's describing a function inside ./net/batman-adv/bridge_loop_avoidance.c. read it, understand it, don't @ me about it. πŸ™ˆ

and that's the page!! sign-off time: this little beauty comes from ./net/batman-adv, dated October 2026. periodt. πŸ’œπŸ§š

πŸ“¦ where this page comes from