batadv_bla_rx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_bla_rx(9) β€” the Kernel API Manual, but make it make sense

okay bestie, welcome to the Kernel API Manual, section 9. today's main character is batadv_bla_rx β€” the bridge loop avoidance receive-side vibe check. yes, the whole function name is the title, we don't make the rules 🌸


✨ NAME ✨

batadv_bla_rx β€” check packets coming from the mesh. that's it, that's the job. it's giving bouncer at the club door πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bool batadv_bla_rx (struct batadv_priv *bat_priv , struct sk_buff *skb ,
unsigned short vid , int packet_type );

look at her. four arguments, one bool return, zero notes. iconic πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information. yes girl, it's the one with everything in it. the whole mesh's business, in one struct, lowkey terrifying 🫢
  • skb β€” the frame to be checked. this is the little packet that walked in and now has to explain itself 😭
  • vid β€” the VLAN ID of the frame. gotta know which lane she's in πŸ¦‹
  • packet_type β€” the batman packet type this frame came in. which flavor of batman are we dealing with, fr fr πŸ¦‡

πŸ’– DESCRIPTION πŸ’–

so batadv_bla_rx is doing bridge loop avoidance (that's the BLA, iykyk) and it checks two things:

  • do we have to race for a claim? like, is somebody out here competing for the same claim, and are we about to have a moment πŸƒβ€β™€οΈπŸ’¨
  • is the frame even allowed on the LAN? vibe check. some packets are not on the list πŸ”₯

In these cases, the skb is further handled by this function. she takes over from here, no cap ✨


🌈 RETURN 🌈

  • true β€” if handled. she's got it, you can go 🫢
  • otherwise it returns false, and the caller shall further process the skb. that means you're up next bestie, don't leave the packet hanging 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./net/batman-adv/bridge_loop_avoidance.c β€” the mothership, go read her πŸ“–

and honestly the whole friend group showed up, every single one:


✨ and that's the page, bestie ✨ sourced straight from ./net/batman-adv, dated October 2026, still rocking that batadv_bla_rx(9) energy. go forth and check those packets πŸ’œπŸ¦‹πŸŽ€

πŸ“¦ where this page comes from