Subject: Re: Fw: Changing MAC addresses on ethernet interfaces?
To: Christos Zoulas <>
From: Jason R Thorpe <>
List: tech-net
Date: 01/16/2001 16:06:30
On Tue, Jan 16, 2001 at 11:48:48PM +0000, Christos Zoulas 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.

However, I did find a Cool Bug today related to sockaddr_dl's, and
I'm about to commit a fix (sigh, and version the kernel).

        -- Jason R. Thorpe <>