timeout.c in bsd_tcpip

Andrew Lunn andrew.lunn@ascom.ch
Mon May 12 11:05:00 GMT 2003


On Thu, May 08, 2003 at 11:42:15AM +0900, Motoya Kurotsu wrote:
> Hi all;
> 
> The attachment is the patch to fix the problem that some timers 
> such as pffasttimo, pfslowtimo, arptimer, etc. don't work 
> in freebsd net stack. This problem can be observed by enabling 
> TIMEOUT_DEBUG in timeout.c.

I committed this patch, with a modification to the Changelog:

     Andrew


3-05-12  Motoya Kurotsu  <kurotsu@allied-telesis.co.jp>

	* src/ecos/timeout.c (do_timeout): The head of the linked list of
	timers is timeout, not _timeout.
	* src/ecos/timeout.c (timeout): Linear search the array for empty 
	entries and don't walk it like a linked list, because it is not.
	* src/ecos/timeout.c (untimeout): Linear search is faster since 
	there are many entries in the linked list which are not in the 
	array.



More information about the Ecos-patches mailing list