netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Document xt_statistic
@ 2007-11-11 16:30 Stefano Sabatini
  2007-11-12  5:55 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Stefano Sabatini @ 2007-11-11 16:30 UTC (permalink / raw)
  To: netfilter-devel Mailing List

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

Hi to all netfilter developers,
and many thanks for your great work.

The attached patch is the result of this discussion:
http://thread.gmane.org/20071105150734.GA26774@santefisi.caos.org

Please consider integrating it into iptables, this may potentially
save many man hours, and improve your karma towards your users.

Best regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)

[-- Attachment #2: document-xtstatistic.patch --]
[-- Type: text/x-diff, Size: 884 bytes --]

Index: extensions/libxt_statistic.man
===================================================================
--- extensions/libxt_statistic.man	(revision 0)
+++ extensions/libxt_statistic.man	(revision 0)
@@ -0,0 +1,30 @@
+This module matches packets based on some statistic condition.
+It supports two distinct modes settable with the 
+.B --mode
+option.
+.TP
+Supported options:
+.TP
+.BI "--mode " "mode"
+Set the matching mode of the matching rule, supported modes are
+.B random
+and
+.B nth. 
+.TP
+.BI "--probability " "p"
+Set the probability from 0 to 1 for a packet to be randomly
+matched. It works only with the
+.B random
+mode.
+.TP
+.BI "--every " "n"
+Match one packet every nth packet. It works only with the
+.B nth
+mode (see also the 
+.B --packet
+option).
+.TP
+.BI "--packet " "p"
+Set the initial counter value (0 <= p <= n-1, default 0) for the
+.B nth 
+mode.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-12  5:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-11 16:30 [PATCH] Document xt_statistic Stefano Sabatini
2007-11-12  5:55 ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).