From owner-freebsd-hackers Wed Feb 7 00:23:12 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA09666 for hackers-outgoing; Wed, 7 Feb 1996 00:23:12 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA09610 for ; Wed, 7 Feb 1996 00:22:09 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA16558 for ; Wed, 7 Feb 1996 09:21:24 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id JAA00647 for freebsd-hackers@freebsd.org; Wed, 7 Feb 1996 09:21:23 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id JAA04677 for freebsd-hackers@freebsd.org; Wed, 7 Feb 1996 09:09:30 +0100 (MET) From: J Wunsch Message-Id: <199602070809.JAA04677@uriah.heep.sax.de> Subject: Re: How would I find out the ethernet address of an interface? To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Wed, 7 Feb 1996 09:09:29 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <96Feb6.154425est.20483@janus.border.com> from "Jerry Kendall" at Feb 6, 96 03:34:34 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org Precedence: bulk As Jerry Kendall wrote: > 'ifconfig -a' will tell you the address for all interfaces... > 'ifconfig ep0' will tell you the address of the ep0 interface... > > Get the picture?? > > I need a way of finding the ethernet address of the interface > associated with > a socket in an LKM. Any pointers to where I'd > start looking? I thought he was rather asking how to obtain the address from inside the kernel?! -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)