diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-09-01 19:00:41 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-09-01 19:03:30 +0200 |
commit | 300b1220fab38600f102bb8cfcc59a29ce41b095 (patch) | |
tree | 103ae559ccdf4f34065fb761bcd25057b3d5ddb0 /scripts | |
parent | f8ff6d82028367620893872636d455702a1c1ea1 (diff) | |
download | netifd-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.sh | 4 |
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() { |