From owner-freebsd-net@FreeBSD.ORG Tue May 30 12:40:56 2006 Return-Path: X-Original-To: net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5B2A16A669 for ; Tue, 30 May 2006 12:40:56 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64A0943D6B for ; Tue, 30 May 2006 12:40:53 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.4/8.13.3) with ESMTP id k4UCefRv081956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 May 2006 16:40:41 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.4/8.13.1/Submit) id k4UCef6p081955; Tue, 30 May 2006 16:40:41 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 30 May 2006 16:40:41 +0400 From: Gleb Smirnoff To: Yann Berthier Message-ID: <20060530124041.GF27819@cell.sick.ru> References: <20060528194319.GL1424@bashibuzuk.net> <20060529115146.GQ27819@cell.sick.ru> <20060530120043.GA1540@bashibuzuk.net> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060530120043.GA1540@bashibuzuk.net> User-Agent: Mutt/1.5.6i Cc: net@FreeBSD.org Subject: Re: netgraph on disc(4) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2006 12:41:10 -0000 On Tue, May 30, 2006 at 02:00:43PM +0200, Yann Berthier wrote: Y> > On Sun, May 28, 2006 at 09:43:19PM +0200, Yann Berthier wrote: Y> > Y> Y> > Y> Hello Gleb, Y> > Y> Y> > Y> err, sorry for the forward if you saw the thread already but, have Y> > Y> you any input on this ? that's not critical but still, i see value in Y> > Y> being able to use ng_netflow on traffic flowing on dummy interfaces Y> > Y> (lo, disc, ...) Y> > Y> > I've have written some code to wrap any interface some time ago. Here Y> > it is attached. Sorry, I didn't ever used it and not sure it is compilable Y> > on recent FreeBSD versions. Y> Y> Many thanks - so, it compiles on a one month old -CURRENT, but it Y> fails when i try to use it on a loopback interface - i'm able to wrap Y> a real one though: Y> Y> mkpeer ifwrap qq upper Y> name .:qq wrap_disc0 Y> disconnect .:qq Y> msg wrap_disc0: attach "disc0" Y> ngctl: send msg: Operation not supported Y> Y> Anyway, do others see an interest in it ? would it be worth Y> integrating it into the tree ? Except for ng_netflow over loopback Y> links, would there be other consumers of this feature ? The problem is that most of interfaces in the stack doesn't have if_output method, that's why ng_ifwrap doesn't work on them. That is the main reason why I haven't committed the code to CVS. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE