mirror of
https://github.com/Ansuel/openwrt.git
synced 2025-12-16 23:12:09 +00:00
wifi-scripts: add na_mcast_to_ucast option
As this is generally only useful with "proxy_arp" enabled, we default na_mcast_to_ucast to true if "proxy_arp" is already enabled. Signed-off-by: Rany Hany <rany_hany@riseup.net> Link: https://github.com/openwrt/openwrt/pull/20596 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
f84371ddb5
commit
bcdb29f78f
@ -727,6 +727,10 @@
|
|||||||
"type": "alias",
|
"type": "alias",
|
||||||
"default": "multicast_to_unicast"
|
"default": "multicast_to_unicast"
|
||||||
},
|
},
|
||||||
|
"na_mcast_to_ucast": {
|
||||||
|
"description": "IPv6 Neighbor Advertisement multicast-to-unicast conversion",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"nas_identifier": {
|
"nas_identifier": {
|
||||||
"description": "NAS-Identifier string for RADIUS messages",
|
"description": "NAS-Identifier string for RADIUS messages",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|||||||
@ -43,6 +43,9 @@ function iface_setup(config) {
|
|||||||
if (config.multicast_to_unicast || config.proxy_arp)
|
if (config.multicast_to_unicast || config.proxy_arp)
|
||||||
config.ap_isolate = 1;
|
config.ap_isolate = 1;
|
||||||
|
|
||||||
|
if (config.proxy_arp)
|
||||||
|
set_default(config, 'na_mcast_to_ucast', true);
|
||||||
|
|
||||||
append('bssid', config.macaddr);
|
append('bssid', config.macaddr);
|
||||||
config.ssid2 = config.ssid;
|
config.ssid2 = config.ssid;
|
||||||
config.wmm_enabled = 1;
|
config.wmm_enabled = 1;
|
||||||
@ -56,7 +59,7 @@ function iface_setup(config) {
|
|||||||
'wds_sta', 'wds_bridge', 'snoop_iface', 'vendor_elements', 'nas_identifier', 'radius_acct_interim_interval',
|
'wds_sta', 'wds_bridge', 'snoop_iface', 'vendor_elements', 'nas_identifier', 'radius_acct_interim_interval',
|
||||||
'ocv', 'multicast_to_unicast', 'preamble', 'proxy_arp', 'per_sta_vif', 'mbo',
|
'ocv', 'multicast_to_unicast', 'preamble', 'proxy_arp', 'per_sta_vif', 'mbo',
|
||||||
'bss_transition', 'wnm_sleep_mode', 'wnm_sleep_mode_no_keys', 'qos_map_set', 'max_listen_int',
|
'bss_transition', 'wnm_sleep_mode', 'wnm_sleep_mode_no_keys', 'qos_map_set', 'max_listen_int',
|
||||||
'dtim_period', 'wmm_enabled', 'start_disabled',
|
'dtim_period', 'wmm_enabled', 'start_disabled', 'na_mcast_to_ucast',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -383,7 +383,7 @@ hostapd_common_add_bss_config() {
|
|||||||
config_add_array airtime_sta_weight
|
config_add_array airtime_sta_weight
|
||||||
config_add_int airtime_bss_weight airtime_bss_limit
|
config_add_int airtime_bss_weight airtime_bss_limit
|
||||||
|
|
||||||
config_add_boolean multicast_to_unicast multicast_to_unicast_all proxy_arp per_sta_vif
|
config_add_boolean multicast_to_unicast multicast_to_unicast_all proxy_arp per_sta_vif na_mcast_to_ucast
|
||||||
|
|
||||||
config_add_array hostapd_bss_options
|
config_add_array hostapd_bss_options
|
||||||
config_add_boolean default_disabled
|
config_add_boolean default_disabled
|
||||||
@ -552,7 +552,7 @@ hostapd_set_bss_options() {
|
|||||||
bss_load_update_period chan_util_avg_period sae_require_mfp sae_pwe \
|
bss_load_update_period chan_util_avg_period sae_require_mfp sae_pwe \
|
||||||
multi_ap multi_ap_backhaul_ssid multi_ap_backhaul_key skip_inactivity_poll \
|
multi_ap multi_ap_backhaul_ssid multi_ap_backhaul_key skip_inactivity_poll \
|
||||||
ppsk airtime_bss_weight airtime_bss_limit airtime_sta_weight \
|
ppsk airtime_bss_weight airtime_bss_limit airtime_sta_weight \
|
||||||
multicast_to_unicast_all proxy_arp per_sta_vif \
|
multicast_to_unicast_all proxy_arp per_sta_vif na_mcast_to_ucast \
|
||||||
eap_server eap_user_file ca_cert server_cert private_key private_key_passwd server_id radius_server_clients radius_server_auth_port \
|
eap_server eap_user_file ca_cert server_cert private_key private_key_passwd server_id radius_server_clients radius_server_auth_port \
|
||||||
vendor_elements fils ocv apup rsn_override
|
vendor_elements fils ocv apup rsn_override
|
||||||
|
|
||||||
@ -1159,6 +1159,10 @@ hostapd_set_bss_options() {
|
|||||||
set_default proxy_arp 0
|
set_default proxy_arp 0
|
||||||
if [ "$proxy_arp" -gt 0 ]; then
|
if [ "$proxy_arp" -gt 0 ]; then
|
||||||
append bss_conf "proxy_arp=$proxy_arp" "$N"
|
append bss_conf "proxy_arp=$proxy_arp" "$N"
|
||||||
|
set_default na_mcast_to_ucast 1
|
||||||
|
fi
|
||||||
|
if [ "$na_mcast_to_ucast" -gt 0 ]; then
|
||||||
|
append bss_conf "na_mcast_to_ucast=$na_mcast_to_ucast" "$N"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set_default per_sta_vif 0
|
set_default per_sta_vif 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user