Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 1996 13:24:19 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        hackers@freebsd.org
Subject:   Linux emulation, gethostid()
Message-ID:  <199610230354.NAA23453@genesis.atrad.adelaide.edu.au>

next in thread | raw e-mail | index | archive | help

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  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610230354.NAA23453>