]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[lacp] Ignore (and do not echo) trailing padding on received packets 158/head
authorMichael Brown <mcb30@ipxe.org>
Wed, 14 Oct 2020 13:05:03 +0000 (14:05 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 14 Oct 2020 13:18:49 +0000 (14:18 +0100)
commit388d657080d5088ab7832fcb0ec71a9a50c3a59f
treeb8485c92a107952fb0c1953cc6a034eb844a2607
parent3d43789914b99b838ddd75c1c656e674a6807fb7
[lacp] Ignore (and do not echo) trailing padding on received packets

The LACP responder reuses the received I/O buffer to construct the
response LACP (or marker) packet.  Any received padding will therefore
be unintentionally included within the response.

Truncate the received I/O buffer to the expected length (which is
already defined in a way to allow for future protocol expansion)
before reusing it to construct the response.

Reported-by: Tore Anderson <tore@fud.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/eth_slow.c