Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: The Source of All Evil <source@NetBSD.ORG>
List: source-changes
Date: 05/06/1998 18:40:01
thorpej
Wed May  6 18:30:08 PDT 1998
Update of /cvsroot/src/sys/sys
In directory nb00:/tmp/cvs-serv13106

Modified Files:
	protosw.h 
Log Message:
Add some more timer manipulation functions (disarm, isarmed), and make
isexpired check isarmed.


thorpej
Wed May  6 18:30:46 PDT 1998
Update of /cvsroot/src/sys/netinet
In directory nb00:/tmp/cvs-serv13141

Modified Files:
	tcp_timer.c tcp_timer.h 
Log Message:
Define all TCP timers in terms of PRT timers.


thorpej
Wed May  6 18:37:28 PDT 1998
Update of /cvsroot/src/sys/netinet
In directory nb00:/tmp/cvs-serv13166

Modified Files:
	in_proto.c tcp_input.c tcp_subr.c tcp_var.h 
Log Message:
Rework the syn cache code somewhat:
- Don't use home-grown queue manipulation.  Use <sys/queue.h> instead.  The
  data structures are a little larger, but we are otherwise wasting the
  memory chunk anyway (we're already a 64-byte malloc bucket).
- Fix a bug in the cache-is-full case: if the oldest element removed from
  the first non-empty bucket was the only element in the bucket, the
  bucket wouldn't be removed from the bucket cache, causing queue corruption
  later.
- Optimize the syn cache timers by using PRT timers rather than home-grown
  decrement-and-propagate timers.

This code is now a fair bit smaller, and significantly easier to read
and understand.