From owner-freebsd-net Sun Apr 23 1: 9:25 2000 Delivered-To: freebsd-net@freebsd.org Received: from inetfw.sonycsl.co.jp (inetfw.SonyCSL.Co.Jp [203.137.129.4]) by hub.freebsd.org (Postfix) with ESMTP id 1DE8437B7D6 for ; Sun, 23 Apr 2000 01:09:23 -0700 (PDT) (envelope-from kjc@csl.sony.co.jp) Received: from hotaka.csl.sony.co.jp (root@hotaka.csl.sony.co.jp [43.27.98.57]) by inetfw.sonycsl.co.jp (8.9.3+3.2W/3.7Ws3/inetfw/2000030111/smtpfeed 1.01) with ESMTP id RAA86416; Sun, 23 Apr 2000 17:09:14 +0900 (JST) Received: from localhost (kjc@[127.0.0.1]) by hotaka.csl.sony.co.jp (8.8.8/3.7Ws3/hotaka/2000030111) with ESMTP id RAA24605; Sun, 23 Apr 2000 17:09:13 +0900 (JST) To: luigi@info.iet.unipi.it Cc: julian@elischer.org, freebsd-net@freebsd.org Subject: Re: Proposal for ethernet, bridging, netgraph In-Reply-To: <200004230734.JAA11091@info.iet.unipi.it> References: <3902A56B.167EB0E7@elischer.org> <200004230734.JAA11091@info.iet.unipi.it> X-Mailer: Mew version 1.95b3 on Emacs 20.5 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000423170912H.kjc@csl.sony.co.jp> Date: Sun, 23 Apr 2000 17:09:12 +0900 From: Kenjiro Cho X-Dispatcher: imput version 991025(IM133) Lines: 20 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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