From 46fb717308d9d717439badd48c150e32a3508a90 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu" Date: Thu, 23 Oct 2008 17:24:30 +0000 Subject: ipset 2.4.2: - When flushing a nethash/ipportnethash type of set, it can lead to a kernel crash due to a wrong type declaration, bug reported by Krzysztof Oledzki. - iptree and iptreemap types require the header file linux/timer.h, also reported by Krzysztof Oledzki. --- tests/iphash.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/iphash.t') diff --git a/tests/iphash.t b/tests/iphash.t index 731457d..46ce58b 100644 --- a/tests/iphash.t +++ b/tests/iphash.t @@ -14,12 +14,16 @@ 0 ipset -T test 192.168.68.69 # IP: Test value not added to the set 1 ipset -T test 2.0.0.2 +# IP: Flush test set +0 ipset -F test # IP: Delete test set 0 ipset -X test # IP: Restore values so that rehashing is triggered 0 ipset -R < iphash.t.restore # IP: Check that all values are restored 0 (egrep -v '#|-N' iphash.t.restore | sort > .foo.1) && (ipset -S test | egrep -v '#|-N' | sort > .foo.2) && cmp .foo.1 .foo.2 && rm .foo.* +# IP: Flush test set +0 ipset -F test # IP: Delete test set 0 ipset -X test # Network: Create a set @@ -34,6 +38,8 @@ 0 ipset -T test 192.168.68.95 # Network: Test value not added to the set 1 ipset -T test 2.0.1.0 +# Network: Flush test set +0 ipset -F test # Network: Delete test set 0 ipset -X test # eof -- cgit v1.2.3