From aa5d3c5b16e94036ac0dc6d44194db7b009ced53 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sun, 18 Nov 2018 12:31:33 +0100 Subject: arptables-nft: use generic expression parsing function since commit d9c6a5d0977a6d8bbe772dbc31a2c4f58eec1708 ("xtables: merge {ip,arp}tables_command_state structs") arptables uses the shared representation. With only minor changes (e.g., use generic counters in command_state), in print/save functions we can use the shared nftnl expression parser too. arptables-legacy prints (-L) the jump target first, i.e.: -j MARK -d 0.0.0.0/8 --h-length 6 ... ... so keep that here too. Signed-off-by: Florian Westphal --- extensions/libarpt_standard.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions') diff --git a/extensions/libarpt_standard.t b/extensions/libarpt_standard.t index bef682af..19586592 100644 --- a/extensions/libarpt_standard.t +++ b/extensions/libarpt_standard.t @@ -5,8 +5,8 @@ -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 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 -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 -- cgit v1.2.3