From owner-freebsd-net@FreeBSD.ORG Wed Jun 21 10:10:42 2006 Return-Path: X-Original-To: freebsd-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 8D62D16A492; Wed, 21 Jun 2006 10:10:42 +0000 (UTC) (envelope-from vadimnuclight@tpu.ru) Received: from relay1.tpu.ru (relay1.tpu.ru [213.183.112.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8764243D78; Wed, 21 Jun 2006 10:10:39 +0000 (GMT) (envelope-from vadimnuclight@tpu.ru) Received: by relay1.tpu.ru (Postfix, from userid 501) id 965D21C806E; Wed, 21 Jun 2006 17:10:37 +0700 (NOVST) Received: from mail.main.tpu.ru (mail.main.tpu.ru [10.0.0.3]) by relay1.tpu.ru (Postfix) with ESMTP id 6CC9510D8D2; Wed, 21 Jun 2006 17:10:37 +0700 (NOVST) Received: from mail.tpu.ru ([213.183.112.105]) by mail.main.tpu.ru with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 17:10:37 +0700 Received: from nuclight.avtf.net ([82.117.64.107]) by mail.tpu.ru over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 17:10:36 +0700 To: "Jeremie Le Hen" , "Andrey V. Elsukov" References: <44618B0A.60504@yandex.ru> <20060621094104.GB7019@obiwan.tataz.chchile.org> Message-ID: Date: Wed, 21 Jun 2006 17:09:42 +0700 From: "Vadim Goncharov" Organization: AVTF TPU Hostel Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <20060621094104.GB7019@obiwan.tataz.chchile.org> User-Agent: Opera M2/7.54 (Win32, build 3865) X-OriginalArrivalTime: 21 Jun 2006 10:10:36.0812 (UTC) FILETIME=[F0CA5CC0:01C6951A] Cc: freebsd-net@freebsd.org, Julian Elischer , freebsd-ipfw@freebsd.org Subject: Re: [fbsd] [patch] ipfw packet tagging 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: Wed, 21 Jun 2006 10:10:42 -0000 21.06.06 @ 16:41 Jeremie Le Hen wrote: > Looking at the patch lets me see that you are using the generic mbuf > tags. This means the tag should be available along the packet's > trip through the kernel. Would it be possible to slightly modify > the routing code in order to make those tags a routing criteria ? > > Julian Elischer also has a neat patch that modifies the ipfw table > but he hasn't provided it so far [1]. > > [1] http://lists.freebsd.org/pipermail/freebsd-net/2006-May/010563.html The ipfw packet tagging patch was committed to src tree and will be MFCed to RELENG_6 about this weekend. I am currently working on ng_tag(4) netgraph node which could deal with tags (see http://antigreen.org/vadim/freebsd/ng_tag/) - I think, in theory it is possible to tag-based routing inside netgraph onto netgraph interfaces. -- WBR, Vadim Goncharov