Unix/Linux Go Back    

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 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: 18 May 2018, 2:59 PM EDT
Location: Saskatchewan
Posts: 22,673
Thanks: 1,177
Thanked 4,321 Times in 3,984 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 12:49 PM..