From owner-freebsd-net@FreeBSD.ORG Wed Dec 12 23:07:27 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7982A16A41B for ; Wed, 12 Dec 2007 23:07:27 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.174]) by mx1.freebsd.org (Postfix) with ESMTP id 1B1A413C4D5 for ; Wed, 12 Dec 2007 23:07:26 +0000 (UTC) (envelope-from max@love2party.net) Received: from amd64.laiers.local (dslb-088-066-046-112.pools.arcor-ip.net [88.66.46.112]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1J2afk166C-0003IX; Thu, 13 Dec 2007 00:07:25 +0100 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Thu, 13 Dec 2007 00:07:11 +0100 User-Agent: KMail/1.9.7 References: <476061FD.8050500@elischer.org> In-Reply-To: <476061FD.8050500@elischer.org> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5929925.HyxH3Eyd53"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200712130007.20720.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18wTaqhziZlOyqw696Ep2P1lOdO4w3UvSHQtMr nfwXWjcMOT+ja4VuReLw3VotWfqncZBzfGgGeMTQIMgjKPDcCK OUlZwzuu/hVeMAz9gFW7GndbLjNRZb+SoedVAXgZGg= Cc: Julian Elischer Subject: Re: bikeshed for all! 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, 12 Dec 2007 23:07:27 -0000 --nextPart5929925.HyxH3Eyd53 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 12 December 2007, Julian Elischer wrote: > So, I'm playing with some multiple routing table support.. > the first version is a minimal impact version with very limited > functionality. It's done that way so I can put it in RELENG_6/7 without > breaking ABIs (I hope). Later there will be a more flexible version > for-current. > > Here's the question.. > > I need a word to use to describe the network view one is currently on.. > e.g. if you are usinghe second routing table, you could say I've set > xxx to 1 (0 based).. > > > current;y in my code I'm using 'universe' but I don't like that.. > > one could think of it as a routing plane.. > each routing plane has he same interfaces on it but they are logically > treated differently becasue each plane has a different routing table. > > > so here's an axample of it in use now... > the names should change... > > setuniverse 1 netstat -rn > [shows table 1] > setuniverse 2 route add 10.0.0.0/24 192.168.2.1 > setuinverse 1 route add 10.0.0.0/24 192.168.3.1 > setuniverse 2 route -n get 10.0.0.3 > [shows 192.168.2.1] > setuniverse 1 route -n get 10.0.0.3 > [shows 192.168.3.1] > setuniverse 2 start_apache > [appache starts, always using 192.168.2.1 to reach the 10.0.0 net. > > > also the syscall is setuniverse() > > so, you see I really need a better name.... > setrtab? > > rtab? rtbl? > > and the command should be called "????" =46WIW, OpenBSD just added a "-T num" switch to concerned programs like=20 route and netstat. As far as I can tell they rely entirely on pf to=20 select a table - so there is no way to start a program "inside" a certain=20 network view. OTOH, how - in your system - would you decide which table=20 to use for forwarded packets? More to the bikeshed pov, "universe" seems rather broad. "netview" comes=20 to mind. "rtabselect", though that has a lot of characters, but then=20 again "setuniverse" is even one char longer ;) =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart5929925.HyxH3Eyd53 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHYGmoXyyEoT62BG0RAg+VAJ4rpTXJJT4oG39TpsqRjMYkorgLfACfYdn4 Ncs7jEwGT43fYB2HgI688zM= =npBU -----END PGP SIGNATURE----- --nextPart5929925.HyxH3Eyd53--