LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to find MAC address of a specified IP address ? (https://www.linuxquestions.org/questions/programming-9/how-to-find-mac-address-of-a-specified-ip-address-342326/)

longtongfish 07-11-2005 10:56 PM

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.

exvor 07-12-2005 03:26 PM

what programming language are you using to acomplish this?

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


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