This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: timeout.c in bsd_tcpip
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Motoya Kurotsu <kurotsu at allied-telesis dot co dot jp>
- Cc: ecos-patches at sources dot redhat dot com
- Date: Mon, 12 May 2003 13:05:31 +0200
- Subject: Re: timeout.c in bsd_tcpip
- References: <20030508114215.A6119@white.office1>
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.