From 1b63e66c2645e9186969588b6f68306c26ce5ca1 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 5 Nov 2018 17:51:37 +0100 Subject: 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 --- extensions/libarpt_standard.t | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 extensions/libarpt_standard.t (limited to 'extensions/libarpt_standard.t') diff --git a/extensions/libarpt_standard.t b/extensions/libarpt_standard.t new file mode 100644 index 00000000..bef682af --- /dev/null +++ b/extensions/libarpt_standard.t @@ -0,0 +1,14 @@ +:INPUT +-s 192.168.0.1;=;OK +-s 0.0.0.0/8;=;OK +-s ! 0.0.0.0;! -s 0.0.0.0;OK +-d 192.168.0.1;=;OK +! -d 0.0.0.0;=;OK +-d 0.0.0.0/24;=;OK +-i lo;=;OK +! -i lo;=;OK +-i ppp+;=;OK +! -i ppp+;=;OK +-i lo --destination-mac 11:22:33:44:55:66;-i lo --dst-mac 11:22:33:44:55:66;OK +--source-mac Unicast;--src-mac 00:00:00:00:00:00/01:00:00:00:00:00;OK +! --src-mac Multicast;! --src-mac 01:00:00:00:00:00/01:00:00:00:00:00;OK -- cgit v1.2.3