Subject: Re: Question?
To: Dheeraj S <>
From: Rui Paulo <>
List: tech-net
Date: 08/24/2006 16:21:38
On Aug 23, 2006, at 11:22 PM, Dheeraj S wrote:

> On Wed, Aug 23, 2006 at 05:12:24PM -0400, Steven M. Bellovin wrote:
>> On Tue, 22 Aug 2006 11:46:28 +0300, Michael Pounov <misho@openbsd- 
>> wrote:
>>> Hi, I develope code for change ethernet address (MAC) of  
>>> interfaces in kernel through ifconfig
>>> like do this in openbsd ifconfig.
>>> If you have interest in this source code, please send me mail.
>> This would be a very good thing to have in NetBSD, but doesn't it  
>> require
>> special code in every MAC driver?
> It requires special code in every driver if we are actually  
> changing it on the
> card's EEPROM.
>  The above mentioned method (in openbsd/freebsd/linux/solaris) is  
> basically to
> change the soft structure. (re-initializing the driver resets the  
> MAC address
> to what is there on the PROM)

IMHO, changing the softc field and then reprogramming the filter is  
the way to go. Changing the EEPROM is not safe in most cases.

	-- Rui Paulo