Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 1996 17:35:07 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        joerg_wunsch@uriah.heep.sax.de
Cc:        freebsd-hackers@freebsd.org, msmith@atrad.adelaide.edu.au
Subject:   Re: Linux emulation, gethostid()
Message-ID:  <199610240805.RAA08434@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199610240715.JAA01773@uriah.heep.sax.de> from "J Wunsch" at Oct 24, 96 09:15:52 am

next in thread | previous in thread | raw e-mail | index | archive | help
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  [[



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