On Wed, Sep 13, 2000 at 11:41:58AM -0400, Marc Schneider wrote:
> I am trying to get a list of the MAC address for all ethernet interfaces
> in a machine. I was doing this using ioctl SIOCGIFCONF and SIOCGIFHWADDR
> calls, but this seems to only work for interfaces which have an IP
> address configured for them. I would like to be able to obtain this
> information for all interfaces, any ideas on how to do this?
Parse /proc/net/dev and call SIOCGIFHWADDR for each device.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:29 EST