reference for object types for /sys/class/net objects?
Basically my system has two interfaces which show at:
/sys/class/net/eth0/type shows "1" whereas /sys/class/net/lo/type shows 772
my question is two fold: Is there a general reference for what these map to? Basically I'm trying to do is programmatically filter out non-loopback non-virtual network interfaces on the system.
So giving me a general reference, or telling me what the type numbers for all physical interfaces, or telling me what the type numbers are for all virtual interfaces would tell me what I need to know. I've just looked for an answer to any of the above three and couldn't find anything.