This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: timeout.c in bsd_tcpip


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]