]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge: dump mcast querier state
authorFabian Pfitzner <f.pfitzner@pengutronix.de>
Wed, 11 Dec 2024 07:22:24 +0000 (08:22 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 12 Dec 2024 23:21:28 +0000 (15:21 -0800)
commit16aa4494d7fc6543e5e92beb2ce01648b79f8fa2
tree7ba181d7270c3d204bdba1a118a683a7eb83c071
parent413cf4f03a9b6a219c94b86f41d67992b0a14b82
bridge: dump mcast querier state

Kernel support for dumping the multicast querier state was added in this
commit [1]. As some people might be interested to get this information
from userspace, this commit implements the necessary changes to show it
via

ip -d link show [dev]

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/linux/kernel/git/torvalds/linux.git/commit/?id=c7fa1d9b1fb179375e889ff076a1566ecc997bfc

Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_bridge.c