mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 12:30:20 +03:00
[netdevice] Provide a test mechanism for discarding packets at random
Setting NETDEV_DISCARD_RATE to a non-zero value will cause one in every NETDEV_DISCARD_RATE packets to be discarded at random on both the transmit and receive datapaths, allowing the robustness of upper-layer network protocols to be tested even in simulation environments that provide wholly reliable packet transmission. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -134,6 +134,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
*
|
||||
*/
|
||||
|
||||
#define NETDEV_DISCARD_RATE 0 /* Drop every N packets (0=>no drop) */
|
||||
#undef BUILD_SERIAL /* Include an automatic build serial
|
||||
* number. Add "bs" to the list of
|
||||
* make targets. For example:
|
||||
|
||||
Reference in New Issue
Block a user