No need to print "nft" in function do_command_xlate, if the function is called from iptables-restore-translate command. Signed-off-by: Guruswamy Basavaiah <guru2018@xxxxxxxxx> --- iptables/xtables-translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c index 0b2c0bf..1c64178 100644 --- a/iptables/xtables-translate.c +++ b/iptables/xtables-translate.c @@ -193,7 +193,9 @@ static int do_command_xlate(struct nft_handle *h, int argc, char *argv[], do_parse(h, argc, argv, &p, &cs, &args); - printf("nft "); + if (!restore) { + printf("nft "); + } switch (p.command) { case CMD_APPEND: ret = 1; -- 2.5.5 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html