ENUM BATADV_FORW_MODE(9)
π 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 betweenBATADV_FORW_UCASTSandBATADV_FORW_MCASTis 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms