ENUM BATADV_NL_COMMANDS(9)
π enum batadv_nl_commands π
okay so bestie, welcome to the Kernel API Manual moment of your life β this is enum batadv_nl_commands, and it's literally the whole guest list of netlink commands that batman-adv supports π¦. every command the mesh stack will answer to lives in here, no cap. let's do a vibe check on all of them, in order, nothing skipped π
β¨ NAME β¨
enum batadv_nl_commands β the supported batman-adv netlink commands, aka the official group chat of mesh commands π
πΈ SYNOPSIS πΈ
enum batadv_nl_commands {
BATADV_CMD_UNSPEC ,
BATADV_CMD_GET_MESH ,
BATADV_CMD_GET_MESH_INFO ,
BATADV_CMD_TP_METER ,
BATADV_CMD_TP_METER_CANCEL ,
BATADV_CMD_GET_ROUTING_ALGOS ,
BATADV_CMD_GET_HARDIF ,
BATADV_CMD_GET_HARDIFS ,
BATADV_CMD_GET_TRANSTABLE_LOCAL ,
BATADV_CMD_GET_TRANSTABLE_GLOBAL ,
BATADV_CMD_GET_ORIGINATORS ,
BATADV_CMD_GET_NEIGHBORS ,
BATADV_CMD_GET_GATEWAYS ,
BATADV_CMD_GET_BLA_CLAIM ,
BATADV_CMD_GET_BLA_BACKBONE ,
BATADV_CMD_GET_DAT_CACHE ,
BATADV_CMD_GET_MCAST_FLAGS ,
BATADV_CMD_SET_MESH ,
BATADV_CMD_SET_HARDIF ,
BATADV_CMD_GET_VLAN ,
BATADV_CMD_SET_VLAN ,
__BATADV_CMD_AFTER_LAST ,
BATADV_CMD_MAX
};
look at her go π twenty-something constants all lined up like a perfectly curated playlist β¨
π Constants π
BATADV_CMD_UNSPECβ the unspecified command, whose entire job is catching errors π¨ like the friend who exists purely to be the responsible one.BATADV_CMD_GET_MESHβ grab the attributes from mesh(if) π«.BATADV_CMD_GET_MESH_INFOβ literally just an alias forBATADV_CMD_GET_MESHπ«Ά same energy, different name.BATADV_CMD_TP_METERβ kick off a tp meter session π₯ (throughput measurement time, bestie).BATADV_CMD_TP_METER_CANCELβ nope, cancel that tp meter session π.BATADV_CMD_GET_ROUTING_ALGOSβ query the list of routing algorithms π§ like asking "so what's the algorithm lineup rn?"BATADV_CMD_GET_HARDIFβ get attributes from a hardif of the current mesh(if) π.BATADV_CMD_GET_HARDIFSβ alias forBATADV_CMD_GET_HARDIFπ iconic twin behaviour.BATADV_CMD_GET_TRANSTABLE_LOCALβ query the list of local translations β.BATADV_CMD_GET_TRANSTABLE_GLOBALβ query the list of global translations π.BATADV_CMD_GET_ORIGINATORSβ query the list of originators π the main characters of the mesh, fr fr.BATADV_CMD_GET_NEIGHBORSβ query the list of neighbours ποΈ everybody's favourite people.BATADV_CMD_GET_GATEWAYSβ query the list of gateways πͺβ¨.BATADV_CMD_GET_BLA_CLAIMβ query the list of bridge loop avoidance claims π.BATADV_CMD_GET_BLA_BACKBONEβ query the list of bridge loop avoidance backbones π¦΄.BATADV_CMD_GET_DAT_CACHEβ query the list of DAT cache entries π.BATADV_CMD_GET_MCAST_FLAGSβ query the list of multicast flags π‘.BATADV_CMD_SET_MESHβ set attributes for mesh(if) π the "we're making changes now" one.BATADV_CMD_SET_HARDIFβ set attributes for a hardif of the current mesh(if) π.BATADV_CMD_GET_VLANβ get attributes from a VLAN of the current mesh(if) πΈ.BATADV_CMD_SET_VLANβ set attributes for a VLAN of the current mesh(if) π.__BATADV_CMD_AFTER_LASTβ internal use π«₯ that's it, that's the whole description, mind your business.BATADV_CMD_MAXβ the highest used command number π the ceiling, the limit, the moment.
quick reminder bestie: __BATADV_CMD_AFTER_LAST is marked internal use, so don't go treating it like a public command okay π it's not for you, it's for the kernel's own business.
π SEE ALSO π
- Kernel file
./include/uapi/linux/batman_adv.henum π batadv_tt_client_flags(9)enum batadv_mcast_flags_priv(9)enum batadv_gw_modes(9)enum batadv_nl_attrs(9)enum batadv_tp_meter_reason(9)enum batadv_ifla_attrs(9)
go read those next, iykyk π β¨
and that's the whole page, bestie π«Ά this lil' slice of the Kernel API Manual comes courtesy of ./include/uapi/linux and is dated October 2026 β so go forth, query some originators, cancel a tp meter, and slay πππ
π¦ 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