]> git.ipfire.org Git - thirdparty/hostap.git/commit
mka: Accept last two used MNs in Peers List of a received MKPDU
authorJouni Malinen <jouni@codeaurora.org>
Mon, 29 Jul 2019 14:05:40 +0000 (17:05 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 29 Jul 2019 14:05:40 +0000 (17:05 +0300)
commit1e5ea68d1f33226aabba7c788808de2db212b79c
tree63dede289b2781a9463b7d358eb004670052d06a
parent01368640327283999824cfb423c8e95d48233fd9
mka: Accept last two used MNs in Peers List of a received MKPDU

Previously, check for local MI,MN in a peer's Peers List accepted only
the cases that include the last used MN from an MKPDU sent by the local
device. This was problematic since it was possible to synchronize MKPDU
transmission between two devices in a way that made them always miss the
last MKPDU from the other device before filling in the Peers List.

Relax this matching requirement of "acceptably recent MN" to mean both
the last used MN and the one used just before it (i.e., copied from
either of the last two MKPDUs sent by the local device) are accepted.

While this might help in some real world scenarios in making the
protocol converge more quickly, the main help from this is to fix
consistent hwsim test cases failures in macsec_psk_ns when using UML
with time travel option which happened to practically guarantee the
inconvenient timing of MKPDU transmission/reception that ended up with
the MKPDU processing to see MI,MN with MN being the last used MN minus
1.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/pae/ieee802_1x_kay.c