• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How the get MAC Address of device in the network
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How the get MAC Address of device in the network


  • Subject: Re: How the get MAC Address of device in the network
  • From: Rich Kubota <email@hidden>
  • Date: Fri, 24 Oct 2003 09:17:05 -0700

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
_______________________________________________
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.

  • Follow-Ups:
    • Re: How the get MAC Address of device in the network
      • From: Martin Bestmann <email@hidden>
References: 
 >How the get MAC Address of device in the network (From: Martin Bestmann <email@hidden>)

  • Prev by Date: Re: Setting Network Preferences Programatically
  • Next by Date: Re: MoreSCCreateProxiesEntity
  • Previous by thread: How the get MAC Address of device in the network
  • Next by thread: Re: How the get MAC Address of device in the network
  • Index(es):
    • Date
    • Thread