Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jun 2008 02:08:19 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-pf@freebsd.org
Subject:   Fwd: Multiple routing table support commited
Message-ID:  <200806060208.19417.max@love2party.net>

next in thread | raw e-mail | index | archive | help
--Boundary-00=_z/HSIQXVsCSrYco
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

After I finally found some time to look at the pf part of this it is 
working - like a charm really.  If you have use for it, please test and 
report back.

To classify with pf you can simply use the OpenBSD syntax "rtable <fib>" 
on rules.

-- 
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--Boundary-00=_z/HSIQXVsCSrYco
Content-Type: message/rfc822;
  name="forwarded message"
Content-Transfer-Encoding: 7bit
Content-Description: Julian Elischer <julian@elischer.org>: Multiple routing
	table support commited
Content-Disposition: inline

Return-Path: <SRS0=C4Fy=VZ=freebsd.org=owner-freebsd-current@srs.kundenserver.de>
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on router.laiers.local
X-Spam-Level: 
X-Spam-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,
	SPF_PASS autolearn=ham version=3.2.4
Delivered-To: mlaier@vampire.homelinux.org
Received: (qmail 12752 invoked by alias); 10 May 2008 00:51:25 -0000
Delivered-To: max@vampire.homelinux.org
Received: (qmail 12749 invoked from network); 10 May 2008 00:51:25 -0000
Received: from moutng.kundenserver.de (212.227.126.187)
	by dslb-088-066-003-168.pools.arcor-ip.net with SMTP;
	10 May 2008 00:51:25 -0000
Received-SPF: pass (mxeu14: domain of freebsd.org designates 69.147.83.53 as
	permitted sender) client-ip=69.147.83.53;
	envelope-from=owner-freebsd-current@freebsd.org;
	helo=mx2.freebsd.org; 
Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53])
	by mx.kundenserver.de (node=mxeu14) with ESMTP (Nemesis)
	id 0ML3Dg-1JudKZ1gXd-00019j for max@love2party.net;
	Sat, 10 May 2008 02:52:57 +0200
Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36])
	by mx2.freebsd.org (Postfix) with ESMTP id 7E6BF14FABC;
	Sat, 10 May 2008 00:52:12 +0000 (UTC)
	(envelope-from owner-freebsd-current@freebsd.org)
Received: from hub.freebsd.org (localhost [127.0.0.1])
	by hub.freebsd.org (Postfix) with ESMTP id 084AD10656A9;
	Sat, 10 May 2008 00:52:12 +0000 (UTC)
	(envelope-from owner-freebsd-current@freebsd.org)
Delivered-To: current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DA082106566B
	for <current@freebsd.org>; Sat, 10 May 2008 00:52:06 +0000 (UTC)
	(envelope-from julian@elischer.org)
Received: from outI.internet-mail-service.net (outi.internet-mail-service.net
	[216.240.47.232])
	by mx1.freebsd.org (Postfix) with ESMTP id C64E88FC17
	for <current@freebsd.org>; Sat, 10 May 2008 00:52:06 +0000 (UTC)
	(envelope-from julian@elischer.org)
Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160)
	by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP;
	Sat, 10 May 2008 04:39:32 -0700
Received: from julian-mac.elischer.org (localhost [127.0.0.1])
	by idiom.com (Postfix) with ESMTP id 2CAFF2D600D
	for <current@freebsd.org>; Fri,  9 May 2008 17:52:06 -0700 (PDT)
Message-ID: <4824F1B4.6010302@elischer.org>
Date: Fri, 09 May 2008 17:52:04 -0700
From: Julian Elischer <julian@elischer.org>
User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
MIME-Version: 1.0
To: FreeBSD Current <current@freebsd.org>
Content-Type: text/plain;
  charset=ISO-8859-1;
  format=flowed
Content-Transfer-Encoding: 7bit
Cc: 
Subject: Multiple routing table support commited
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
Sender: owner-freebsd-current@freebsd.org
Errors-To: owner-freebsd-current@freebsd.org
X-Virus-Status: No
X-Virus-Checker-Version: clamassassin 1.2.4 with clamdscan / ClamAV
	0.93/7081/Fri May 9 17:52:50 2008
X-Length: 4907
X-UID: 75900

I have committed the base of teh Multi-routing-table support.
I am current;y waiting for it to loop back to me before a final
make universe test, but I think it should be ok.
if you do nothing you should not see any difference.

for a description  of what and how, look at:

http://perforce.freebsd.org/fileViewer.cgi?FSPC=//depot/user/julian/routing/plan.txt

to compile it into a kernel you need

  options ROUTETABLES=N where N is from 1 to 16

leaving it out, or setting it to 1 will have the effect of
creating a kernel that should behave as it did prior to this
commit.

In this work a kernel routing table is
referred to as  a 'fib'  (Forwarding Information Base).
I was informed by various routing people during this work
that this is the new-fangled correct name for an in kernel
routing(forwarding) table.

for more information see

setfib(1) and setfib(2)



This code, backported to 6.3 is running on Ironport appliances
and Cisco/Ironport has graciously allowed it to be given back.

julian



_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


--Boundary-00=_z/HSIQXVsCSrYco--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806060208.19417.max>