diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-04-18 12:53:25 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-04-18 12:53:25 +0200 |
commit | 0b6f88e662d54cabf15ef3dbf70e9f0fcdb1412e (patch) | |
tree | 61015b37af82ea3852fe1a93ee19fc2f8ae16a1a /tests/iptables.sh | |
parent | 8ca014410d1b64d802772c168f416d8bcc99fbe3 (diff) |
Options and flags support added to the kernel API
The support makes possible to specify the timeout value for
the SET target and a flag to reset the timeout for already existing
entries.
Diffstat (limited to 'tests/iptables.sh')
-rwxr-xr-x | tests/iptables.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/iptables.sh b/tests/iptables.sh index b5b82e4..9b1c90c 100755 --- a/tests/iptables.sh +++ b/tests/iptables.sh @@ -64,6 +64,10 @@ del) $cmd -F INPUT $cmd -A INPUT -j SET --del-set ipport src,src ;; +timeout) + ../src/ipset n test hash:ip,port timeout 2 + $cmd -A INPUT -j SET --add-set test src,src --timeout 10 --exist + ;; stop) $cmd -F $cmd -X |