summaryrefslogtreecommitdiffstats
path: root/tests/py/netdev/dup.t.payload
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2021-10-24 09:37:35 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-10-28 02:01:20 +0200
commit1e30a3a49a5eaf2a1e0e4b2d8f4949db9db565e7 (patch)
tree6018b85290f3d00d026df8970ad9976a001f6bdf /tests/py/netdev/dup.t.payload
parentc03d5e2bda285db8358407de3581b4ea933bd3dc (diff)
tests: py: Move netdev-specific tests to appropriate subdirectory
The fwd and dup statements are specific to netdev hooks, so move their tests to the appropriate subdirectory. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/netdev/dup.t.payload')
-rw-r--r--tests/py/netdev/dup.t.payload14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/py/netdev/dup.t.payload b/tests/py/netdev/dup.t.payload
new file mode 100644
index 00000000..51ff782c
--- /dev/null
+++ b/tests/py/netdev/dup.t.payload
@@ -0,0 +1,14 @@
+# dup to "lo"
+netdev test-netdev ingress
+ [ immediate reg 1 0x00000001 ]
+ [ dup sreg_dev 1 ]
+
+# dup to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
+__map%d test-netdev b
+__map%d test-netdev 0
+ element 00000001 : 00000001 0 [end] element 00000002 : 00000001 0 [end]
+netdev test-netdev ingress
+ [ meta load mark => reg 1 ]
+ [ lookup reg 1 set __map%d dreg 1 ]
+ [ dup sreg_dev 1 ]
+