summaryrefslogtreecommitdiffstats
path: root/tests/py/any/dup.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-11-19 12:49:53 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-01-31 22:32:18 +0100
commit8a236ef68cd43af81fac10c5b58658514273a14e (patch)
tree5968a7a58ae55623a73154bb25843d6e365c2ac2 /tests/py/any/dup.t
parent55e7822dbe8c70d067b63ea8518359639386e7c6 (diff)
src: add dup statement for netdev
This patch contains the missing chunk to add support for the netdev family. Part of the support slipped through in the original patch to add the dup statement for IPv4 and IPv6. # 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 dup to dummy0 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/dup.t')
-rw-r--r--tests/py/any/dup.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/py/any/dup.t b/tests/py/any/dup.t
new file mode 100644
index 00000000..7df24a1c
--- /dev/null
+++ b/tests/py/any/dup.t
@@ -0,0 +1,7 @@
+:ingress;type filter hook ingress device lo priority 0
+
+*netdev;test-netdev;ingress
+
+dup to lo;ok
+dup to mark map { 0x00000001 : lo, 0x00000002 : lo};ok
+