diff options
-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; } } |