getting random and average to accept decimals?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I need a very high precision loss model, and right now it seems as though --average can only accept integer numbers

I would for example like to introduce .01% packet loss, .1% packet loss, 1% packet loss, 1.5% packet loss ... except it seemas though out of that set, i would only be able to do 1% packet loss

lanthanum-ini ~ # iptables -A FORWARD -p all -m random --average .25 -j DROP
iptables v1.3.5: bad --average `.25', must be between 1 and 99
Try `iptables -h' or 'iptables --help' for more information.

is there any way i can get higher precision?

Thanks!
George



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux