From owner-freebsd-hackers Mon Nov 24 17:15:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA22414 for hackers-outgoing; Mon, 24 Nov 1997 17:15:26 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from zeus.carroll.com (zeus.carroll.com [199.224.10.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA22407 for ; Mon, 24 Nov 1997 17:15:22 -0800 (PST) (envelope-from jim@carroll.com) Received: from apollo.carroll.com [199.224.10.3] by zeus.carroll.com with ESMTP (8.8.5/0) id UAA14124; Mon, 24 Nov 1997 20:15:17 -0500 Received: by apollo.carroll.com (8.8.5) is UAA10346; Mon, 24 Nov 1997 20:15:16 -0500 Date: Mon, 24 Nov 1997 20:15:15 -0500 From: Jim Carroll To: freebsd-hackers@freebsd.org Subject: Retrieve ethernet mac address Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Could someone point me towards how to retrieve an ethernet mac address from user-land code ? If it matters, we are running 2.2.1 If someone has a working snippet, I would be grateful. A good pointer towards a FAQ or doc would also be helpful. I have been staring at netstat and ifconfig source for a few hours, but am having trouble making heads or tails. netstat usese kvm() and ifconfig uses sysctl(). I can't find enough docs of either method to get my head around what is needed to just extract mac address. Thanks --- Jim C., President | C A R R O L L - N E T, Inc. 201-488-1332 | New Jersey's Premier Internet Service Provider www.carroll.com |