path: root/tests/ipporthash.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/ipporthash.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/ipporthash.t')
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ipporthash.t b/tests/ipporthash.t
index edbbb0c..fe246a3 100644
--- a/tests/ipporthash.t
+++ b/tests/ipporthash.t
@@ -2,6 +2,10 @@
2 ipset -N test ipporthash --from --to
# Range: Create a set from a valid range
0 ipset -N test ipporthash --from --to
+# Range: Add zero valued element
+1 ipset -A test,0
+# Range: Test zero valued element
+1 ipset -T test,0
# Range: Add lower boundary
0 ipset -A test,5
# Range: Add upper boundary