Re: Getting MAC Addresses
Re: Getting MAC Addresses
- Subject: Re: Getting MAC Addresses
- From: Josh Graessley <email@hidden>
- Date: Thu, 4 Oct 2007 15:54:20 -0700
A better approach would be to use getifaddrs.
getifaddrs won't satisfy your requirement of finding BlueTooth MAC
addresses. BlueTooth is not a network interface, so it doesn't show up
in the getifaddrs list. It's possible a PAN module may create a
network interface for the BlueTooth hardware and list the MAC address,
but don't count on that.
You may need to poke through the IORegistry to get the BlueTooth MAC
address. Why anyone would want anything to do with BlueTooth is beyond
me.
-josh
On Oct 4, 2007, at 3:49 PM, Mathias Sulser wrote:
You could do 'ifconfig | grep ether' on the shell..
Mathias
On Oct 4, 2007, at 4:36 PM, David Burgun wrote:
Hi,
How can I get the MAC addresses of all appropriate devices on a
system? e.g. if a system has Ethernet and BlueTooth, I want the MAC
address of both devices.
Thanks in Advance
All the Best
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden