Subject: Re: changing wi(4) MAC address
To: None <tech-net@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-net
Date: 08/10/2005 15:06:03
In article <Pine.NEB.3.95.1050810103951.3976A-100000@uranium.club.cc.cmu.edu>,
Lord Isildur  <mrfusion@vaxpower.org> wrote:

>> Setting the link-layer address really deserves to be a
>> hardware-independent feature.  There have been a few discussions on
>> tech-net about how best to set link-layer addresses in a h/w-independent
>> way---especially which ioctl is most appropriate (SIOCSALIFADDR, IIRC).
>> Would you be willing to produce a patch based on the discussion?
>
>so, there has been murmuring of a grand scheme to slowly put lladr/hwaddr
>type support in ifconfig and have a generic mechanism the way linux 
>does for changing or setting the mac addr of a device.. 
>
>if there is already a convention for properly exposing this so that
>it can be changed by a more generic mechanism, i'll happily adapt this
>to fit in with it. 
>should I produce a patch from this diff as it is now, in the meantime? 
>i probably will add a check to see that the wi_write_rid doesn't fail 
>and release a patch maybe this afternoon. 
>aside from having the filename info in along with the diff output, is
>there anything else wanted for it to be a proper patch? 
>
>isildur

I have committed your patch, but it would be better as David points
out to provide a generic way to do this in ifconfig.

christos