This is the mail archive of the ecos-discuss@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: fileio tests fail in a catch 22 situation ?!?


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


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