summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-04-20 12:54:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-04-20 12:57:15 +0200
commit311ba4e8e5e5807c1a867c57686f14907ba7b829 (patch)
treee5202e378b5910a82a7b92f22aebf8830418eaf3
parent3cb8834b39f8f6c27607698e485fcc7ff96815fa (diff)
tests: set: update examples to use the current syntax
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--tests/set4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/set b/tests/set
index b3e7ad65..e2d8e495 100644
--- a/tests/set
+++ b/tests/set
@@ -1,7 +1,7 @@
#! nft -f
add table filter
-add chain filter output NF_INET_LOCAL_OUT 0
+add chain filter output { hook NF_INET_LOCAL_OUT 0 ; }
# set: IP addresses
add rule filter output ip daddr { \
@@ -11,4 +11,4 @@ add rule filter output ip daddr { \
}
# set: tcp ports
-add rule filter output ip protocol 6 tcp dport { 22, 23 } counter
+add rule filter output tcp dport { 22, 23 } counter