diff options
author | Harald Welte <laforge@gnumonks.org> | 2004-02-04 08:42:37 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2004-02-04 08:42:37 +0000 |
commit | d2979574652b9c1a49bd25c0e927912cab0a3ac5 (patch) | |
tree | 5e1fcac16f473619fa9c8596040e114e78facb6a | |
parent | 320443dbef678a357f7c10406e8c297d6ab3ddd9 (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 6c7b1c38..f61593e1 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) |