From owner-freebsd-hackers Thu Oct 24 01:11:11 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA25486 for hackers-outgoing; Thu, 24 Oct 1996 01:11:11 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA25475 for ; Thu, 24 Oct 1996 01:11:06 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id RAA08434; Thu, 24 Oct 1996 17:35:07 +0930 From: Michael Smith Message-Id: <199610240805.RAA08434@genesis.atrad.adelaide.edu.au> Subject: Re: Linux emulation, gethostid() To: joerg_wunsch@uriah.heep.sax.de Date: Thu, 24 Oct 1996 17:35:07 +0930 (CST) Cc: freebsd-hackers@freebsd.org, msmith@atrad.adelaide.edu.au In-Reply-To: <199610240715.JAA01773@uriah.heep.sax.de> from "J Wunsch" at Oct 24, 96 09:15:52 am 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 J Wunsch stands accused of saying: > > > > Note the original topic; what I am trying to do is provide a means for > > emulating the Linux ioctl used for getting the ethernet hardware address. > > And i tried you to prove that there's no actual need for getting the > _ethernet_ hardware address. You can put all the ethernet (or > whatever) stuff into userland, to be run at /etc/rc time. Inside the > kernel, there's the kernel-internal `hostid' variable available > anyway, or you can alternatively wrap Linux' gethostid() around BSD's > ogethostid() syscall. Consider : A linux application calls gethostid() in the Linux C library. _This_ funtion then makes the SIOmumbleHWADDR ioctl call to get the ether hardware address. The kernel 'hostid' variable is too short for the ether address, and the ether address _is_ visible inside the kernel (if one exists). Soren seems to have decided to preempt me again, so I'll just wait and see 8) > cheers, J"org -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[