Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 07-11-2005, 10:56 PM   #1
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,
Old 07-12-2005, 03:26 PM   #2
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


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 02:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration