summaryrefslogtreecommitdiffstats
path: root/tests/py/any/fwd.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-11-24 21:26:27 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-01-31 22:32:18 +0100
commit6f137a2db3419e961e41eda28668cd99e8a3f2e2 (patch)
treea53b45962d657c1c02363d9b248aa944840a9134 /tests/py/any/fwd.t
parent8a236ef68cd43af81fac10c5b58658514273a14e (diff)
src: add fwd statement for netdev
This patch add support for the forward statement, only available at the netdev family. # nft add table netdev filter # nft add chain netdev filter ingress { type filter hook ingress device eth0 priority 0\; } # nft add rule netdev filter ingress fwd to dummy0 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/fwd.t')
-rw-r--r--tests/py/any/fwd.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/py/any/fwd.t b/tests/py/any/fwd.t
new file mode 100644
index 00000000..fb15aced
--- /dev/null
+++ b/tests/py/any/fwd.t
@@ -0,0 +1,7 @@
+:ingress;type filter hook ingress device lo priority 0
+
+*netdev;test-netdev;ingress
+
+fwd to lo;ok
+fwd to mark map { 0x00000001 : lo, 0x00000002 : lo};ok
+