From owner-cvs-all@FreeBSD.ORG Fri Feb 27 00:46:08 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5839916A4CE; Fri, 27 Feb 2004 00:46:08 -0800 (PST) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30AA543D2D; Fri, 27 Feb 2004 00:46:08 -0800 (PST) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i1R8k29Q073344; Fri, 27 Feb 2004 00:46:02 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i1R8k2JQ073343; Fri, 27 Feb 2004 00:46:02 -0800 (PST) (envelope-from rizzo) Date: Fri, 27 Feb 2004 00:46:02 -0800 From: Luigi Rizzo To: Alexey Dokuchaev Message-ID: <20040227004602.A73084@xorpc.icir.org> References: <200402260234.i1Q2YDx1014240@repoman.freebsd.org> <20040226060126.GA70201@troutmask.apl.washington.edu> <20040226080517.GA29763@cat.robbins.dropbear.id.au> <20040226015016.B23674@xorpc.icir.org> <403DC956.8EA364B2@freebsd.org> <20040226071123.A31631@xorpc.icir.org> <565913D0-68E2-11D8-AE91-000A95AD0668@errno.com> <20040227083630.GC54056@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20040227083630.GC54056@regency.nsu.ru>; from danfe@nsu.ru on Fri, Feb 27, 2004 at 02:36:30PM +0600 X-Mailman-Approved-At: Fri, 27 Feb 2004 05:09:43 -0800 cc: Max Laier cc: Andre Oppermann cc: Tim Robbins cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org cc: Steve Kargl cc: Sam Leffler cc: Dag-Erling Sm?rgrav Subject: Re: cvs commit: src/sys/contrib/pf/net if_pflog.c if_pflog.h if_pfsync.c if_pfsync.h pf.c pf_ioctl.c pf_norm.c pf_osfp.c pf_table.c pfvar.h src/sys/contrib/pf/netinet in4_cksum.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2004 08:46:08 -0000 On Fri, Feb 27, 2004 at 02:36:30PM +0600, Alexey Dokuchaev wrote: ... > > The ideal solution would be to convert the entire networking stack to > > netgraph nodes; we could then insert filter nodes at any point in the > > graph. I believe this (convert the entire networking stack to netgraph nodes) is completely unfeasible. There are interactions among subsystems all over the place. The routing subsystem is used by all protocols at different layers (arp, ipv4 and ipv6, probably more). TCP knows it runs on top of IP and pokes into its data structures below. It also plays with the socket buffers on the layer above. netgraph is nice when you have to deal with packets, but when interactions become more complex the packet API supplied by netgraph is not suitable anymore. cheers luigi > That idea was attracting my attention for quite some time, probably > since when emax' bluetooth stuff hit the tree. It seems the most > generic and coherent approach; especially provided that all core > functionality is already implemented and well-tested, and there are lots > of real-life NG-based solutions already available that come with both > stock FreeBSD and from third parties. I'm also wondering how far is it > possible to push NG usage into the kernel; e.g. can USB stack be > converted to it (seeing analogy with bluetooth here)? > > ./danfe