DragonFly commits List (threaded) for 2003-11
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/netinet ip_demux.c
dillon 2003/11/10 10:32:59 PST
DragonFly src repository
Modified files:
sys/netinet ip_demux.c
Log:
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.
Revision Changes Path
1.2 +3 -2 src/sys/netinet/ip_demux.c
http://www.dragonflybsd.org/cvsweb/src/sys/netinet/ip_demux.c.diff?r1=1.1&r2=1.2&f=h
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]