Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2000 17:09:12 +0900
From:      Kenjiro Cho <kjc@csl.sony.co.jp>
To:        luigi@info.iet.unipi.it
Cc:        julian@elischer.org, freebsd-net@freebsd.org
Subject:   Re: Proposal for ethernet, bridging, netgraph
Message-ID:  <20000423170912H.kjc@csl.sony.co.jp>
In-Reply-To: <200004230734.JAA11091@info.iet.unipi.it>
References:  <3902A56B.167EB0E7@elischer.org> <200004230734.JAA11091@info.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help

Luigi Rizzo wrote:
> > >   5 Add netgraph control messages to get the associated interface name
> > >     and index, so that it's possible to set promiscuous mode, multicast
> > >     addresses, etc. by:
> > >       from the kernel - getting the interface structure (using
> > >          ifindex2ifnet[if_index]), and then calling ifioctl()
> > >          (small note: ifioctl() will be made to handle p == NULL)
> > >       from userland - using the normal ioctl() mechanism
> > 
> > The ifindex is a hack that should go away (in my opinion).
> 
> I definitely agree on this !

You can't just remove if_index.
if_index is part of standard API defined in RFC2553 (Basic Socket
Interface Extention for IPv6) and RFC2292 (Advanced Socket API for
IPv6).

-Kenjiro


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000423170912H.kjc>