]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge: dump mcast querier per vlan
authorFabian Pfitzner <f.pfitzner@pengutronix.de>
Wed, 25 Jun 2025 08:39:14 +0000 (10:39 +0200)
committerDavid Ahern <dsahern@kernel.org>
Wed, 2 Jul 2025 14:35:57 +0000 (14:35 +0000)
commitbaeeb9a8e1849975318e0abf90db5a3e255cad84
treea0db779190a1780dc9cce6a8ad33365d6df1692b
parentda6fbcf63c1347f88ae91ca9f42aa2a6d4fe851a
bridge: dump mcast querier per vlan

Dump the multicast querier state per vlan.
This commit is almost identical to [1].

The querier state can be seen with:

bridge -d vlan global

The options for vlan filtering and vlan mcast snooping have to be enabled
in order to see the output:

ip link set [dev] type bridge mcast_vlan_snooping 1 vlan_filtering 1

The querier state shows the following information for IPv4 and IPv6
respectively:

1) The ip address of the current querier in the network. This could be
   ourselves or an external querier.
2) The port on which the querier was seen
3) Querier timeout in seconds

[1] https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=16aa4494d7fc6543e5e92beb2ce01648b79f8fa2

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>
bridge/vlan.c