diff options
author | ru <ru@FreeBSD.org> | 2001-08-06 13:03:38 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-08-06 13:03:38 +0000 |
commit | 77328d8cba34772dcb11db30551f82cf63f79946 (patch) | |
tree | 68f4d35aa7c204bfb0b4a684bea6d1b07abba1a7 /sbin | |
parent | 7cf10de7aa53e1d761dc41526d6679113575f69c (diff) | |
download | FreeBSD-src-77328d8cba34772dcb11db30551f82cf63f79946.zip FreeBSD-src-77328d8cba34772dcb11db30551f82cf63f79946.tar.gz |
Fixed one more breakage introduced in 1.103 cleanup.
ICMP types were reported incorrectly:
# ipfw add allow icmp from any to any icmptypes 0,8
PR: bin/29185
Submitted by: Mike Durian <durian@boogie.com>
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipfw/ipfw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index 1f3d434..33ecc4c 100644 --- a/sbin/ipfw/ipfw.c +++ b/sbin/ipfw/ipfw.c @@ -545,7 +545,8 @@ show_ipfw(struct ip_fw *chain) for (i = 0; i < IP_FW_ICMPTYPES_DIM; ++i) for (j = 0; j < sizeof(unsigned) * 8; ++j) if (chain->fw_uar.fw_icmptypes[i] & (1 << j)) { - printf("%c%d", first ? ' ' : ',', i); + printf("%c%d", first ? ' ' : ',', + i * sizeof(unsigned) * 8 + j); first = 0; } } |