Date: Fri, 29 Aug 2003 11:17:16 -0500 From: "Khoa A. To" <takhoa@rice.edu> To: "FreeBSD_Net" <freebsd-net@FreeBSD.ORG> Subject: Reversed MAC lookup inside FreeBSD kernel? Message-ID: <GAENJNNFCGNNIHDFIDFAMEKLCAAA.takhoa@rice.edu> In-Reply-To: <20030829154401.GA417@newluxor.skynet.org>
index | next in thread | previous in thread | raw e-mail
Hi, I'm new to kernel code, and don't understand the structure of ARP table very well. Could someone please point me to the right direction for the following problem I have: I need to get a translation of MAC addresses to IP addresses in the kernel. I saw some postings about how to translate MAC to IP in the user level, but they seem to require the host to send a packet to that MAC address and some other ways that also require the host to actually send some request packets out. All my MAC-IP addresses are already set statically using "arp -s" in the ARP table. When I'm in the kernel, how do I get a hold of the ARP table and do some kind of reversed search to get the IP address out? Thank you very much, Khoa.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?GAENJNNFCGNNIHDFIDFAMEKLCAAA.takhoa>
