path: root/tests/iphash.t
diff options
author/C=EU/ST=EU/CN=Jozsef Kadlecsik/ </C=EU/ST=EU/CN=Jozsef Kadlecsik/>2008-10-21 12:09:05 +0000
committer/C=EU/ST=EU/CN=Jozsef Kadlecsik/ </C=EU/ST=EU/CN=Jozsef Kadlecsik/>2008-10-21 12:09:05 +0000
commitb8d6cfc169bf79b72faaab6ef7940798dbfe9328 (patch)
tree0bcc128ad3bcfdfca6849cea318e3de51673c6c6 /tests/iphash.t
parenta96e4fca10506462df4ee4035f0f86f09bd9dc34 (diff)
As the manpage says, zero valued set entries cannot be used with
hash type of sets. Enforce the restriction.
Diffstat (limited to 'tests/iphash.t')
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/iphash.t b/tests/iphash.t
index 14c3395..731457d 100644
--- a/tests/iphash.t
+++ b/tests/iphash.t
@@ -1,5 +1,9 @@
# IP: Create a set
0 ipset -N test iphash --hashsize 128
+# Range: Add zero valued element
+2 ipset -A test
+# Range: Test zero valued element
+2 ipset -T test
# IP: Add first random value
0 ipset -A test
# IP: Add second random value