diff options
author | laforge <laforge> | 2004-02-04 08:42:37 +0000 |
---|---|---|
committer | laforge <laforge> | 2004-02-04 08:42:37 +0000 |
commit | 1b76367d99844bf1bb5ef55bc155ce1119fc17ba (patch) | |
tree | 5e1fcac16f473619fa9c8596040e114e78facb6a | |
parent | 7cb41c01159be4f07af0ef8f9fe544b496cba005 (diff) |
fix '--icmp-type any' case
-rw-r--r-- | extensions/libipt_icmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c index 6c7b1c3..f61593e 100644 --- a/extensions/libipt_icmp.c +++ b/extensions/libipt_icmp.c @@ -273,8 +273,7 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) /* special hack for 'any' case */ if (icmp->type == 0xFF) { - print_icmptype(icmp->type, icmp->code[0], icmp->code[1], - icmp->invflags & IPT_ICMP_INV, 0); + printf("--icmp-type any "); } else { printf("--icmp-type %u", icmp->type); if (icmp->code[0] != 0 || icmp->code[1] != 0xFF) |