summaryrefslogtreecommitdiffstats
path: root/extensions/libarpt_MARK.t
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-11-05 17:51:37 +0100
committerFlorian Westphal <fw@strlen.de>2018-11-12 16:30:22 +0100
commit1b63e66c2645e9186969588b6f68306c26ce5ca1 (patch)
treec634b33778c31d06eeed4c2ca9cbf34878e6390f /extensions/libarpt_MARK.t
parent5aecb2d8bfdda4a6eea9d93079e33fc414afd8d0 (diff)
arptables: add test cases
Unicast being shown as '00:00:00:00:00:00/01:00:00:00:00:00' looks like broken output, however, arptables classic did not pretty-print either. Also add test cases for all targets supported by the original arptables tool: -j CLASSIFY -j MARK -j mangle [ yes, mangle target is lower-case 8-( ] Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libarpt_MARK.t')
-rw-r--r--extensions/libarpt_MARK.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/libarpt_MARK.t b/extensions/libarpt_MARK.t
new file mode 100644
index 00000000..cb4c2cb6
--- /dev/null
+++ b/extensions/libarpt_MARK.t
@@ -0,0 +1,4 @@
+:INPUT,OUTPUT
+-d 0.0.0.0/8 -j MARK --set-mark 0x1;-d 0.0.0.0/8 --h-length 6 --h-type 1 -j MARK --set-xmark 0x1/0xffffffff;OK
+-s ! 0.0.0.0 -j MARK --and-mark 0x17;! -s 0.0.0.0 --h-length 6 --h-type 1 -j MARK --set-xmark 0x0/0xffffffe8;OK
+-s 0.0.0.0 -j MARK --or-mark 0x17;-s 0.0.0.0 --h-length 6 --h-type 1 -j MARK --set-xmark 0x17/0x17;OK