This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Ethernet Link status
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Emmanuel Coullien <coullien dot emmanuel at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 27 Sep 2007 05:16:53 -0600
- Subject: Re: [ECOS] Ethernet Link status
- References: <3fae21000709270046v974f8d5ne0514658da35e542@mail.gmail.com>
Emmanuel Coullien wrote:
> Hi,
>
> I tryed to know what was the Ethernet link status from the application
> level using ioctl but I think it miss some code in the BSD_TCPIP
> package to pass over this layer.
> In fact, it misses the case for SIOCGSTATUS in the BSD_TCPIP layer, so
> I had to add the lines below in the if.c file and now we can get the
> link status.
> case SIOCGIFSTATUS:
> case SIOCGIFSTATS:
> case SIOCGIFSTATSUD:
> if (ifp->if_ioctl == 0)
> {
> return (EOPNOTSUPP);
> }
> return ((*ifp->if_ioctl)(ifp, cmd, data));
>
> What do you think about these modifications. Is it possible to patch
> it in eCos ?
>
Thanks. I've applied a similar, but equivalent, change.
In the future, if you find a change that you think needs to
be made, send a proper patch, along with a ChangeLog entry,
to ecos-patches@ecos.sourceware.org. We'll discuss and
consider the change, and apply as required.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss