From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3675 invoked by alias); 27 Sep 2007 11:17:02 -0000 Received: (qmail 3657 invoked by uid 22791); 27 Sep 2007 11:17:01 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 11:16:58 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 66F571950195; Thu, 27 Sep 2007 05:16:56 -0600 (MDT) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id C5FFB19500DD; Thu, 27 Sep 2007 05:16:53 -0600 (MDT) Message-ID: <46FB9125.9080909@mlbassoc.com> Date: Thu, 27 Sep 2007 11:17:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Emmanuel Coullien CC: ecos-discuss@ecos.sourceware.org References: <3fae21000709270046v974f8d5ne0514658da35e542@mail.gmail.com> In-Reply-To: <3fae21000709270046v974f8d5ne0514658da35e542@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Ethernet Link status X-SW-Source: 2007-09/txt/msg00141.txt.bz2 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