From owner-freebsd-net Wed Oct 9 6:42:57 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1514D37B401 for ; Wed, 9 Oct 2002 06:42:56 -0700 (PDT) Received: from web40903.mail.yahoo.com (web40903.mail.yahoo.com [66.218.78.200]) by mx1.FreeBSD.org (Postfix) with SMTP id A3B8443E65 for ; Wed, 9 Oct 2002 06:42:55 -0700 (PDT) (envelope-from yat_33@yahoo.com) Message-ID: <20021009134255.53626.qmail@web40903.mail.yahoo.com> Received: from [65.207.163.130] by web40903.mail.yahoo.com via HTTP; Wed, 09 Oct 2002 06:42:55 PDT Date: Wed, 9 Oct 2002 06:42:55 -0700 (PDT) From: yatin chalke Subject: How to get hardware address of a machine using ARP/Sysctl/Routing sockets?? To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I want to get hardware address of any machine on a subnet using sysctl and routing sockets. I can search arp cache and return the hardware address if it is there. But if the hardware address is not in ARP cache then I cant retrieve it. Is there any way to get hardware address of any machine using any Arp structure/routing sockets /sysctl?? I tried using IOCTL but it doesnt work with freebsd 4.4. Any help will be appreciated. Thanks, --Yatin __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message