Subject: Re: Fw: Changing MAC addresses on ethernet interfaces?
To: None <email@example.com>
From: Jason R Thorpe <firstname.lastname@example.org>
Date: 01/16/2001 16:54:53
On Wed, Jan 17, 2001 at 09:43:18AM +0900, email@example.com wrote:
> > > 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).
-- Jason R. Thorpe <firstname.lastname@example.org>