From f77051495061ce7b32ffad0efa6f6093b9a75eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20L=C3=BCssing?= Date: Mon, 6 Jan 2025 06:53:44 +0100 Subject: [PATCH] gluon-mesh-batman-adv-brmldproxy: enable proxied querier with mc routers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The whole MLD report proxying only works if there is an MLD querier somewhere on the mesh side that actually polls for MLD reports. So far in our tests we configured gateway nodes for the MLD querier job. To ease the MLD querier setup, to avoid needing to enable an MLD querier manually on some gateway(s) this makes use of the new adjustments in brmldproxy that added a bridge interface on top of the proxy dummy interface: If batman-adv detected a multicast router behind one of its local client bridge ports (MRD advertisements are sufficient and recommended) then enable a potential MLD querier candidate, eligible for MLD querier election, automatically on this node towards the mesh side. Signed-off-by: Linus Lüssing --- .../files/usr/sbin/gluon-brmldproxy-router-check | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/gluon-mesh-batman-adv-brmldproxy/files/usr/sbin/gluon-brmldproxy-router-check b/package/gluon-mesh-batman-adv-brmldproxy/files/usr/sbin/gluon-brmldproxy-router-check index 7fb8495c5b..0db0555035 100755 --- a/package/gluon-mesh-batman-adv-brmldproxy/files/usr/sbin/gluon-brmldproxy-router-check +++ b/package/gluon-mesh-batman-adv-brmldproxy/files/usr/sbin/gluon-brmldproxy-router-check @@ -36,6 +36,8 @@ update_router_recv() { if [ "$(batctl mj | jsonfilter -e "@.mcast_flags.want_no_rtr_ipv6")" = "false" ]; then update_router_recv add + echo 1 > /sys/class/net/brmldpb0/bridge/multicast_querier else update_router_recv del + echo 0 > /sys/class/net/brmldpb0/bridge/multicast_querier fi