summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-07-28 22:27:27 +0000
committergreen <green@FreeBSD.org>1999-07-28 22:27:27 +0000
commit0d84c8efb0a2e4b063d0c818f89eb17ee4bc6e47 (patch)
treedb9d9e2aa0f8792727f7ad6ab4fff2724c798c43
parenta8dcdb7b2ff100a54f4e47b0df6af5601e497e92 (diff)
downloadFreeBSD-src-0d84c8efb0a2e4b063d0c818f89eb17ee4bc6e47.zip
FreeBSD-src-0d84c8efb0a2e4b063d0c818f89eb17ee4bc6e47.tar.gz
8 -> NBBy
-rw-r--r--sys/netinet/ip_fw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index 49c7110..a9e8288 100644
--- a/sys/netinet/ip_fw.c
+++ b/sys/netinet/ip_fw.c
@@ -12,7 +12,7 @@
*
* This software is provided ``AS IS'' without any warranties of any kind.
*
- * $Id: ip_fw.c,v 1.113 1999/06/11 11:27:35 ru Exp $
+ * $Id: ip_fw.c,v 1.114 1999/06/19 18:43:28 green Exp $
*/
/*
@@ -184,8 +184,8 @@ icmptype_match(struct icmp *icmp, struct ip_fw *f)
/* check for matching type in the bitmap */
if (type < IP_FW_ICMPTYPES_MAX &&
- (f->fw_uar.fw_icmptypes[type / (sizeof(unsigned) * 8)] &
- (1U << (type % (8 * sizeof(unsigned))))))
+ (f->fw_uar.fw_icmptypes[type / (sizeof(unsigned) * NBBY)] &
+ (1U << (type % (sizeof(unsigned) * NBBY)))))
return(1);
return(0); /* no match */
OpenPOWER on IntegriCloud