What I would do is get the source code for ifconfig and try to determine what it did to get that information I am pretty sure its just a simple ioctl.
Just looked (it's in the net-tools package on Fedora). Sean's solution is what ifconfig uses, assuming you know the name of the device. To get a list of names, ifconfig reads /proc/net/dev.
_______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/redhat-devel-list