summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-04-20 12:10:05 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-04-20 12:10:05 +0200
commitb3ba81da0f2dc907067a47ac24082cbb656926e1 (patch)
tree1dae1e25032a0a8e9ab548076202937f096de6cd
parentc265c2639e8855719fc09325c3dc4a69d91a7088 (diff)
tests: obj-chain: update examples to use the current syntax
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--tests/obj-chain6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/obj-chain b/tests/obj-chain
index 53d78333..f5094bb0 100644
--- a/tests/obj-chain
+++ b/tests/obj-chain
@@ -7,8 +7,8 @@ add chain filter testchain
delete chain filter testchain
# chains: add and delete base chain
-add chain filter input NF_INET_LOCAL_OUT 0
-delete chain filter input NF_INET_LOCAL_OUT 0
+add chain filter input { hook NF_INET_LOCAL_OUT 0 ; }
+delete chain filter input
# chains: can not delete chain while referenced
add chain filter testchain
@@ -16,7 +16,7 @@ add chain filter testchain2
add rule filter testchain handle 1 jump testchain2
delete chain filter testchain2
-rule delete filter testchain handle 1
+delete rule filter testchain handle 1
delete chain filter testchain2
delete chain filter testchain