Re: Getting the ethernet address
Re: Getting the ethernet address
- Subject: Re: Getting the ethernet address
- From: Josh Graessley <email@hidden>
- Date: Tue, 31 May 2005 15:43:04 -0700
The hardware address of the packet is not available to the
application. Why do you want to do this?
You can look up the MAC address for various IP address in the routing
table. You can look at the source for the arp command to see how to
do this.
You can use getifaddrs <x-man-page://3/getifaddrs> to get the MAC
address for the various interfaces on the local machine.
-josh
On May 31, 2005, at 3:28 PM, Alex Kettner wrote:
Hi,
I currently have some code running that sends out a UPD broadcast
to a specific port and waits for responses back. I can get the IP
address of the respondents but I would also like to get the
ethernet address of the respondents as well. How would I go about
accomplishing this? A corollary question, how can I get the
ethernet address of the computer on which my program is running?
Thank you,
Alex Kettner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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