diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-04-23 16:04:36 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-04-23 16:05:14 +0200 |
commit | 0f0fa4f1c8cb4f793c3dddd1edd1420483e9e325 (patch) | |
tree | 484429bf1921ed106c634ed22b2f2ab28eeadc71 /system-linux.c | |
parent | 2008ae9a80fb82b0018fd510043c291b58e7cc46 (diff) | |
download | netifd-0f0fa4f1c8cb4f793c3dddd1edd1420483e9e325.tar.gz |
set default bridge priority to 0x7FFF
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/system-linux.c b/system-linux.c index 604c206..9d2e92f 100644 --- a/system-linux.c +++ b/system-linux.c @@ -581,11 +581,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"); - if (cfg->flags & BRIDGE_OPT_PRIORITY) { - args[0] = BRCTL_SET_BRIDGE_PRIORITY; - args[1] = cfg->priority; - system_bridge_if(bridge->ifname, NULL, SIOCDEVPRIVATE, &args); - } + args[0] = BRCTL_SET_BRIDGE_PRIORITY; + args[1] = cfg->priority; + system_bridge_if(bridge->ifname, NULL, SIOCDEVPRIVATE, &args); if (cfg->flags & BRIDGE_OPT_AGEING_TIME) { args[0] = BRCTL_SET_AGEING_TIME; |