My real purpose is to read driver-specific /proc file, e.g /proc/net/PRO_LAN_ADAPTERS/eth0.info for e1000 driver or /proc/net/sk98lin/eth1.info for sk98lin driver. To do that, i have to know what file read for a given interface. I'd prefer to use ethtool ioctls, but there are drivers that do not implement them.
Thanks.
Felix.
Philippe Biondi wrote:
On Mon, 24 Mar 2003, Felix Radensky wrote:
Hi, folks
What is the standard way to find correspondence between
device (e.g. eth2) and driver name (e.g. eepro100) in a
system where several drivers may be loaded ?
I assume you are speaking for user space scripts. I think the best way to find out what network your packets to ethx will go to is to check MAC addresses.
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html