aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>1999-07-28 22:27:27 +0000
committerBrian Feldman <green@FreeBSD.org>1999-07-28 22:27:27 +0000
commit7558f6aad9132f231a62b6bf2bb57f082dc0a57d (patch)
tree8504569411248ab00aad8478737a8811e58eb841
parentf8075bf9b3a8ed30501ec4a8ace0a8bb725870c8 (diff)
Notes
-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 49c71102ae99a..a9e82886f2ba6 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 */