This is the mail archive of the
mailing list for the eCos project.
Re: FWD: Re: [ECOS] Problems with init_all_network_interfaces
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Cc: eCos Patches <ecos-patches at sources dot redhat dot com>
- Date: 11 Jul 2003 13:51:59 +0100
- Subject: Re: FWD: Re: [ECOS] Problems with init_all_network_interfaces
- References: <20030711093202.GQ2351@biferten.ma.tech.ascom.ch>
Andrew Lunn <firstname.lastname@example.org> writes:
> > Date: Fri, 11 Jul 2003 11:10:48 +0200
> > From: Eric Doenges <Eric.Doenges@DynaPel.de>
> > To: email@example.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