summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_cluster.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-10-01 10:44:49 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-01 10:44:58 +0200
commita9084baa5d0ff6ccd28715b79ad2630bc77be49b (patch)
tree5f53bda6e82184773150e29339a425578c4db644 /extensions/libxt_cluster.t
parentcbe036db892c298c33e77dec2c5129dbb4dccc2c (diff)
parent4b187eeed49dc507d38438affabe90d36847412d (diff)
Merge branch 'tests'
This merges the iptables-test.py script and the corresponding test files.
Diffstat (limited to 'extensions/libxt_cluster.t')
-rw-r--r--extensions/libxt_cluster.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/libxt_cluster.t b/extensions/libxt_cluster.t
new file mode 100644
index 00000000..ac608244
--- /dev/null
+++ b/extensions/libxt_cluster.t
@@ -0,0 +1,10 @@
+:PREROUTING,FORWARD,POSTROUTING
+*mangle
+-m cluster;;FAIL
+-m cluster --cluster-total-nodes 3;;FAIL
+-m cluster --cluster-total-nodes 2 --cluster-local-node 2;;FAIL
+-m cluster --cluster-total-nodes 2 --cluster-local-node 3 --cluster-hash-seed;;FAIL
+#
+# outputs --cluster-local-nodemask instead of --cluster-local-node
+#
+-m cluster --cluster-total-nodes 2 --cluster-local-node 2 --cluster-hash-seed 0xfeedcafe;-m cluster --cluster-local-nodemask 0x00000002 --cluster-total-nodes 2 --cluster-hash-seed 0xfeedcafe;OK