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_mangle.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_mangle.t')
-rw-r--r-- | extensions/libarpt_mangle.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/libarpt_mangle.t b/extensions/libarpt_mangle.t new file mode 100644 index 00000000..1d4c3977 --- /dev/null +++ b/extensions/libarpt_mangle.t @@ -0,0 +1,5 @@ +:OUTPUT +-s 1.2.3.4 -j mangle --mangle-ip-s 1.2.3.5;-s 1.2.3.4 --h-length 6 --h-type 1 -j mangle --mangle-ip-s 1.2.3.5;OK +-d 1.2.3.4 -j mangle --mangle-ip-d 1.2.3.5;-d 1.2.3.4 --h-length 6 --h-type 1 -j mangle --mangle-ip-d 1.2.3.5;OK +-d 1.2.3.4 --h-length 6 --h-type 1 -j mangle --mangle-mac-d 00:01:02:03:04:05;=;OK +-d 1.2.3.4 -j mangle --mangle-mac-s 00:01:02:03:04:05;=;FAIL |