mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
tests: Untagged VLAN ID with EGRESS_VLANID RADIUS attribute
Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
This commit is contained in:
parent
571e690775
commit
57af507ea7
@ -41,6 +41,9 @@ radius_accept_attr=64:d:13
|
|||||||
radius_accept_attr=65:d:6
|
radius_accept_attr=65:d:6
|
||||||
radius_accept_attr=81:s:2
|
radius_accept_attr=81:s:2
|
||||||
|
|
||||||
|
"vlan1b" PAX 0123456789abcdef0123456789abcdef
|
||||||
|
radius_accept_attr=56:x:32000001
|
||||||
|
|
||||||
"vlan1tagged" PAX 0123456789abcdef0123456789abcdef
|
"vlan1tagged" PAX 0123456789abcdef0123456789abcdef
|
||||||
radius_accept_attr=56:x:31000001
|
radius_accept_attr=56:x:31000001
|
||||||
|
|
||||||
|
@ -89,6 +89,19 @@ def test_ap_vlan_wpa2_radius(dev, apdev):
|
|||||||
hwsim_utils.test_connectivity_iface(dev[1], hapd, "brvlan2")
|
hwsim_utils.test_connectivity_iface(dev[1], hapd, "brvlan2")
|
||||||
hwsim_utils.test_connectivity(dev[2], hapd)
|
hwsim_utils.test_connectivity(dev[2], hapd)
|
||||||
|
|
||||||
|
def test_ap_vlan_wpa2_radius_2(dev, apdev):
|
||||||
|
"""AP VLAN with WPA2-Enterprise and RADIUS EGRESS_VLANID attributes"""
|
||||||
|
params = hostapd.wpa2_eap_params(ssid="test-vlan")
|
||||||
|
params['dynamic_vlan'] = "1";
|
||||||
|
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
|
|
||||||
|
dev[0].connect("test-vlan", key_mgmt="WPA-EAP", eap="PAX",
|
||||||
|
identity="vlan1b",
|
||||||
|
password_hex="0123456789abcdef0123456789abcdef",
|
||||||
|
scan_freq="2412")
|
||||||
|
|
||||||
|
hwsim_utils.test_connectivity_iface(dev[0], hapd, "brvlan1")
|
||||||
|
|
||||||
def test_ap_vlan_wpa2_radius_id_change(dev, apdev):
|
def test_ap_vlan_wpa2_radius_id_change(dev, apdev):
|
||||||
"""AP VLAN with WPA2-Enterprise and RADIUS attributes changing VLANID"""
|
"""AP VLAN with WPA2-Enterprise and RADIUS attributes changing VLANID"""
|
||||||
as_params = { "ssid": "as",
|
as_params = { "ssid": "as",
|
||||||
|
Loading…
Reference in New Issue
Block a user