[PATCH] libipt_statistic
NICOLAS BOULIANE
nicboul at gmail.com
Mon Jul 2 02:10:59 CEST 2007
Hi Patrick,
I think that this calculation is erroneous:
info->u.nth.count = info->u.nth.every - info->u.nth.packet;
ex: --mode nth --every 4 --packet 6
AIUI, we want to drop the 4th packet after 6 packets have pass.
Base on this example, we want to match the 10th packet.
But we are gonna match the 7th packet, wich is wrong.
count: -3
every: 3
packet: 6
-3, -2, -1, 0, 1, 2, (3) -- Increment
1, 2, 3, 4, 5, 6, 7 -- nth packet
comments are welcome.
--
I think that my patch introduce space at the beginning of each line,
someone could give me a vim hint to avoid that ? thanks.
--
acidfu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libipt_statistic.c.patch
Type: text/x-patch
Size: 725 bytes
Desc: not available
Url : /pipermail/netfilter-devel/attachments/20070702/e946376c/libipt_statistic.c.bin
More information about the netfilter-devel
mailing list