]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[lotest] Discard packets arriving on the incorrect network device
authorMichael Brown <mcb30@ipxe.org>
Tue, 29 Jul 2014 14:15:28 +0000 (15:15 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 29 Jul 2014 14:20:49 +0000 (15:20 +0100)
commit721a4920207634c688608007ef0d63c15a696c0d
tree0771171534dc6b41e6e46984fb709555b46a3f79
parentec30c856a80270578a90528ecffdaf4eaf148503
[lotest] Discard packets arriving on the incorrect network device

Commit 24bbaf6 ("[lotest] Allow loopback testing on shared networks")
introduced a regression in which loopback testing packets would be
accepted from any network device.  This produces unexpected results,
such as VLAN loopback testing succeeding even when incorrectly using
the underlying trunk device as either transmitter or receiver.

Fix by discarding any loopback testing packets which arrive on a
network device other than the current loopback testing receiver.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/usr/lotest.c