aboutsummaryrefslogtreecommitdiff
path: root/src/usr/lotest.c
AgeCommit message (Collapse)AuthorFilesLines
2021-01-26[cmdline] Expose "iflinkwait" as a commandMichael Brown1-2/+2
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2016-05-23[lotest] Add option to use broadcast packets for loopback testingMichael Brown1-4/+10
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-03-02[legal] Relicense files under GPL2_OR_LATER_OR_UBDLMichael Brown1-1/+5
Relicense files for which I am the sole author (as identified by util/relicense.pl). Signed-off-by: Michael Brown <mcb30@ipxe.org>
2014-07-29[lotest] Discard packets arriving on the incorrect network deviceMichael Brown1-6/+6
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>
2014-03-13[lotest] Allow loopback testing on shared networksMichael Brown1-36/+53
Allow for extraneous packets to be received during loopback testing, and so permit loopback tests to be performed when ports are connected to a switch (rather than requiring ports to be directly connected with a loopback cable). Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-11-05[ifmgmt] Rewrite iflinkwait() to use monojob_wait()Michael Brown1-4/+2
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-07-14[lotest] Include sequence number within loopback test packetsMichael Brown1-8/+18
Include a sequence number as the first four bytes of the loopback test packet payload. When a content mismatch occurs, this gives some information about the source of the mismatched packet. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-07-20[legal] Update FSF mailing address in GPL licence textsMichael Brown1-1/+2
Suggested-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-12-08[lotest] Accept non-loopback packets during testMichael Brown1-58/+86
It can sometimes be awkward to prevent additional packets from being received during a loopback test. Allow such additional packets to be present without terminating the test. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-07-15[netdevice] Allow link layer to report broadcast/multicast packets via pull()Michael Brown1-2/+6
Allow the link layer to directly report whether or not a packet is multicast or broadcast at the time of calling pull(), rather than relying on heuristics to determine this at a later stage. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2011-03-09[console] Move include/console.h to include/ipxe/console.hMichael Brown1-1/+1
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-11-20[lotest] Fix endianness in status messageMichael Brown1-1/+1
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-11-20[lotest] Use network device receive queue freezingMichael Brown1-2/+7
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-10-07[netdevice] Pass both link-layer addresses in net_tx() and net_rx()Michael Brown1-2/+4
FCoE requires the use of fabric-provided MAC addresses, which breaks the assumption that the net device's MAC address is implicitly the source address for net_tx() and the (unicast) destination address for net_rx(). Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-09-21[lotest] Add loopback testing commandsMichael Brown1-0/+210
Signed-off-by: Michael Brown <mcb30@ipxe.org>