Current-Users archive

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

Re: agr(4) question in NetBSD-5.1_RC3

On Mon, Sep 13, 2010 at 02:15:12PM -0400, Chris Ross wrote:
> On 09/13/2010 02:06 PM, Manuel Bouyer wrote:
> >>   If so, is there any reason why that support/code
> >>shouldn't/couldn't be added to more ethernet devices?  Certainly
> >>some of the more common/faster ones that many people are using, like
> >>bge (and wm, of course) it would be of value I'd think.
> >The details are in
> >
> >and follow up. Basically agr(4) should use the same interface as the one used
> >by ifconfig foo0 ether xx:xx:xx:xx:xx, but I don't know how to do this from
> >the kernel.
>   I see.  It looks like the "what is the way to do this" portion of
> the thread dropped after a bit.
>   If you pick that thread up again on tech-net, please Cc me.  And
> whether we call ifioctl(..., SIOCALIFADDR, ...) or into whatever
> *it* uses, it seems doable.

I think that the tricky bit is that you have to pass ifioctl() an
AF_LINK-type socket.  You will have to socreate() one, call ifioctl()
and soclose() it.  Look at gre(4) for an example of using socreate().


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

Home | Main Index | Thread Index | Old Index