diff options
author | Florian Westphal <fw@strlen.de> | 2018-11-05 17:51:37 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-12 16:30:22 +0100 |
commit | 1b63e66c2645e9186969588b6f68306c26ce5ca1 (patch) | |
tree | c634b33778c31d06eeed4c2ca9cbf34878e6390f /extensions/libarpt_standard.t | |
parent | 5aecb2d8bfdda4a6eea9d93079e33fc414afd8d0 (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_standard.t')
-rw-r--r-- | extensions/libarpt_standard.t | 14 |
1 files changed, 14 insertions, 0 deletions
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 |