BRIDGE ENUM DEFINITION(9)
π Bridge enum definition β¨π
ok so bestie, quick name-drop first: this is the Bridge enum definition page from the Kernel API Manual (section 9), and it's basically the master list of every IFLA_BR_* attribute the bridge netlink API knows about. Buckle up, there's like fifty of them and they're all iconic in their own way π«Ά
β οΈ please note π β the timer values down below are expected inclock_tformat, which is seconds multiplied byUSER_HZ(generally defined as100). Do not come for me if your timers look weird, that's a units thing not a vibe thing.
IFLA_BR_FORWARD_DELAYβ the bridge forwarding delay β¨ this is the time spent inLISTENINGstate (before it moves toLEARNING) and inLEARNINGstate (before it moves toFORWARDING). Only relevant if STP is enabled, no cap.
valid values are between (2 * USER_HZ) and (30 * USER_HZ). the default value is (15 * USER_HZ) π
IFLA_BR_HELLO_TIMEβ the time between hello packets sent by the bridge, when it's a root bridge or a designated bridge. main character bridge behavior fr. Only relevant if STP is enabled.
valid values are between (1 * USER_HZ) and (10 * USER_HZ). the default value is (2 * USER_HZ) π
IFLA_BR_MAX_AGEβ the hello packet timeout π this is the time until another bridge in the spanning tree is assumed to be dead, after reception of its last hello message. Only relevant if STP is enabled.
valid values are between (6 * USER_HZ) and (40 * USER_HZ). the default value is (20 * USER_HZ) β
IFLA_BR_AGEING_TIMEβ configures the bridge's FDB entries aging time π it's the time a MAC address will be kept in the FDB after a packet has been received from that address. after this time has passed, entries are cleaned up. it also allows values outside the 802.1 standard specification for special cases:0β entry never ages (all permanent)1β entry disappears (no persistence)
the default value is (300 * USER_HZ) π§
IFLA_BR_STP_STATEβ turn spanning tree protocol on (IFLA_BR_STP_STATE > 0) or off (IFLA_BR_STP_STATE == 0) for this bridge.
the default value is 0 (disabled) π¦
IFLA_BR_PRIORITYβ sets this bridge's spanning tree priority, used during STP root bridge election π³οΈ
valid values are between 0 and 65535.
IFLA_BR_VLAN_FILTERINGβ turn VLAN filtering on (IFLA_BR_VLAN_FILTERING > 0) or off (IFLA_BR_VLAN_FILTERING == 0). when disabled, the bridge will not consider the VLAN tag when handling packets. lowkey it's just gonna ignore that tag entirely π
the default value is 0 (disabled).
IFLA_BR_VLAN_PROTOCOLβ sets the protocol used for VLAN filtering πΈ
valid values are 0x8100(802.1Q) or 0x88A8(802.1AD). the default value is 0x8100(802.1Q).
IFLA_BR_GROUP_FWD_MASKβ the group forwarding mask π this is the bitmask that is applied to decide whether to forward incoming frames destined to link-local addresses (of the form01:80:C2:00:00:0X).
the default value is 0, which means the bridge does not forward any link-local frames coming on this port π
ββοΈ
IFLA_BR_ROOT_IDβ the bridge root id, read only πIFLA_BR_BRIDGE_IDβ the bridge id, read only πIFLA_BR_ROOT_PORTβ the bridge root port, read only πIFLA_BR_ROOT_PATH_COSTβ the bridge root path cost, read only πIFLA_BR_TOPOLOGY_CHANGEβ the bridge topology change, read only πIFLA_BR_TOPOLOGY_CHANGE_DETECTEDβ the bridge topology change detected, read only πIFLA_BR_HELLO_TIMERβ the bridge hello timer, read only πIFLA_BR_TCN_TIMERβ the bridge tcn timer, read only πIFLA_BR_TOPOLOGY_CHANGE_TIMERβ the bridge topology change timer, read only πIFLA_BR_GC_TIMERβ the bridge gc timer, read only πIFLA_BR_GROUP_ADDRβ sets the MAC address of the multicast group this bridge uses for STP π the address must be a link-local address in standard Ethernet MAC address format. it is an address of the form01:80:C2:00:00:0X, withXin[0, 4..f].
the default value is 0.
IFLA_BR_FDB_FLUSHβ flushes bridge's fdb dynamic entries π§Ήβ¨ (spring cleaning but for MAC addresses, we love to see it)IFLA_BR_MCAST_ROUTERβ sets bridge's multicast router if IGMP snooping is enabled. valid values are:0β disabled.1β automatic (queried).2β permanently enabled.
the default value is 1 π
IFLA_BR_MCAST_SNOOPINGβ turn multicast snooping on (IFLA_BR_MCAST_SNOOPING > 0) or off (IFLA_BR_MCAST_SNOOPING == 0).
the default value is 1.
IFLA_BR_MCAST_QUERY_USE_IFADDRβ if enabled, use the bridge's own IP address as source address for IGMP queries (IFLA_BR_MCAST_QUERY_USE_IFADDR > 0) or the default of0.0.0.0(IFLA_BR_MCAST_QUERY_USE_IFADDR == 0). it's giving "be your own source address" πββοΈ
the default value is 0 (disabled).
IFLA_BR_MCAST_QUERIERβ enable (IFLA_BR_MULTICAST_QUERIER > 0) or disable (IFLA_BR_MULTICAST_QUERIER == 0) IGMP querier, ie sending of multicast queries by the bridge.
the default value is 0 (disabled) π
IFLA_BR_MCAST_HASH_ELASTICITYβ sets multicast database hash elasticity π it is the maximum chain length in the multicast hash table. this attribute is deprecated and the value is always16. (so likeβ¦ it's a museum piece, don't touch it, the value is fixed fr)IFLA_BR_MCAST_HASH_MAXβ sets maximum size of the multicast hash table π
the default value is 4096, the value must be a power of 2. β‘
IFLA_BR_MCAST_LAST_MEMBER_CNTβ the Last Member Query Count is the number of Group-Specific Queries sent before the router assumes there are no local members π the Last Member Query Count is also the number of Group- and-Source-Specific Queries sent before the router assumes there are no listeners for a particular source.
the default value is 2.
IFLA_BR_MCAST_STARTUP_QUERY_CNTβ the Startup Query Count is the number of Queries sent out on startup, separated by the Startup Query Interval π
the default value is 2.
IFLA_BR_MCAST_LAST_MEMBER_INTVLβ the Last Member Query Interval is the Max Response Time inserted into Group-Specific Queries sent in response to Leave Group messages, and is also the amount of time between Group-Specific Query messages β±οΈ
the default value is (1 * USER_HZ).
IFLA_BR_MCAST_MEMBERSHIP_INTVLβ the interval after which the bridge will leave a group, if no membership reports for this group are received π (it's the "well, guess nobody wants me here" timer)
the default value is (260 * USER_HZ).
IFLA_BR_MCAST_QUERIER_INTVLβ the interval between queries sent by other routers. if no queries are seen after this delay has passed, the bridge will start to send its own queries (as ifIFLA_BR_MCAST_QUERIER_INTVLwas enabled) π
the default value is (255 * USER_HZ).
IFLA_BR_MCAST_QUERY_INTVLβ the Query Interval is the interval between General Queries sent by the Querier π
the default value is (125 * USER_HZ). the minimum value is (1 * USER_HZ).
IFLA_BR_MCAST_QUERY_RESPONSE_INTVLβ the Max Response Time used to calculate the Max Resp Code inserted into the periodic General Queries πΈ
the default value is (10 * USER_HZ).
IFLA_BR_MCAST_STARTUP_QUERY_INTVLβ the interval between queries in the startup phase π£
the default value is (125 * USER_HZ) / 4. the minimum value is (1 * USER_HZ).
IFLA_BR_NF_CALL_IPTABLESβ enable (NF_CALL_IPTABLES > 0) or disable (NF_CALL_IPTABLES == 0) iptables hooks on the bridge π₯
the default value is 0 (disabled).
IFLA_BR_NF_CALL_IP6TABLESβ enable (NF_CALL_IP6TABLES > 0) or disable (NF_CALL_IP6TABLES == 0) ip6tables hooks on the bridge π₯
the default value is 0 (disabled).
IFLA_BR_NF_CALL_ARPTABLESβ enable (NF_CALL_ARPTABLES > 0) or disable (NF_CALL_ARPTABLES == 0) arptables hooks on the bridge π₯
the default value is 0 (disabled).
IFLA_BR_VLAN_DEFAULT_PVIDβ the VLAN ID applied to untagged and priority-tagged incoming packets π
the default value is 1. setting to the special value 0 makes all ports of this bridge not have a PVID by default, which means that they will not accept VLAN-untagged traffic. π« (so like, no tag = no entry, sorry bestie)
IFLA_BR_PADβ bridge attribute padding type for netlink message ποΈ (yes it's literally the padding, everyone gets a moment)IFLA_BR_VLAN_STATS_ENABLEDβ enable (IFLA_BR_VLAN_STATS_ENABLED == 1) or disable (IFLA_BR_VLAN_STATS_ENABLED == 0) per-VLAN stats accounting π
the default value is 0 (disabled).
IFLA_BR_MCAST_STATS_ENABLEDβ enable (IFLA_BR_MCAST_STATS_ENABLED > 0) or disable (IFLA_BR_MCAST_STATS_ENABLED == 0) multicast (IGMP/MLD) stats accounting π
the default value is 0 (disabled).
IFLA_BR_MCAST_IGMP_VERSIONβ sets the IGMP version π
the valid values are 2 and 3. the default value is 2.
IFLA_BR_MCAST_MLD_VERSIONβ sets the MLD version π
the valid values are 1 and 2. the default value is 1.
IFLA_BR_VLAN_STATS_PER_PORTβ enable (IFLA_BR_VLAN_STATS_PER_PORT == 1) or disable (IFLA_BR_VLAN_STATS_PER_PORT == 0) per-VLAN per-port stats accounting ππ can be changed only when there are no port VLANs configured. β οΈ (so lock that in first, then flip this switch, iykyk)
the default value is 0 (disabled).
IFLA_BR_MULTI_BOOLOPTβ themulti_booloptis used to control new boolean options to avoid adding new netlink attributes ποΈ you can look atenum br_boolopt_idfor those options.IFLA_BR_MCAST_QUERIER_STATEβ bridge mcast querier states, read only πIFLA_BR_FDB_N_LEARNEDβ the number of dynamically learned FDB entries for the current bridge, read only πIFLA_BR_FDB_MAX_LEARNEDβ set the number of max dynamically learned FDB entries for the current bridge π―
π SEE ALSO π¦
- Kernel file
./tools/include/uapi/linux/if_link.hstructrtnl_link_stats64(9)π - Bridge mode enum definition(9) π
- Bridge port enum definition(9) π
ok that's the whole page bestie, you ate that π«Άπ
β¨ β this little icon was brought to you by source ./tools/include/uapi/linux, dated October 2026, and the page is Bridge enum definition(9). mwah ππ
π¦ 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