Re: How the get MAC Address of device in the network
Re: How the get MAC Address of device in the network
- Subject: Re: How the get MAC Address of device in the network
- From: Martin Bestmann <email@hidden>
- Date: Thu, 30 Oct 2003 11:03:57 +0100
Hi Rich,
why don't you email my your Berkeley Packet Filter sample.
Also I got the ARP table stuff going but we still have the following
problem.
Configuration: Mac OS 9.x, our router connected with DHCP
Problem: Mac Boots up and gets a DHCP lease but the ARP table is not
updated with the router information. I only get my own machine in the
ARP table.
Is there any way to get the arp table update with my router address?
Pinging the router doesn't do it.
Any other way to get the MAC Address of the router.
Thanks,
Martin
On 24.10.2003, at 18:17, Rich Kubota wrote:
At 5:08 PM +0200 10/24/03, Martin Bestmann wrote:
Hi,
I need to get the MAC address of a network device (not my own device)
from a Carbon CFM App (OpenTransport) on OS 9(!!). The device in
question is pingable.
Any idea how to do this. Due to the fact that Carbon apps can not use
OTStreams calls (OTStreamOpen) in a carbon app I can not read the ARP
table.
Another idea was to ping the device and get somehow access to the
full ethernet frame header. But I do not know how to do this.
Anyone any ideas?
Martin,
The only thing which comes to mind is to have the network device
report its ethernet address via some process which runs on that
system. Your idea to ping for the device will only work if the device
in question is on the local LAN. If this is the case, then you could
open a Berkeley Packet Filter socket layered atop all of the active
Ethernet interfaces and watch for the ping response. TCP dump uses a
BPF filter to capture packets.
If the device is on the other side of a router, you would see the
router's enet address in the source field of the response as opposed
to the ethernet address of the network device.
One other thought - I wonder if this info can be acquired thru SNMP.
I can send a BPF sample if you are interested.
--
Sincerely,
Rich Kubota
email@hidden
(408) 974-6212
------------------------------------------------------------------------
-----------------------
Martin Bestmann Netopia
Development GmbH
Phone: +49-9134-9942-0 Weingasse 26
Fax: +49-9134-997911 91077 Neunkirchen am
Brand
e-mail:email@hidden Germany
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.