mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
8 -> NBBy
This commit is contained in:
parent
f8075bf9b3
commit
7558f6aad9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49194
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user