summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-04 19:48:03 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-04 20:10:56 +0200
commitd1251e1baad4d32c04eeda56738222e7d1d98853 (patch)
tree9a6c44b3c51d591806c2273025f0296b65083ed5 /system-linux.c
parente9eff346f8a1bc2195ab7bc78a053a2dc10181e1 (diff)
system-linux: adjust bridge isolate mode for upstream attribute naming
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/system-linux.c b/system-linux.c
index c7bdf5b..21bed29 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -347,9 +347,9 @@ static void system_bridge_set_hairpin_mode(struct device *dev, const char *val)
system_set_dev_sysctl("/sys/class/net/%s/brport/hairpin_mode", dev->ifname, val);
}
-static void system_bridge_set_isolate_mode(struct device *dev, const char *val)
+static void system_bridge_set_isolated(struct device *dev, const char *val)
{
- system_set_dev_sysctl("/sys/class/net/%s/brport/isolate_mode", dev->ifname, val);
+ system_set_dev_sysctl("/sys/class/net/%s/brport/isolated", dev->ifname, val);
}
static void system_bridge_set_multicast_router(struct device *dev, const char *val, bool bridge)
@@ -756,7 +756,7 @@ int system_bridge_addif(struct device *bridge, struct device *dev)
if (dev->settings.flags & DEV_OPT_ISOLATE &&
dev->settings.isolate)
- system_bridge_set_isolate_mode(dev, "1");
+ system_bridge_set_isolated(dev, "1");
return ret;
}