* getting random and average to accept decimals?
@ 2006-04-28 18:29 George P Nychis
2006-04-29 2:16 ` George Nychis
0 siblings, 1 reply; 2+ messages in thread
From: George P Nychis @ 2006-04-28 18:29 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: getting random and average to accept decimals?
2006-04-28 18:29 getting random and average to accept decimals? George P Nychis
@ 2006-04-29 2:16 ` George Nychis
0 siblings, 0 replies; 2+ messages in thread
From: George Nychis @ 2006-04-29 2:16 UTC (permalink / raw)
To: George P Nychis; +Cc: netfilter
Daniel made a really helpful suggestion on #iptables to solve my problem:
iptables -N CENTAPKT; iptables -A INPUT -m random --average 1 -j
CENTAPKT; iptables -A CENTAPKT -m random --average 1 -j DROP
yey, 0.01% packet loss :)
George P Nychis wrote:
> 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
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-29 2:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-28 18:29 getting random and average to accept decimals? George P Nychis
2006-04-29 2:16 ` George Nychis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.