Monobono
Monobono

Reputation: 780

iPhone and the arp table

I want to get the mac addresses for all hosts on a given subnet. So far I force an arp table update by pinging all ips involved. After that I query the arp table and everything is fine.

The problem is how to improve the update speed. Pinging 65000 addresses takes about 15 minutes on an iPhone 3GS. Even if I do not wait if a response is happening. Thats way to long. It may be that there is a bug in my ping code that is slowing things down, but I could not find any so far.

My question is:
Is there a faster network operation that triggers an arp table update?

Upvotes: 0

Views: 1396

Answers (2)

dlamblin
dlamblin

Reputation: 45341

Can't you do something with multicast on the current subnet, preferably something that generates ACKnowlegements so that if you listen on the interface, you'll discover all the mac addresses.

Upvotes: 0

ChrisW
ChrisW

Reputation: 56113

My guess is that the fastest way might be to query an existing ARP table, e.g. the table on the subnet's DHCP controller, using e.g. SNMP.

Upvotes: 1

Related Questions