Subject: Re: Patch to change ethernet link addresses
To: None <dheeraj@ece.gatech.edu, current-users@netbsd.org,>
From: None <itojun@iijlab.net>
List: current-users
Date: 08/08/2003 17:09:21
>>Hello all
>>   I am attaching a patches that allow ifconfig to change the ethernet
>>MAC addresses temporarily. (the new new MAC address is good until a reboot).
>>the diffs are against sources after an update today.
>>
>>I have checked this code on two ethernet cards that I have (both pcmcia).
>>
>>Thanks Jaromir for encouraging.
>	SIOC?LIFADDR is for assigning address by sockaddr_storage.  if you
>	we (NRL/KAME) intentionally did not define SIOCSLIFADDR, as "Set"
>	semantics would be ambiguous when there are multiple addresses assigned
>	onto the interface.  please do not add SIOCSLIFADDR (the API is
>	discussed with third parties and agreed upon).  my advice is to issue
>	SIOCDLFADDR then issue SIOCALFIADDR.

	"L" in "LIFADDR" stands for "long", which suggests that the API is
	using sockaddr_storage.  it does not mean "link-layer address".

itojun