mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 00:34:03 -05:00
tests: Skip radius_acct_ipaddr if kernel does not support ProxyARP
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8f3ea3175f
commit
e1195efd1e
@ -307,7 +307,12 @@ def _test_radius_acct_ipaddr(dev, apdev):
|
|||||||
'proxy_arp': '1',
|
'proxy_arp': '1',
|
||||||
'ap_isolate': '1',
|
'ap_isolate': '1',
|
||||||
'bridge': 'ap-br0' }
|
'bridge': 'ap-br0' }
|
||||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
hapd = hostapd.add_ap(apdev[0]['ifname'], params, no_enable=True)
|
||||||
|
try:
|
||||||
|
hapd.enable()
|
||||||
|
except:
|
||||||
|
# For now, do not report failures due to missing kernel support
|
||||||
|
raise HwsimSkip("Could not start hostapd - assume proxyarp not supported in kernel version")
|
||||||
bssid = apdev[0]['bssid']
|
bssid = apdev[0]['bssid']
|
||||||
|
|
||||||
subprocess.call(['brctl', 'setfd', 'ap-br0', '0'])
|
subprocess.call(['brctl', 'setfd', 'ap-br0', '0'])
|
||||||
|
Loading…
Reference in New Issue
Block a user