retooted Emmanuel
The NetBSD Packet Filter (NPF) has a random block procedure extension. It is more of a network assessment feature.
procedure “test” {
rndblock : “mod” 10, “percentage” 30
}
Modulo 10 will cause the firewall to drop one in every ten packet.
Percentage 30 will cause NPF to generate random values from 0 to 10000 and will block the packet if the number generated is in 30 percent or less of 10000.
This could be very useful to see how your network stack handles packet drops.