This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: fileio tests fail in a catch 22 situation ?!?
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: robin_singh at gmx dot net
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 28 May 2003 18:09:56 +0100
- Subject: Re: [ECOS] fileio tests fail in a catch 22 situation ?!?
- References: <18284.1053798131@www59.gmx.net>
robin_singh@gmx.net writes:
> Greetings.
>
> The io/fileio/socket.c and io/fileio/select.c tests are failing on my
> architecture in a
> mysterious manner.
>
> I am using the FreeBSD stack and eCos v2.0 (latest)
>
[snip problem description]
>
> If this is the case, then the eCos tests supplied are incorrectly
> associating the
> socket with the loopback address 127.0.0.1 but should in fact use INADDR_ANY
>
> instead (this works for me!)
>
Indeed. I suspect that this is a difference between the way the
loopback interface is brought up in the OpenBSD stack and the FreeBSD
stack. Probably something to do with the way routing tables or
interface addresses are set up.
I would expect that the FreeBSD stack is doing the right thing and
that the tests should be changed to bind to INADDR_ANY and then
connect to 127.0.0.1.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss