path: root/extensions/libxt_recent.t
diff options
authorFlorian Westphal <>2015-02-19 02:23:19 +0100
committerFlorian Westphal <>2015-02-19 17:44:06 +0100
commite8a95271dc8598261957f9ed5472dfb9065bdd9e (patch)
tree75a10940d1d23eb92a588584c50c1f2fba61118a /extensions/libxt_recent.t
parentd81dc8e5f7e33646b3e56e274c46c3599275cbc1 (diff)
extensions: add more test cases for
Instead of using iptables-save-formatted files in the tests/ dir, lets use the framework for all matches/targets. This obsoletes tests/ completely, will be removed in followup patch. Suggested-by: Pablo Neira Ayuso <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'extensions/libxt_recent.t')
1 files changed, 7 insertions, 0 deletions
diff --git a/extensions/libxt_recent.t b/extensions/libxt_recent.t
new file mode 100644
index 00000000..cb4049f5
--- /dev/null
+++ b/extensions/libxt_recent.t
@@ -0,0 +1,7 @@
+-m recent --set;=;OK
+-m recent --rcheck --hitcount 8 --name foo --mask --rsource;=;OK
+-m recent --rcheck --hitcount 12 --name foo --mask --rsource;=;OK
+-m recent --update --rttl;=;OK
+-m recent --set --rttl;=;FAIL
+-m recent --rcheck --hitcount 999 --name foo --mask --rsource;=;FAIL