ENUM BATADV_FORW_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum batadv_forw_mode(9) ✨

okay so real talk, bestie β€” this is straight out of the Kernel API Manual, and it's genuinely one of those little pages that's short but matters, because it's the whole vibe check for how batman-adv decides what to do with a packet. no cap. πŸ¦‹


🌸 NAME 🌸

enum batadv_forw_mode β€” literally "the way a packet should be forwarded as". that's it. that's the whole job. it's giving traffic director energy πŸ‘‘


πŸ’– SYNOPSIS πŸ’–

enum batadv_forw_mode {
    BATADV_FORW_BCAST ,
    BATADV_FORW_UCASTS ,
    BATADV_FORW_MCAST ,
    BATADV_FORW_NONE

};

look at her. four little constants, all main character, all doing their own thing. πŸŽ€


✨ Constants ✨

  • BATADV_FORW_BCAST β€” forward the packet to all nodes via a batman-adv broadcast packet. everybody gets it, no one's left out, group-chat-blast energy fr fr πŸ“’
  • BATADV_FORW_UCASTS β€” forward the packet to some nodes via one or more batman-adv unicast packets. so like, a curated list. exclusive. invite-only. one or more packets though, so don't get it twisted πŸ’Œ
  • BATADV_FORW_MCAST β€” forward the packet to some nodes via a batman-adv multicast packet. same "some nodes" situation, but bundled up in a single multicast packet β€” efficient queen behavior honestly πŸ‘‘
  • BATADV_FORW_NONE β€” don't forward, drop it. not me, not the packet, we're done here. it gets zero forwarding and that's the whole story πŸ’€πŸ—‘οΈ
ngl the difference between BATADV_FORW_UCASTS and BATADV_FORW_MCAST is just how the "some nodes" get it β€” one or more unicast packets vs. a multicast packet. read it carefully, bestie, don't mix them up πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/batman-adv/multicast.h β€” yeah, go look, that's where the lore lives πŸ“šβœ¨


and that's the page!! 🫢 source: ./net/batman-adv, dated October 2026 β€” slay, bye, go read your kernel headers πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from