diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-12-12 17:16:11 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-03-31 01:19:55 +0100 |
commit | 44c0f40d92e005da6dceef674931c71c13563a78 (patch) | |
tree | a9ad6cfb8710e228de5acbe1f1f00d662ac6b0a3 | |
parent | 80bf9d74884693cf74914edafe2a0b5e5ed45ada (diff) | |
download | netifd-44c0f40d92e005da6dceef674931c71c13563a78.tar.gz |
system-linux: reorder sysctl functions
Move system_set_sendredirects up to the other non-bridge-related sysctl
functions.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r-- | system-linux.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system-linux.c b/system-linux.c index c57ecab..0a6b0d2 100644 --- a/system-linux.c +++ b/system-linux.c @@ -359,6 +359,11 @@ static void system_set_dadtransmits(struct device *dev, const char *val) system_set_dev_sysctl("/proc/sys/net/ipv6/conf/%s/dad_transmits", dev->ifname, val); } +static void system_set_sendredirects(struct device *dev, const char *val) +{ + system_set_dev_sysctl("/proc/sys/net/ipv4/conf/%s/send_redirects", dev->ifname, val); +} + static void system_bridge_set_multicast_to_unicast(struct device *dev, const char *val) { system_set_dev_sysctl("/sys/class/net/%s/brport/multicast_to_unicast", dev->ifname, val); @@ -470,11 +475,6 @@ static void system_bridge_set_unicast_flood(struct device *dev, const char *val) system_set_dev_sysctl("/sys/class/net/%s/brport/unicast_flood", dev->ifname, val); } -static void system_set_sendredirects(struct device *dev, const char *val) -{ - system_set_dev_sysctl("/proc/sys/net/ipv4/conf/%s/send_redirects", dev->ifname, val); -} - static void system_bridge_set_vlan_filtering(struct device *dev, const char *val) { system_set_dev_sysctl("/sys/devices/virtual/net/%s/bridge/vlan_filtering", dev->ifname, val); |