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: 20 February 2018, 1:38 PM EST
Location: Saskatchewan
Posts: 22,613
Thanks: 1,170
Thanked 4,301 Times in 3,968 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..