-   Linux - Newbie (
-   -   sys/class/net/ethx/type What is it? (

tank junior 05-03-2011 05:34 AM

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.


kbp 05-03-2011 09:23 PM

I don't know the exact answer but I'd probably try reading up on sysfs, maybe this link will help:


All times are GMT -5. The time now is 02:13 AM.