From owner-freebsd-questions Wed Feb 7 1:11:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from d9168.upc-d.chello.nl (d9168.upc-d.chello.nl [213.46.9.168]) by hub.freebsd.org (Postfix) with ESMTP id C4D0737B6A1; Wed, 7 Feb 2001 01:11:20 -0800 (PST) Received: by d9168.upc-d.chello.nl (Postfix, from userid 1001) id C69E03AE; Wed, 7 Feb 2001 10:11:19 +0100 (CET) Date: Wed, 7 Feb 2001 10:11:19 +0100 From: Edwin Groothuis To: Madhavi Suram Cc: freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: getting hardware address Message-ID: <20010207101119.W62745@d9168.upc-d.chello.nl> Mail-Followup-To: Edwin Groothuis , Madhavi Suram , freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from madhavis@sasken.com on Wed, Feb 07, 2001 at 11:42:57AM +0530 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Feb 07, 2001 at 11:42:57AM +0530, Madhavi Suram wrote: > Is there any function in 'C' to get ethernet hardware address from IP > address (not only for interfaces on the same machine... For any IP > address), equivalent to 'arp' command on FreeBSD? If there isn't any such > function, can you suggest me any other way of achieving this? You could check the source of arp of course, /usr/src/usr.sbin/arp/arp.c Edwin -- Edwin Groothuis | Interested in MUDs? Visit Fatal Dimensions: mavetju@chello.nl | http://fataldimensions.nl.eu.org/ ------------------+ telnet://fataldimensions.nl.eu.org:4000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message