summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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