Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-29-2006, 05:39 AM   #1
Registered: Mar 2006
Posts: 47

Rep: Reputation: 15
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...
Old 04-29-2006, 09:01 AM   #2
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
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.
Old 04-29-2006, 12:21 PM   #3
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
thanks for the info....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 06:02 AM
Can't active Library routines CRC32 in fedora 4 smashhead Linux - Wireless Networking 0 08-07-2005 01:20 AM
keyboard routines using ncurses deveraux83 Programming 0 03-02-2005 07:41 PM
Disabling ARP probes after receiving an ARP request AltecLansingMan Linux - Networking 1 03-30-2004 02:25 PM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 05:14 AM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration