This is the mail archive of the 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: FWD: Re: [ECOS] Problems with init_all_network_interfaces

Andrew Lunn <> writes:

> > Date: Fri, 11 Jul 2003 11:10:48 +0200
> > From: Eric Doenges <>
> > To:
> > 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     The eCos and RedBoot experts

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