[ECOS] Ethernet Link status question

Juergen Lambrecht J.Lambrecht@televic.com
Tue Sep 25 13:45:00 GMT 2007

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

More information about the Ecos-discuss mailing list