On Mon, 24 Mar 2003, Felix Radensky wrote: > Hi, > > 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. Ok. Well if you want to guess it without assuming the driver is complete for that, a way to do that could be to still use MAC addresses - either you know them all, it's easy to make them correspond with the right driver - or you can use the first 3 numbers and match them in a manufacturer file, like the one that comes with ethereal (/usr/share/ethereal/manuf) - or you can do sth between the two : make a correspondance between the set of manufacturers of the NICs you own and the modules name. It's not a good solution, but, at least, it will work with minimalistic drivers. -- Philippe Biondi <biondi@ cartel-securite.fr> Cartel Sécurité Security Consultant/R&D http://www.cartel-securite.fr Phone: +33 1 44 06 97 94 Fax: +33 1 44 06 97 99 PGP KeyID:3D9A43E2 FingerPrint:C40A772533730E39330DC0985EE8FF5F3D9A43E2 - : 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