Home Man
Today's Posts

SIOCGARP to display the entire ARP table.


Kindly Note - This is a Single User Post by Forum Member Corona688 Regarding:
SIOCGARP to display the entire ARP table..
Please Follow The Primary Link Above to View the Full Discussion.

Old 08-25-2010
The "-a" flag in Linux just changes the output format. I think you're thinking of the windows arp command, where the "/a" flag displays the whole table.

In any case, according to the strace command, linux ARP doesn't use ioctls to get the ARP table -- it slurps it in from the special file /proc/net/arp all in one big read. Try cat /proc/net/arp.

Last edited by Corona688; 08-25-2010 at 12:49 PM..