LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-11-2005, 10:56 PM   #1
longtongfish
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
Question How to find MAC address of a specified IP address ?


Hi all,
I want to develop a program that generate IP packet by using PF_PACKET raw socket. I have to build the frame myself. The problem is I know the IP addresses to put to IP header, but I don't know the corresponding MAC address of the destination IP address to put to Ethernet header. I know the system uses ARP to find out these things, but I don't know how to utilize these functions in my program.
Thank you very much,
longtongfish.
 
Old 07-12-2005, 03:26 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,488

Rep: Reputation: 67
what programming language are you using to acomplish this?

socket programming howto if your using C or C++ might be helpfull
 
  


Reply


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
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
How to find IP address of a machine if I know their MAC Address dysenteryduke Linux - Networking 13 09-12-2005 10:21 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
how to find IP if I have MAC address bojo Linux - Networking 3 11-29-2003 10:10 PM
how to find out my MAC address gexiaofei Linux - Software 9 08-18-2003 12:08 PM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration