Subject: Re: Patch to change ethernet link addresses
To: None <>
From: Dheeraj Reddy <>
List: current-users
Date: 08/08/2003 08:29:15
On Fri, Aug 08, 2003 at 16:47:03 +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
> 	next, you are putting ethernet address directly into sockaddr_storage.
> 	please use AF_LINK sockaddr.
> itojun
   i believe you mean SIOCDLIFADDR and SIOCALIFADDR respectively. but won't
the former break the semantics too ??  as was indicated in
 in fact i asked the same/similar question a week or so ago and there were
no comments.
  So you mean i should issue  SIOCDLIFADDR in ifconfig (userland) and then
issue another ioctl with SIOCALIFADDR (in if.c) when handling SIOCDLIFADDR ??

of course i shall try to change the code to use AF_LINK sockaddr .