From owner-freebsd-hackers Tue Oct 22 20:54:31 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA29861 for hackers-outgoing; Tue, 22 Oct 1996 20:54:31 -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 UAA29856 for ; Tue, 22 Oct 1996 20:54:28 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id NAA23453 for hackers@freebsd.org; Wed, 23 Oct 1996 13:24:19 +0930 From: Michael Smith Message-Id: <199610230354.NAA23453@genesis.atrad.adelaide.edu.au> Subject: Linux emulation, gethostid() To: hackers@freebsd.org Date: Wed, 23 Oct 1996 13:24:19 +0930 (CST) 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 Ok people; this is _not_ an attempt to start a holy war. We've had the discussion on whether a hostid is a practical thing for a PC to pretend to have or not. However, the Linux folks think that it is, and if we want to be able to run their applications we need to emulate their policy. gethostid() under linux is implemeted using the SIOCGIFHWADDR ioctl to get a network hardware address. We don't support this yet. Netstat gets the hardware address by grubbing around in the kernel (what a frightening piece of code that is to read 8( ), but I also recall someone posting wrt. getting mathematica to run with a "more correct" method. Do we want an ioctl to get the hardware address? If not, any suggestions on a _tidy_ way to get it? -- ]] 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 [[