[PATCH] iptables-translate: Printing the table name before chain name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 iptables/xtables-translate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c
index 44162a2..07cc98c 100644
--- a/iptables/xtables-translate.c
+++ b/iptables/xtables-translate.c
@@ -296,7 +296,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;
 }

-- 
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux