diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-05-26 13:50:43 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-06-02 09:33:12 +0200 |
commit | e309b57619b9c073b9b8857858d9456183f27d7d (patch) | |
tree | dcefa27f8bd97c4563876ebe94288ee1b542759f /package/network/services/hostapd | |
parent | 190d4b6184ef3a5212a6d6fb9d3d8847035b7d0a (diff) | |
download | upstream-e309b57619b9c073b9b8857858d9456183f27d7d.tar.gz upstream-e309b57619b9c073b9b8857858d9456183f27d7d.tar.bz2 upstream-e309b57619b9c073b9b8857858d9456183f27d7d.zip |
hostapd: add support for configuring proxy ARP
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services/hostapd')
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index 13699bf673..8d12683a39 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -341,7 +341,7 @@ hostapd_common_add_bss_config() { config_add_array airtime_sta_weight config_add_int airtime_bss_weight airtime_bss_limit - config_add_boolean multicast_to_unicast per_sta_vif + config_add_boolean multicast_to_unicast proxy_arp per_sta_vif config_add_array hostapd_bss_options @@ -518,7 +518,7 @@ hostapd_set_bss_options() { bss_load_update_period chan_util_avg_period sae_require_mfp \ multi_ap multi_ap_backhaul_ssid multi_ap_backhaul_key skip_inactivity_poll \ airtime_bss_weight airtime_bss_limit airtime_sta_weight \ - multicast_to_unicast per_sta_vif + multicast_to_unicast proxy_arp per_sta_vif set_default isolate 0 set_default maxassoc 0 @@ -997,6 +997,10 @@ hostapd_set_bss_options() { if [ "$multicast_to_unicast" -gt 0 ]; then append bss_conf "multicast_to_unicast=$multicast_to_unicast" "$N" fi + set_default proxy_arp 0 + if [ "$proxy_arp" -gt 0 ]; then + append bss_conf "proxy_arp=$proxy_arp" "$N" + fi set_default per_sta_vif 0 if [ "$per_sta_vif" -gt 0 ]; then |