Andy Angrick wrote:
> Does anyone know of a more elegant way to retrieve the IP address and MAC
> address of a network adapter other than parsing the output from ifconfig. Is
> there a proc file where you can get this info or some other place?
>
> -Andy
>
"strace ifconfig" Shows that ifconfig uses ioctl on a socket to get the
information you want.
"man ioctl_list" list some ioctl calls and points you to where you can find
them in the source.
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.