From owner-freebsd-net@FreeBSD.ORG Wed Jan 19 13:01:48 2005 Return-Path: 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 667B216A4CE; Wed, 19 Jan 2005 13:01:48 +0000 (GMT) Received: from relay.bestcom.ru (relay.bestcom.ru [217.72.144.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D5B243D2D; Wed, 19 Jan 2005 13:01:47 +0000 (GMT) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (root@cell.sick.ru [217.72.144.68]) by relay.bestcom.ru (8.13.1/8.12.9) with ESMTP id j0JD1SYv032220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 19 Jan 2005 16:01:29 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.11/8.12.8) with ESMTP id j0JCYRer007838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Jan 2005 15:34:27 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.sick.ru (8.12.11/8.12.11/Submit) id j0JCYQEM007837; Wed, 19 Jan 2005 15:34:27 +0300 (MSK) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@freebsd.org using -f Date: Wed, 19 Jan 2005 15:34:26 +0300 From: Gleb Smirnoff To: Andre Oppermann , Julian Elischer Message-ID: <20050119123426.GA7825@cell.sick.ru> References: <20050117200610.GA90866@cell.sick.ru> <20050118183558.GA15150@odin.ac.hmc.edu> <41ED8D63.8090205@elischer.org> <20050119084526.GA5119@cell.sick.ru> <41EE2933.4090404@elischer.org> <20050119093608.GA5712@cell.sick.ru> <41EE3361.8D27FF5B@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <41EE3361.8D27FF5B@freebsd.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: ClamAV version devel-20050119, clamav-milter version 0.80ff on relay.bestcom.ru X-Virus-Status: Clean cc: net@freebsd.org Subject: Re: [TEST/REVIEW] ng_ipfw: node to glue together ipfw(4) andnetgraph(4) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 13:01:48 -0000 On Wed, Jan 19, 2005 at 11:16:01AM +0100, Andre Oppermann wrote: A> > On Wed, Jan 19, 2005 at 01:32:35AM -0800, Julian Elischer wrote: A> > J> If each active divert socket number had a pointer to the module to which it A> > J> was attached then you could divert to either in-kernel netgraph targets or A> > J> to userland socket based targets. Currently of you divert to a divert A> > J> 'port number' and nothing is attached to it, the packet is dropped. A> > J> If a divert socket is attached to it, it is sent ot teh socket. A> > J> I would just suggest that is not a great leap of imagination that A> > J> attaching to a hook named 3245 would attach a netgrpah hook to the ipfw A> > J> code in the sam enamespace as the divert portnumber, and that a A> > J> subsequent attempt to attach a divert socket to that port number woild A> > J> fail. The packets diverted there would simply go to the netgraph hook A> > J> instead of going to a socket or being dropped. A> > A> > I understand your idea now. I'll work in this direction. A> A> I like Julian's idea. And if you look at the mtag's the only thing that A> is extracted is the rule number for divert, dummynet and netgraph (your A> patch). Ideally this should be merged into one tag if possible and not A> an architectual hack. When writing node, I was thinking about merging this into one tag. However, I expected negative response to this idea, from other developers. Anyone else agree that these tags should be merged? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE