path: root/extensions
diff options
authorPhil Sutter <>2019-02-01 17:06:19 +0100
committerFlorian Westphal <>2019-02-01 17:09:43 +0100
commitac8d992b8b2a23c5ae56afc428737c6863461136 (patch)
tree4bc0e0d2989d8e633c186faadff8c579206f65a5 /extensions
parenta1da179b0ff3783badca352a42808f4398dd1a98 (diff)
extensions: Fix arptables extension tests
With changes to arptables-nft output, many of these tests fail because rules are not printed as expected anymore. Since most of the tests with explicitly defined output did so just because of added --h-length and --h-type options, adjust input a little more (typically reordering of arguments) to make output match input. Signed-off-by: Phil Sutter <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'extensions')
4 files changed, 10 insertions, 10 deletions
diff --git a/extensions/libarpt_CLASSIFY.t b/extensions/libarpt_CLASSIFY.t
index c30480d2..0cf0f2ce 100644
--- a/extensions/libarpt_CLASSIFY.t
+++ b/extensions/libarpt_CLASSIFY.t
@@ -1,4 +1,4 @@
-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 -j CLASSIFY --set-class 0000:0000;! -o eth+ -d --h-length 6 --h-type 1 -j CLASSIFY --set-class 0000:0000;OK
+! -o eth+ -d -j CLASSIFY --set-class 0:0;-j CLASSIFY ! -o eth+ -d --set-class 0:0;OK
diff --git a/extensions/libarpt_MARK.t b/extensions/libarpt_MARK.t
index cb4c2cb6..3b13d44f 100644
--- a/extensions/libarpt_MARK.t
+++ b/extensions/libarpt_MARK.t
@@ -1,4 +1,4 @@
--d -j MARK --set-mark 0x1;-d --h-length 6 --h-type 1 -j MARK --set-xmark 0x1/0xffffffff;OK
--s ! -j MARK --and-mark 0x17;! -s --h-length 6 --h-type 1 -j MARK --set-xmark 0x0/0xffffffe8;OK
--s -j MARK --or-mark 0x17;-s --h-length 6 --h-type 1 -j MARK --set-xmark 0x17/0x17;OK
+-j MARK -d --set-mark 1;=;OK
+-s ! -j MARK --and-mark 0x17;-j MARK ! -s --and-mark 17;OK
+-j MARK -s --or-mark 17;=;OK
diff --git a/extensions/libarpt_mangle.t b/extensions/libarpt_mangle.t
index 1d4c3977..da966948 100644
--- a/extensions/libarpt_mangle.t
+++ b/extensions/libarpt_mangle.t
@@ -1,5 +1,5 @@
--s -j mangle --mangle-ip-s;-s --h-length 6 --h-type 1 -j mangle --mangle-ip-s;OK
--d -j mangle --mangle-ip-d;-d --h-length 6 --h-type 1 -j mangle --mangle-ip-d;OK
--d --h-length 6 --h-type 1 -j mangle --mangle-mac-d 00:01:02:03:04:05;=;OK
--d -j mangle --mangle-mac-s 00:01:02:03:04:05;=;FAIL
+-j mangle -s --mangle-ip-s;=;OK
+-j mangle -d --mangle-ip-d;=;OK
+-j mangle -d --mangle-mac-d 00:01:02:03:04:05;=;OK
+-d --h-length 5 -j mangle --mangle-mac-s 00:01:02:03:04:05;=;FAIL
diff --git a/extensions/libarpt_standard.t b/extensions/libarpt_standard.t
index 19586592..e84a00b7 100644
--- a/extensions/libarpt_standard.t
+++ b/extensions/libarpt_standard.t
@@ -5,8 +5,8 @@
! -d;=;OK
--i lo -j DROP;-i lo --h-length 6 --h-type 1 -j DROP;OK
-! -i lo -j ACCEPT;! -i lo --h-length 6 --h-type 1 -j ACCEPT;OK
+-j DROP -i lo;=;OK
+-j ACCEPT ! -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