LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ARP routines.... (https://www.linuxquestions.org/questions/linux-networking-3/arp-routines-439944/)

shrishailnk 04-29-2006 04:39 AM

ARP routines....
 
hello all ,

is there a routine in in arp , which takes ip as
argument and returns the mac for that perticular ip
if present in the arp cache....?????

if the above kind of routine is not present in the arp , is it possible to write one.....

if possible how to go abt it..?

I have little knowledge of the structures used in the arp... ( like neighbour , neigh_table)....

Thanks in advance...
shri

Draygo 04-29-2006 08:01 AM

According to the man pages an arp -a <hostname> will give you the mac of the hostname if it is in your arp cache. To write an arp entry arp -s <hostname> hw_addr <mac address> will set a mapping.

shrishailnk 04-29-2006 11:21 AM

thanks for the info....


All times are GMT -5. The time now is 07:19 AM.