diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-03 17:26:46 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-08-04 23:40:13 +0200 |
commit | cd79556bfa15056f2a430e57993a2a64c734b3cf (patch) | |
tree | 7230a40b65ced05bdb978a94886952e9a32e55d4 | |
parent | 03572549df349455fcade80dfab0b28904975330 (diff) |
xtables: Reserve space for 'opt' column in ip6tables output
Although ip6tables does not support matching on fragments, the 'opt'
column is included in ruleset listing nevertheless. So
nft_ipv6_print_rule() has to fill that space up with blanks.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | iptables/nft-ipv6.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 5315aba6..fa5b8c89 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -240,6 +240,11 @@ static void nft_ipv6_print_rule(struct nftnl_rule *r, unsigned int num, print_rule_details(&cs, cs.jumpto, cs.fw6.ipv6.flags, cs.fw6.ipv6.invflags, cs.fw6.ipv6.proto, num, format); + if (format & FMT_OPTIONS) { + if (format & FMT_NOTABLE) + fputs("opt ", stdout); + fputs(" ", stdout); + } print_ifaces(cs.fw6.ipv6.iniface, cs.fw6.ipv6.outiface, cs.fw6.ipv6.invflags, format); print_ipv6_addr(&cs, format); |