public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Ethernet Link status question
@ 2007-09-25 13:37 Emmanuel Coullien
  2007-09-25 13:45 ` Juergen Lambrecht
  0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Coullien @ 2007-09-25 13:37 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Ethernet Link status question
  2007-09-25 13:37 [ECOS] Ethernet Link status question Emmanuel Coullien
@ 2007-09-25 13:45 ` Juergen Lambrecht
  0 siblings, 0 replies; 2+ messages in thread
From: Juergen Lambrecht @ 2007-09-25 13:45 UTC (permalink / raw)
  To: Emmanuel Coullien; +Cc: ecos-discuss

If your network driver supports the ETH_DRV_GET_IF_STATS option of the 
control function, then you can poll the control function. See 
cyg/io/eth/eth_drv_stats.h for the struct ether_drv_stats.operational.

See http://ecos.sourceware.org/docs-latest/ref/io-eth-drv-api-funcs.html.

Emmanuel Coullien wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-25 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-25 13:37 [ECOS] Ethernet Link status question Emmanuel Coullien
2007-09-25 13:45 ` Juergen Lambrecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).