bridge: enable multicast querier functionality by default
authorFelix Fietkau <nbd@openwrt.org>
Thu, 24 Jul 2014 08:54:14 +0000 (10:54 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 24 Jul 2014 08:54:14 +0000 (10:54 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
system-linux.c

index 5c960b40119854e42e7d5531a6929e7ca6736626..ea3a138d8543001c5dcb901fff38080134d3d235 100644 (file)
@@ -714,6 +714,9 @@ int system_bridge_addbr(struct device *bridge, struct bridge_config *cfg)
        system_set_dev_sysctl("/sys/devices/virtual/net/%s/bridge/multicast_snooping",
                bridge->ifname, cfg->igmp_snoop ? "1" : "0");
 
+       system_set_dev_sysctl("/sys/devices/virtual/net/%s/bridge/multicast_querier",
+               bridge->ifname, cfg->igmp_snoop ? "1" : "0");
+
        args[0] = BRCTL_SET_BRIDGE_PRIORITY;
        args[1] = cfg->priority;
        system_bridge_if(bridge->ifname, NULL, SIOCDEVPRIVATE, &args);