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 |
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.
|
thanks for the info....
|
All times are GMT -5. The time now is 07:19 AM. |