What happens when you mod a negative number? Mask off the hash value before
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 10 Nov 2003 18:32:59 +0000 (18:32 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 10 Nov 2003 18:32:59 +0000 (18:32 +0000)
commit78cfa8835ac92cc314af43ea31509746c7129a55
treef40a79b5c8bd99e3dac43c3f19c2eee7123b8688
parent01dce7bb15637f0a82b0ff63e06ddbc3d0952be7
What happens when you mod a negative number?  Mask off the hash value before
modding so the returned value doesn't overflow the thread array when hashing
packets.

Also disable the multi-threaded networking by default.  Setting
net.inet.ip.mthread_enable to 1 will enable it.
sys/netinet/ip_demux.c