]> git.ipfire.org Git - thirdparty/hostap.git/commit
l2_packet: Improve bridge workaround RX processing
authorJouni Malinen <j@w1.fi>
Wed, 6 Jan 2016 22:24:10 +0000 (00:24 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 6 Jan 2016 22:24:10 +0000 (00:24 +0200)
commit4a539abdbdb425d0527eff396a4d4bf3951a6b51
treed6a35dc1445a62dd53ee781cb69983928d9df051
parent2626666ad78576ac0aedbd5686cdcef1f967a63f
l2_packet: Improve bridge workaround RX processing

It was possible for the packet socket on the bridge interface to receive
own transmitted frames between the bridge and non-bridge sockets
receiving the same incoming frame from a foreign host. This resulted in
the hash checksum validation step failing to notice a duplicate RX due
to the own frame updating the store hash value.

The own frame did get dropping in RX EAPOL processing, but that was too
late to address the issue with duplicate RX. Fix this by dropping own
frames already in l2_packet layer before checking and updating the last
RX hash value.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/l2_packet/l2_packet_linux.c