Hi to all,please help me.
How to detect network cable plug/unplug on p1010 board with QorIQ SDK1.9?
I tried "ifconfig" ,but always log running both plug into and plug out the network cable!
I tried "cat /sys/class/net/carrier" ,the log is no change when plug into and plug out the network cable!
I tested use ioctl(fd,SIOCGIFFLAGS,&ifreq) , it 's right only exec command "ifconfig eth0 down /up", but always "RUNNING" both plug into/out the network cable!