This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ethernet Link status question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]