Re: function to get mac address in kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> 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.

-Sarada

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux