From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25919 invoked by alias); 25 Sep 2007 13:37:48 -0000 Received: (qmail 25909 invoked by uid 22791); 25 Sep 2007 13:37:47 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.173) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Sep 2007 13:37:42 +0000 Received: by ug-out-1314.google.com with SMTP id 23so944955ugr for ; Tue, 25 Sep 2007 06:37:39 -0700 (PDT) Received: by 10.78.123.4 with SMTP id v4mr2235413huc.1190727459152; Tue, 25 Sep 2007 06:37:39 -0700 (PDT) Received: by 10.78.151.9 with HTTP; Tue, 25 Sep 2007 06:37:39 -0700 (PDT) Message-ID: <3fae21000709250637y28a6d067gf0dec5c844ee2f7d@mail.gmail.com> Date: Tue, 25 Sep 2007 13:37: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 question X-SW-Source: 2007-09/txt/msg00128.txt.bz2 Hi, I try to know what is the Ethernet link status from the application level. I just would like to write a function like this : int eth_link_state ("eth0"); which return 1 if the Ethernet is up. I want to respect the different ecos layer to do this but I didn't find any answer in the ecos-discuss history. Do someone have an idea how to do this properly ? Thank you for your response. 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