diff options
author | Guruswamy Basavaiah <guru2018@gmail.com> | 2016-04-08 01:08:14 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-04-27 19:16:58 +0200 |
commit | 75a1d2eb25cdbf12042cad97eee45fec167e390c (patch) | |
tree | bd87a57c9c03679e57951d9ebf59eb136c9c984d | |
parent | d7b813f0a097f81c5781a6a6f08c1d41a4affead (diff) |
iptables-translate: Printing the table name before chain name.
Command ./iptables-restore-translate, was printing
table name before the chain name for user added chains.
This is breaking ./nft -f command.
Before fix, output of "./iptables-restore-translate"
add chain ip OUTPUT_direct raw
After fix:
add chain ip raw OUTPUT_direct
Signed-off-by: Guruswamy Basavaiah <guru2018@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | iptables/xtables-translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c index 354357c5..0b2c0bf5 100644 --- a/iptables/xtables-translate.c +++ b/iptables/xtables-translate.c @@ -297,7 +297,7 @@ static const struct option options[] = { static int xlate_chain_user_add(struct nft_handle *h, const char *chain, const char *table) { - printf("add chain %s %s %s\n", family2str[h->family], chain, table); + printf("add chain %s %s %s\n", family2str[h->family], table, chain); return 0; } |