summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-09-01 19:00:41 +0200
committerFelix Fietkau <nbd@nbd.name>2021-09-01 19:03:30 +0200
commit300b1220fab38600f102bb8cfcc59a29ce41b095 (patch)
tree103ae559ccdf4f34065fb761bcd25057b3d5ddb0 /scripts
parentf8ff6d82028367620893872636d455702a1c1ea1 (diff)
downloadnetifd-300b1220fab38600f102bb8cfcc59a29ce41b095.tar.gz
wireless: improve reliability of proxyarp support
instead of relying on hostapd to manipulate bridge attributes (which can race against netifd adding/removing of member ports), set the proxyarp related attributes in netifd directly when bringing up the member port Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/netifd-wireless.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh
index 5527791..80fbf75 100644
--- a/scripts/netifd-wireless.sh
+++ b/scripts/netifd-wireless.sh
@@ -294,10 +294,10 @@ _wireless_set_brsnoop_isolation() {
local multicast_to_unicast="$1"
local isolate
- json_get_var isolate isolate
+ json_get_vars isolate proxy_arp
[ ${isolate:-0} -gt 0 -o -z "$network_bridge" ] && return
- [ ${multicast_to_unicast:-1} -gt 0 ] && json_add_boolean isolate 1
+ [ ${multicast_to_unicast:-1} -gt 0 -o ${proxy_arp:-0} -gt 0 ] && json_add_boolean isolate 1
}
for_each_interface() {