cvs commit: src/sys/netinet ip_demux.c

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Nov 10 10:33:31 PST 2003


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





More information about the Commits mailing list