Skip to content

Commit

Permalink
gluon-mesh-batman-adv-brmldproxy: enable proxied querier with mc routers
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
T-X committed Jan 6, 2025
1 parent f055b8e commit 19da4c6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ update_router_recv() {

if batctl mcast_flags | grep -q "^Multicast flags (own flags: \[.*R6.*\]"; 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

0 comments on commit 19da4c6

Please sign in to comment.