]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
fix '--icmp-type any' case
authorHarald Welte <laforge@gnumonks.org>
Wed, 4 Feb 2004 08:42:37 +0000 (08:42 +0000)
committerHarald Welte <laforge@gnumonks.org>
Wed, 4 Feb 2004 08:42:37 +0000 (08:42 +0000)
extensions/libipt_icmp.c

index 6c7b1c382a44fed61a351469fce952a2b0bc0b70..f61593e1609fc24aec359af1524e3575a7d967ec 100644 (file)
@@ -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)