tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys

On Fri, May 29, 2009 at 03:25:52PM +0000, Thor Lancelot Simon wrote:
> On Fri, May 29, 2009 at 04:57:05AM +0000, Darran Hunt wrote:
> >
> > Adds SIOCINITIFADDR support to the wm driver for setting the AF_LINK
> > address, necessary for agr to be able to set the mac addresses of each
> > port to the agr address (i.e. so it can receive all intended traffic
> > at the hardware level).
> FWIW: the MAC-address-setting code in agr was not working before with
> any commonly available interface, so this was what we initially came
> up with to make agr work at all (otherwise, it will work only with
> tcpdump attached, because that puts the "wrong address" receive
> interface or interfaces in promiscuous mode).  I'm now aware there's
> a new interface for managing interface MAC addresses, but it doesn't
> seem to currently work for agr.  Because agr's been broken for so long,
> it's been bitrotting -- so I asked Darran to check this code in for now
> so people can at least use agr and try to shake out the bugs.

I understand why you did it this way.  Let me see if I can make agr use
SIOCALIFADDR.  Turns out that agr needs to create an AF_LINK socket and
call ifioctl(), not ifp->if_ioctl, so it is more work than I thought.


David Young             OJC Technologies      Urbana, IL * (217) 278-3933

Home | Main Index | Thread Index | Old Index