summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/hash.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip/hash.t')
-rw-r--r--tests/py/ip/hash.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/py/ip/hash.t b/tests/py/ip/hash.t
new file mode 100644
index 00000000..6dfa965b
--- /dev/null
+++ b/tests/py/ip/hash.t
@@ -0,0 +1,5 @@
+:pre;type nat hook prerouting priority 0
+*ip;test-ip4;pre
+
+ct mark set jhash ip saddr . ip daddr mod 2 seed 0xdeadbeef;ok
+dnat to jhash ip saddr mod 2 seed 0xdeadbeef map { 0 : 192.168.20.100, 1 : 192.168.30.100 };ok