diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-24 10:54:14 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-24 10:54:14 +0200 |
commit | 81b14db5ca47ae44efc5ccb982f16597873ab4ba (patch) | |
tree | 07490bf51fc3291b5d6176aeab8ebfd826893ca2 /system-linux.c | |
parent | 7c5d5bb952cff9fe57d0f4805cc2286318868e02 (diff) |
bridge: enable multicast querier functionality by default
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system-linux.c b/system-linux.c index 5c960b4..ea3a138 100644 --- a/system-linux.c +++ b/system-linux.c @@ -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); |