Re: function to get mac address in kernel

From: Sarada Seshadri (
Date: Mon May 28 2001 - 00:18:08 EST

> What is the way to read the /proc filesystem from the kernel ?
> I cannot "ping" the machine since i am writing this code in the kernel. It
> should just look for the mac address of an ethernet device and return it.

A user space program could get this info by an `ioctl (SIOCGIFHWADDR).' If
you look at the corresponding kernel code you could find a clue.


To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to

This archive was generated by hypermail 2b29 : Thu May 31 2001 - 21:00:57 EST