FWD: Re: [ECOS] Problems with init_all_network_interfaces
Nick Garnett
nickg@ecoscentric.com
Fri Jul 11 14:32:00 GMT 2003
Andrew Lunn <andrew.lunn@ascom.ch> writes:
> > Date: Fri, 11 Jul 2003 11:10:48 +0200
> > From: Eric Doenges <Eric.Doenges@DynaPel.de>
> > To: ecos-discuss@sources.redhat.com
> > Subject: Re: [ECOS] Problems with init_all_network_interfaces
> >
> > I've managed to figure out what is going wrong here -- I have several
> > configurations of eCos I'm working on, and I specified the wrong
> > path, so the wrong 'extras.o' (without the FreeBSD stack) got linked in.
> > Due to the way this is done with Equator's tools, it did link with the
> > correct libtarget, making this error difficult to detect.
> >
> > The crash was then caused by the function 'socket' in
> > io/fileio/current/src/socket.cxx, which returns an invalid cyg_file
> > instead of an error when no networking stack exists (nstab is empty).
>
>
> This patch should solve this problem. socket will return EINVAL.
Actually, I think it would be better to return EPROTONOSUPPORT, which
is what you would get if there were entries in the table but none of
them supported the protocol requested.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
More information about the Ecos-patches
mailing list