mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
tests: Set bridge ageing in ap_wpa2_bridge_fdb test
Set the bridge ageing to 1 sec to make the bridge clear unused addresses after this interval. Otherwise the test depends on the local configuration of brctl. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
This commit is contained in:
parent
f3b7761ab7
commit
f487e306b9
@ -357,6 +357,7 @@ def test_ap_wpa2_bridge_fdb(dev, apdev):
|
|||||||
cmd = subprocess.Popen(['brctl', 'showmacs', 'ap-br0'],
|
cmd = subprocess.Popen(['brctl', 'showmacs', 'ap-br0'],
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
macs1 = cmd.stdout.read()
|
macs1 = cmd.stdout.read()
|
||||||
|
cmd = subprocess.call(['brctl', 'setageing', 'ap-br0', '1'])
|
||||||
dev[0].request("DISCONNECT")
|
dev[0].request("DISCONNECT")
|
||||||
dev[1].request("DISCONNECT")
|
dev[1].request("DISCONNECT")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user