From cea9f71f5618250a38acb21c31fbbf93a752f7d4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 9 Dec 2008 15:06:20 +0100 Subject: iptables-save: output ! in position according to manpage Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- extensions/libipt_addrtype.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/libipt_addrtype.c') diff --git a/extensions/libipt_addrtype.c b/extensions/libipt_addrtype.c index 3c83a012..dc43a3f5 100644 --- a/extensions/libipt_addrtype.c +++ b/extensions/libipt_addrtype.c @@ -266,15 +266,15 @@ static void addrtype_save_v0(const void *ip, const struct xt_entry_match *match) (struct ipt_addrtype_info *) match->data; if (info->source) { - printf("--src-type "); if (info->invert_source) printf("! "); + printf("--src-type "); print_types(info->source); } if (info->dest) { - printf("--dst-type "); if (info->invert_dest) printf("! "); + printf("--dst-type "); print_types(info->dest); } } @@ -285,15 +285,15 @@ static void addrtype_save_v1(const void *ip, const struct xt_entry_match *match) (struct ipt_addrtype_info_v1 *) match->data; if (info->source) { - printf("--src-type "); if (info->flags & IPT_ADDRTYPE_INVERT_SOURCE) printf("! "); + printf("--src-type "); print_types(info->source); } if (info->dest) { - printf("--dst-type "); if (info->flags & IPT_ADDRTYPE_INVERT_DEST) printf("! "); + printf("--dst-type "); print_types(info->dest); } if (info->flags & IPT_ADDRTYPE_LIMIT_IFACE_IN) { -- cgit v1.2.3