From owner-freebsd-net Sun Apr 23 9: 9:15 2000 Delivered-To: freebsd-net@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id DA2A937B565 for ; Sun, 23 Apr 2000 09:09:08 -0700 (PDT) (envelope-from julian@elischer.org) Received: from popserver-02.iinet.net.au (popserver-02.iinet.net.au [203.59.24.148]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id AAA27819; Mon, 24 Apr 2000 00:09:00 +0800 Received: from jules.elischer.org (reggae-09-142.nv.iinet.net.au [203.59.67.142]) by popserver-02.iinet.net.au (8.9.3/8.9.3) with SMTP id AAA11352; Mon, 24 Apr 2000 00:08:47 +0800 Message-ID: <39031FC6.59E2B600@elischer.org> Date: Sun, 23 Apr 2000 09:07:34 -0700 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Kenjiro Cho Cc: luigi@info.iet.unipi.it, freebsd-net@freebsd.org Subject: Re: Proposal for ethernet, bridging, netgraph References: <3902A56B.167EB0E7@elischer.org> <200004230734.JAA11091@info.iet.unipi.it> <20000423170912H.kjc@csl.sony.co.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Kenjiro Cho wrote: > > 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). yeah.. having not really looked at those RFCs I didn't realise this. What a pitty. it's so unsuitable for some environments. > > -Kenjiro -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message