From owner-freebsd-net@FreeBSD.ORG Mon Jun 7 07:44:15 2004 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 DADD716A4CE; Mon, 7 Jun 2004 07:44:15 +0000 (GMT) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 204C243D4C; Mon, 7 Jun 2004 07:44:15 +0000 (GMT) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.9/8.12.8) with ESMTP id i577iAvw018346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Jun 2004 11:44:10 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.9/8.12.6/Submit) id i577iAx5018345; Mon, 7 Jun 2004 11:44:10 +0400 (MSD) Date: Mon, 7 Jun 2004 11:44:10 +0400 From: Gleb Smirnoff To: Ruslan Ermilov Message-ID: <20040607074410.GC18232@cell.sick.ru> References: <20040607071701.GC17986@cell.sick.ru> <20040607073812.GA339@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20040607073812.GA339@ip.net.ua> User-Agent: Mutt/1.5.6i cc: Julian Elischer cc: net@freebsd.org Subject: Re: HEADSUP! netgraph Metadata changing. 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: Mon, 07 Jun 2004 07:44:16 -0000 On Mon, Jun 07, 2004 at 10:38:12AM +0300, Ruslan Ermilov wrote: R> On Mon, Jun 07, 2004 at 11:17:01AM +0400, Gleb Smirnoff wrote: R> > On Sun, Jun 06, 2004 at 06:35:51PM -0700, Julian Elischer wrote: R> > J> In addition the ng_ksocket node adds info into metadata and I suspect R> > J> there are people using that. R> > R> > Since ng_ksocket tags packets for itself only, we can safely change it. R> > R> I use this feature in one proprietary module (need to send/recevive R> UDP datagrams to/from different destinations). Does your module reads/writes meta? Or just forwards the meta? If it just forwards meta, does it allocate new mbuf? If it does, then you should copy tag from old mbuf to a new one. If it does not allocate new mbuf, than our ng_ksocket change won't break your module. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE