Hi
I'm using RTNet-0.9.13 with RTAI-3.9.2; my embedded pc has two e1000e 
ethernet ports (so rt_e1000e is employed).

The first port is configured as standard linux (eth1), second port gets 
configured to rtnet (firstly unbinded by linux driver, then configured 
as rteth0).  So far I'm working correctly in rtnet side; I'm also using 
rtcap and configured rteth0 on linux side and tcpdump works great to 
sniff realtime packets.

Now I want to detect if carrier is lost on rtnet port; on linux managed 
ethernet port looking at /sys/class/net/eth1/carrier I can detect link 
loss, however in /sys/class/net/rteth0/carrier I always get link active 
even on cable disconnected.

Digging into code I can see carrier detected and managed in 
rtdev->link_state, but I can't find the link to the sys filesystem or an 
ioctl call to detect link status.

Is possible to detect link status on rt_e1000e driver?
If not, can someone point to some code to implement this?

Thanks,
Elker

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to