I have a board. This board have two interfaces one
eth0 and other
eth0 port is connected with network. and
usb0 port is connected to another device
With the help of bridge-utils, I am able to set up a software
bridge(br0) over the board with
usb0 as its elements.
Now my problem is if
usb0 side is down or not running, then is there any way to know that usb0 side is down or not working or not running?
I tried using
SIOCGIFCONF ioctl command and
SIOCGIFFLAGS(IFF_UP and IFF_RUNNING) to know whether any interface is down or not running. But with
SIOCGIFCONF I am getting information about only one interface br0 and not about
br0 is up and working and running.
Any suggestions would be appreciated.