LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-29-2006, 04:39 AM   #1
shrishailnk
Member
 
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...
shri
 
Old 04-29-2006, 08:01 AM   #2
Draygo
Member
 
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, 11:21 AM   #3
shrishailnk
Member
 
Registered: Mar 2006
Posts: 47

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


Reply



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 05:02 AM
Can't active Library routines CRC32 in fedora 4 smashhead Linux - Wireless Networking 0 08-07-2005 12:20 AM
keyboard routines using ncurses deveraux83 Programming 0 03-02-2005 06:41 PM
Disabling ARP probes after receiving an ARP request AltecLansingMan Linux - Networking 1 03-30-2004 01:25 PM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:41 PM.

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