summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-04-19 13:29:11 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-04-19 13:29:11 +0200
commite733be6f42e93a5dfeb5cb95e01a131dd2c32442 (patch)
tree677ae5fd2cd4f1733cb625a66092285a65b67dcc /tests
parent0c9445af769132b53aadacf9338380933bded681 (diff)
tests: family-ipv6: update to use the current syntax
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/family-ipv67
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/family-ipv6 b/tests/family-ipv6
index 1ddb53e5..e76b2cea 100644
--- a/tests/family-ipv6
+++ b/tests/family-ipv6
@@ -1,10 +1,13 @@
#! nft -f
add table ip6 filter
-add chain ip6 filter output NF_INET_LOCAL_OUT 0
+add chain ip6 filter output { hook NF_INET_LOCAL_OUT 0 ; }
# IP address
add rule ip6 filter output ip6 daddr 2001:6f8:974::1 counter
+# Next protocol
+add rule ip6 filter output ip6 nexthdr tcp
+
# TCP ports
-add rule ip6 filter output ip6 nexthdr 6 tcp dport 22 counter
+add rule ip6 filter output tcp dport 22 counter