From owner-freebsd-hackers Thu Oct 24 01:53:14 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA02111 for hackers-outgoing; Thu, 24 Oct 1996 01:53:14 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA02104 for ; Thu, 24 Oct 1996 01:53:07 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA26596 for ; Thu, 24 Oct 1996 10:53:05 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA12949 for freebsd-hackers@freebsd.org; Thu, 24 Oct 1996 10:53:04 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.6/8.6.9) id KAA02689 for freebsd-hackers@freebsd.org; Thu, 24 Oct 1996 10:34:15 +0200 (MET DST) From: J Wunsch Message-Id: <199610240834.KAA02689@uriah.heep.sax.de> Subject: Re: Linux emulation, gethostid() To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Thu, 24 Oct 1996 10:34:15 +0200 (MET DST) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199610240805.RAA08434@genesis.atrad.adelaide.edu.au> from Michael Smith at "Oct 24, 96 05:35:07 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Michael Smith wrote: > A linux application calls gethostid() in the Linux C library. _This_ > funtion then makes the SIOmumbleHWADDR ioctl call to get the ether > hardware address. Ick. I thought they've got a `gethostid()' syscall for this, like almost any other Unix has. > The kernel 'hostid' variable is too short for the ether address, and the > ether address _is_ visible inside the kernel (if one exists). No such thing like `the' ethernet address. By all means, make it configurable from outside, don't try to grab a particular value inside the kernel. Otherwise, if the user re-arranges his ethernet cards etc., he's at a loss. Even an ugly `gdb -k -w' trick would be better. > Soren seems to have decided to preempt me again, so I'll just wait and > see 8) So my comments hold valid for him as well. :^) -- 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. ;-)