Subject: Re: port-i386/1050: CAP support for NetBSD-1.0 i386
To: Charles M. Hannum <mycroft@ai.mit.edu>
From: Paul Nash <paul@frcs.alt.za>
List: netbsd-bugs
Date: 05/17/1995 18:31:52
>       * tweak "if_ed.c" to recognise SIOCGIFADDR -- this will need to
> 
> This is wrong.  It's: a) only accessible through BPF, and b) not
> orthogonal to SIOCSIFADDR.  CAP should be using SIOCGIFCONF to find
> the ether address.

I beg to differ.  From /usr/src/sys/bpf.c:

 *  SIOCGIFADDR         Get interface address - convenient hook to driver.

No mention of SIOCGIFCONF.  BPF, in turn, passes this ioctl() call on
to the driver.  So it _looks_ as though the driver was intended to
support this ioctl() call.  Maybe this has changed with netbsd-current?
I'm running NetBSD-1.0 (and a damn fine chunk of code it is, too!), and
don't want to upgrade (yet).

If and when I change to -current, I'll redo this part of CAP, so that
it uses SIOCGIFCONF.

This is only really relevant to CAP users (as far as I can tell), so
it doesn't really matter whether it is included or not.  I doubt that
there are terribly many NetBSD users who want to run CAP, but it'd be
nice if they didn't need to fiddle with the kernel.

	paul