Subject: Re: Fw: Changing MAC addresses on ethernet interfaces?
To: None <>
From: None <>
List: tech-net
Date: 01/17/2001 10:35:15
> > > > This will only work if we make struct ifaddr use struct sockaddr_storage
> > > > It currently uses struct sockaddr and struct sockaddr_dl does not fit in
> > > > it [by one byte; argh!]
> > >He's using it from inside the kernel, and since SIOCSIFADDR in a
> > >device ioctl routine sees an ifaddr *, it will work okay for him.
> > 	if we need ioctls, SIOCSLIFADDR could be used.  at this moment
> > 	we supply it in AF_INET and AF_INET6 only.
> > 	(or SIOCSLPHYADDR, which is in KAME)
>Per a discussion w/ Christos, I think the way I'm going to do it is
>to version the ifreq structure, and provide compat members that
>can be accessed like sockaddrs (rather than sockaddr_storages).

	i see, that should be okay (adding a member typed sockaddr_storage
	into ifr_ifru).  there may be some need for sizeof() fixes, though.