aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-12-29 14:52:56 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-29 14:52:56 (GMT)
commit90eb910ef540a1418b95a391534899344ebd6bd3 (patch)
tree629f446c69d57ace2d8e88fc460b510e878d3fec /tests
parent948ba8c29459f542cf20f1802c2a220b5731454e (diff)
downloadhostap-90eb910ef540a1418b95a391534899344ebd6bd3.zip
hostap-90eb910ef540a1418b95a391534899344ebd6bd3.tar.gz
hostap-90eb910ef540a1418b95a391534899344ebd6bd3.tar.bz2
tests: MKA MIB information
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_macsec.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/hwsim/test_macsec.py b/tests/hwsim/test_macsec.py
index 67638f0..1b36e9f 100644
--- a/tests/hwsim/test_macsec.py
+++ b/tests/hwsim/test_macsec.py
@@ -283,6 +283,28 @@ def run_macsec_psk(dev, apdev, params, prefix, integ_only=False, port0=None,
stderr=open('/dev/null', 'w'))
time.sleep(0.5)
+ mi0 = wpas0.get_status_field("mi")
+ mi1 = wpas1.get_status_field("mi")
+ sci0 = wpas0.get_status_field("actor_sci")
+ sci1 = wpas1.get_status_field("actor_sci")
+ logger.info("wpas0 MIB:\n" + wpas0.request("MIB"))
+ logger.info("wpas1 MIB:\n" + wpas1.request("MIB"))
+ mib0 = wpas0.get_mib()
+ mib1 = wpas1.get_mib()
+
+ if mib0['ieee8021XKayMkaPeerListMI'] != mi1:
+ raise Exception("Unexpected ieee8021XKayMkaPeerListMI value (0)")
+ if mib0['ieee8021XKayMkaPeerListType'] != "1":
+ raise Exception("Unexpected ieee8021XKayMkaPeerListType value (0)")
+ if mib0['ieee8021XKayMkaPeerListSCI'] != sci1:
+ raise Exception("Unexpected ieee8021XKayMkaPeerListSCI value (0)")
+ if mib1['ieee8021XKayMkaPeerListMI'] != mi0:
+ raise Exception("Unexpected ieee8021XKayMkaPeerListMI value (1)")
+ if mib1['ieee8021XKayMkaPeerListType'] != "1":
+ raise Exception("Unexpected ieee8021XKayMkaPeerListType value (1)")
+ if mib1['ieee8021XKayMkaPeerListSCI'] != sci0:
+ raise Exception("Unexpected ieee8021XKayMkaPeerListSCI value (1)")
+
logger.info("wpas0 STATUS:\n" + wpas0.request("STATUS"))
logger.info("wpas1 STATUS:\n" + wpas1.request("STATUS"))
log_ip_macsec()