LinuxQuestions.org
Help answer threads with 0 replies.
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: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:25 AM.

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