[PATCH] libipt_statistic

Patrick McHardy kaber at trash.net
Mon Jul 2 17:02:05 CEST 2007

Patrick McHardy wrote:
>>But even if I do:
>>  --every 4 --packet 2
>>The first time it will match the 3th packet
>>and all next time it will match the 4th packet, which I dont
>>understand why (technically yes, but philosophically not).
>>Matching pattern look like:
> It starts at zero and goes up to n - 1. So for the second
> packet you would actually use --packet 1. A bit
> counterintuitive, I agree, but too late to change.

BTW, if this really bothers you, you could add a new option
for --packet (maybe --start) that subtracts one from the
starting point.

More information about the netfilter-devel mailing list