Re: How to get the Mac address of a host on LAN by its IP on MAC-OS-X
Re: How to get the Mac address of a host on LAN by its IP on MAC-OS-X
- Subject: Re: How to get the Mac address of a host on LAN by its IP on MAC-OS-X
- From: Quinn <email@hidden>
- Date: Fri, 26 Oct 2007 11:11:53 +0100
At 19:45 -0700 25/10/07, Kan Cheng wrote:
Thanks a lot for your help! As you suggested, I wrote the equivalent
code in C to ping the host and then read the arp cache and it worked
fine.
Cool.
However, this method is not that straightforward I think -- On
windows and Linux, we can all easily construct a socket with ARP
protocol to send a ARP packet and then get the result, but is there
any way to make it done in a similar way on Mac? I mean what's the
standard programming model to send a ARP packet on Mac?
AFAIK there is none. Traditional BSD-based sockets implementations
simply don't provide API-level access to the ARP stack. Hence my bug
report.
BTW, how can I access the URI< rdar://problem/5554400 > ? Someone
told me that only you Apple Staffs can access it internally...
If /you/ file the bug, you can check its status using the bug
reporter web page.
<http://developer.apple.com/bugreporter/>
If someone else files a bug, you can't look up its status. I post
the bug numbers so that you have an official hook on which to hang
this issue. It makes it easy for Apple to provide a coordinated
response to your problems. I post the bug numbers as URLs purely for
my own convenience.
One hackaround for this is to file the bug yourself. The will get
duplicated to the my bug report but, at that point, you can ping the
kind folks at DevBugs <email@hidden> for status updates.
However, it's a very manual process.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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