diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-05 09:59:43 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-05 10:55:55 +0200 |
commit | d79a7f18e19b9534e44022d58e2802c9cd70568d (patch) | |
tree | 43c71776db0f9545c4803c701737dd879a21048a /iptables/nft-ipv6.c | |
parent | d1eb4d58729736773d1c5cc106451e2851427850 (diff) |
xtables-compat: output -s,d first during save, just like iptables
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r-- | iptables/nft-ipv6.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 33f77ebf..10c81d95 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -272,16 +272,16 @@ static void nft_ipv6_save_firewall(const void *data, unsigned int format) { const struct iptables_command_state *cs = data; - save_firewall_details(cs, cs->fw6.ipv6.invflags, cs->fw6.ipv6.proto, - cs->fw6.ipv6.iniface, cs->fw6.ipv6.iniface_mask, - cs->fw6.ipv6.outiface, - cs->fw6.ipv6.outiface_mask); - save_ipv6_addr('s', &cs->fw6.ipv6.src, cs->fw6.ipv6.invflags & IP6T_INV_SRCIP); save_ipv6_addr('d', &cs->fw6.ipv6.dst, cs->fw6.ipv6.invflags & IP6T_INV_DSTIP); + save_firewall_details(cs, cs->fw6.ipv6.invflags, cs->fw6.ipv6.proto, + cs->fw6.ipv6.iniface, cs->fw6.ipv6.iniface_mask, + cs->fw6.ipv6.outiface, + cs->fw6.ipv6.outiface_mask); + save_matches_and_target(cs->matches, cs->target, cs->jumpto, cs->fw6.ipv6.flags, &cs->fw6); |