mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Make MACsec test cases clear monitor socket more thoroughly
The wpas (dev5) control interface socket did not always get cleared in the MACsec test cases and this could result in issues with following test cases if the dev5 message queue hit the maximum limit. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
611308365e
commit
fe5400dda2
@ -325,6 +325,7 @@ def cleanup_macsec_br(count):
|
|||||||
wpas.interface_remove("veth%d" % i)
|
wpas.interface_remove("veth%d" % i)
|
||||||
subprocess.call(["ip", "link", "del", "veth%d" % i],
|
subprocess.call(["ip", "link", "del", "veth%d" % i],
|
||||||
stderr=open('/dev/null', 'w'))
|
stderr=open('/dev/null', 'w'))
|
||||||
|
del wpas
|
||||||
subprocess.call(["ip", "link", "set", "brveth", "down"])
|
subprocess.call(["ip", "link", "set", "brveth", "down"])
|
||||||
subprocess.call(["brctl", "delbr", "brveth"])
|
subprocess.call(["brctl", "delbr", "brveth"])
|
||||||
|
|
||||||
@ -427,6 +428,11 @@ def run_macsec_psk_br(dev, apdev, count, mka_priority):
|
|||||||
else:
|
else:
|
||||||
logger.info("Data traffic test failed - ignore for now for >= 3 device cases")
|
logger.info("Data traffic test failed - ignore for now for >= 3 device cases")
|
||||||
|
|
||||||
|
for i in range(count):
|
||||||
|
wpa[i].dump_monitor()
|
||||||
|
for i in range(count):
|
||||||
|
del wpa[0]
|
||||||
|
|
||||||
def test_macsec_psk_ns(dev, apdev, params):
|
def test_macsec_psk_ns(dev, apdev, params):
|
||||||
"""MACsec PSK (netns)"""
|
"""MACsec PSK (netns)"""
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user