Unix/Linux Go Back    



SIOCGARP to display the entire ARP table.

Programming




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 Unix and Linux 08-25-2010   -   Original Discussion by semash!
Corona688's Unix or Linux Image
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 13 December 2017, 10:16 AM EST
Location: Saskatchewan
Posts: 22,546
Thanks: 1,159
Thanked 4,286 Times in 3,955 Posts
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 01:49 PM..