iproute2/include/bridge.h
Fabian Pfitzner da6fbcf63c bridge: move mcast querier dumping code into a shared function
Put mcast querier dumping code into a shared function. This function
will be called from the bridge utility in a later patch.

Adapt the code such that the vtb parameter is used
instead of tb[IFLA_BR_MCAST_QUERIER_STATE].

Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
Signed-off-by: David Ahern <dsahern@kernel.org>
2025-07-02 14:35:30 +00:00

15 lines
426 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __BRIDGE_H__
#define __BRIDGE_H__ 1
#include <linux/if_bridge.h>
#include <linux/rtnetlink.h>
void bridge_print_vlan_flags(__u16 flags);
void bridge_print_vlan_stats_only(const struct bridge_vlan_xstats *vstats);
void bridge_print_vlan_stats(const struct bridge_vlan_xstats *vstats);
void bridge_print_mcast_querier_state(const struct rtattr *vtb);
#endif /* __BRIDGE_H__ */