]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: Update bate chain creation according to latest syntax changes
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Wed, 4 Sep 2013 09:50:22 +0000 (12:50 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 4 Sep 2013 10:33:56 +0000 (12:33 +0200)
Adding type, plain hook's name and priority keyword.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/dictionary
tests/expr-ct
tests/expr-meta
tests/family-bridge
tests/family-ipv4
tests/family-ipv6
tests/obj-chain
tests/payload-ll
tests/set
tests/stmt-log
tests/verdict-maps

index aad9ebeb477d09ab5d4af2310d1e7656b6185817..4193529563a142821ea951e644d1e2fbf9e57212 100644 (file)
@@ -1,7 +1,7 @@
 #! nft -f
 #
 add table ip filter
-add chain ip filter output { hook NF_INET_LOCAL_OUT 0 ; }
+add chain ip filter output { type filter hook output priority 0 ; }
 
 add chain ip filter chain1
 add rule ip filter chain1 counter
index 39f1777ceb8e355f345fdb2bd0c4fd5a8ab25d84..1dfc7ac69a7d97321a8da656413eeaedce1f8527 100644 (file)
@@ -1,7 +1,7 @@
 #! nft -f
 
 add table ip filter
-add chain ip filter output { hook NF_INET_LOCAL_OUT 0 ; }
+add chain ip filter output { type filter hook output priority 0 ; }
 
 # ct: state
 add rule ip filter output ct state new,established counter
index da16ae4192f86e1c2e95414c04cb6ba688045ba3..360caa7d45754e101c4672c1c9961422b03c5395 100644 (file)
@@ -1,7 +1,7 @@
 #! nft -f
 
 add table ip filter
-add chain ip filter output { hook NF_INET_LOCAL_OUT 0 ; }
+add chain ip filter output { type filter hook output priority 0 ; }
 
 # meta: skb len
 add rule ip filter output meta length 1000 counter
index 98b788577978057d4cb7fc35f58eb0cbf6104654..c87c8320742c67134cd222742be54b8affa39fe2 100644 (file)
@@ -1,7 +1,7 @@
 #! nft -f
 
 add table bridge filter
-add chain bridge filter output { hook NF_INET_LOCAL_OUT 0 ; }
+add chain bridge filter output { type filter hook output priority 0 ; }
 
 # LL protocol
 add rule bridge filter output eth type 0x0800 counter
index e744f028614877c04cb455ab2af43abd8bf3065b..0700e16dfe668762082263173974b4b5dddcf898 100644 (file)
@@ -5,7 +5,7 @@ delete chain ip filter output
 delete table filter
 
 add table ip filter
-add chain ip filter output { hook NF_INET_LOCAL_IN 0; }
+add chain ip filter output { type filter hook input priority 0; }
 
 # IP address
 add rule ip filter output ip daddr 192.168.0.1 counter
index e76b2ceaf1022e3086c71a123fed8b0a58a291d6..cfc740c1125380b417334d8b77bd92ba0c0ed7bb 100644 (file)
@@ -1,7 +1,7 @@
 #! nft -f
 
 add table ip6 filter
-add chain ip6 filter output { hook NF_INET_LOCAL_OUT 0 ; }
+add chain ip6 filter output { type filter hook output priority 0 ; }
 
 # IP address
 add rule ip6 filter output ip6 daddr 2001:6f8:974::1 counter
index f5094bb04090be3591d50f1566ced40cc48bc0b5..2bce02687d6bbecd17842e88254e639e17fd4157 100644 (file)
@@ -7,7 +7,7 @@ add chain filter testchain
 delete chain filter testchain
 
 # chains: add and delete base chain
-add chain filter input { hook NF_INET_LOCAL_OUT 0 ; }
+add chain filter input { type filter hook input priority 0 ; }
 delete chain filter input
 
 # chains: can not delete chain while referenced
index feaf5874d4b4571f2193ba783c2aee86264985a6..7f5660b15990851966e9eadb283b8f795d49e3c5 100644 (file)
@@ -1,7 +1,7 @@
 #! nft -f
 
 add table ip filter
-add chain ip filter input NF_INET_LOCAL_IN 0
+add chain ip filter input { type filter hook input priority 0; }
 
 # mac source
 add rule ip filter input @ll,48,48 00:15:e9:f0:10:f8 counter
index e2d8e495d63d02a15ed7f25177915ced18eb46e4..3c040b0a29f4c7d334ddbabf0fbb6a084a27bb73 100644 (file)
--- a/tests/set
+++ b/tests/set
@@ -1,7 +1,7 @@
 #! nft -f
 
 add table filter
-add chain filter output { hook NF_INET_LOCAL_OUT 0 ; }
+add chain filter output { type filter hook output priority 0 ; }
 
 # set: IP addresses
 add rule filter output ip daddr { \
index 215377210d122004f21d68d3ef776c043dfd9b4c..2ae7aae6c1d7af685e02b9d318f870594faa6919 100644 (file)
@@ -1,6 +1,6 @@
 #! nft -f
 
 add table ip filter
-add chain ip filter output NF_INET_LOCAL_OUT 0
+add chain ip filter output { type filter hook output priority 0; }
 
 add rule ip filter output log saddr "prefix" group 0 counter
index 25b60d19392c305c4d4c623cb7bdfce36d49c06a..72ef98f98d7234bd9c08f482b1dd3e9904f594ea 100644 (file)
@@ -2,7 +2,7 @@
 #
 
 add table ip filter
-add chain ip filter input { hook NF_INET_LOCAL_IN 0; }
+add chain ip filter input { type filter hook input priority 0; }
 
 add chain ip filter chain1
 add filter chain1 counter