Subject: Re: Patch to change ethernet link addresses
To: None <>
From: Dheeraj Reddy <>
List: current-users
Date: 08/08/2003 08:47:12
On Fri, Aug 08, 2003 at 17:09:21 +0900, wrote:
> >>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
> 	"L" in "LIFADDR" stands for "long", which suggests that the API is
> 	using sockaddr_storage.  it does not mean "link-layer address".
> itojun
   i understand that it is long, but the idea was to use the same ioctl
for many link layer addresses all of which may not be 6 bytes in length.
   Although i am not quite sure right now about how to do that.