summaryrefslogtreecommitdiffstats
path: root/extensions/libarpt_CLASSIFY.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_CLASSIFY.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_CLASSIFY.t')
-rw-r--r--extensions/libarpt_CLASSIFY.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/libarpt_CLASSIFY.t b/extensions/libarpt_CLASSIFY.t
new file mode 100644
index 00000000..c30480d2
--- /dev/null
+++ b/extensions/libarpt_CLASSIFY.t
@@ -0,0 +1,4 @@
+:OUTPUT
+-o lo --destination-mac 11:22:33:44:55:66;-o lo --dst-mac 11:22:33:44:55:66;OK
+--dst-mac Broadcast ;--dst-mac ff:ff:ff:ff:ff:ff;OK
+! -o eth+ -d 1.2.3.4/24 -j CLASSIFY --set-class 0000:0000;! -o eth+ -d 1.2.3.0/24 --h-length 6 --h-type 1 -j CLASSIFY --set-class 0000:0000;OK