summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_ah.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-09-04 17:02:21 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-10-07 16:35:47 +0200
commitf692400fe73c456280958f8b770fc17461f320a3 (patch)
tree41f6bb14eace99f1169c6333b288dbbae856968f /extensions/libip6t_ah.t
parent4165db16b7645e7e8858a4ec40e198bcc5623018 (diff)
extensions: libip6t_ah: add unit test
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libip6t_ah.t')
-rw-r--r--extensions/libip6t_ah.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/extensions/libip6t_ah.t b/extensions/libip6t_ah.t
new file mode 100644
index 00000000..459e9ecd
--- /dev/null
+++ b/extensions/libip6t_ah.t
@@ -0,0 +1,14 @@
+:INPUT,FORWARD,OUTPUT
+-m ah --ahspi 0;=;OK
+-m ah --ahspi 4294967295;=;OK
+-m ah --ahspi 0:4294967295;-m ah;OK
+-m ah ! --ahspi 0;=;OK
+# ERROR: should fail: iptables -A FORWARD -t mangle -j CLASSIFY --set-class 1:-1
+# -m ah --ahres;=;OK
+# ERROR: line 7 (cannot find: ip6tables -I INPUT -m ah --ahlen 32
+# -m ah --ahlen 32;=;OK
+-m ah --ahspi -1;;FAIL
+-m ah --ahspi 4294967296;;FAIL
+-m ah --ahspi invalid;;FAIL
+-m ah --ahspi 0:invalid;;FAIL
+-m ah --ahspi;;FAIL