cvs commit: src/sys/netinet tcp_syncache.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Aug 31 14:03:38 GMT 2005


On Wed, Aug 31, 2005 at 01:56:15PM +0000, Gleb Smirnoff wrote:
+> glebius     2005-08-31 13:56:15 UTC
+> 
+>   FreeBSD src repository
+> 
+>   Modified files:        (Branch: RELENG_6)
+>     sys/netinet          tcp_syncache.c 
+>   Log:
+>   MFC 1.76:
+>     - Refuse hashsize of 0, since it is invalid.
[...]
+> -	if (!powerof2(tcp_syncache.hashsize)) {
+> +	if (!powerof2(tcp_syncache.hashsize) || tcp_syncache.hashsize == 0) {

I ran into this as well. The problem here is powerof2() macro and the macro
should be fixed: 0 is not a power of 2.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050831/14690118/attachment.bin


More information about the cvs-src mailing list