sys/class/net/ethx/type What is it?
To get info of all etherhet adapters I am using C as well as info from various files in /sys/class/net/ethx directory.
There is a file name 'type' and has a number in it. Is it physical medium type of ethernet adapter? If yes, then how do I get string representation of that number? If no, then How do I determine physical medium type of ethernet adapter. For example 802.3, 802.5 etc.
I don't know the exact answer but I'd probably try reading up on sysfs, maybe this link will help: http://www.kernel.org/pub/linux/kern...005/mochel.pdf
|All times are GMT -5. The time now is 12:31 AM.|