From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22988 invoked by alias); 27 Sep 2007 07:46:29 -0000 Received: (qmail 22975 invoked by uid 22791); 27 Sep 2007 07:46:28 -0000 X-Spam-Check-By: sourceware.org Received: from mu-out-0910.google.com (HELO mu-out-0910.google.com) (209.85.134.191) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 07:46:24 +0000 Received: by mu-out-0910.google.com with SMTP id w1so2980556mue for ; Thu, 27 Sep 2007 00:46:21 -0700 (PDT) Received: by 10.78.147.6 with SMTP id u6mr1437491hud.1190879180997; Thu, 27 Sep 2007 00:46:20 -0700 (PDT) Received: by 10.78.151.9 with HTTP; Thu, 27 Sep 2007 00:46:19 -0700 (PDT) Message-ID: <3fae21000709270046v974f8d5ne0514658da35e542@mail.gmail.com> Date: Thu, 27 Sep 2007 07:46:00 -0000 From: "Emmanuel Coullien" To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: [ECOS] Ethernet Link status X-SW-Source: 2007-09/txt/msg00139.txt.bz2 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 ? -- Emmanuel Coullien -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss