From owner-freebsd-current Sat May 1 6:18:31 1999 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 03B1614E46 for ; Sat, 1 May 1999 06:18:28 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.2/8.9.1) id PAA35382; Sat, 1 May 1999 15:18:24 +0200 (CEST) (envelope-from des) To: "Daniel C. Sobral" Cc: Dag-Erling Smorgrav , Lars Fredriksen , current@FreeBSD.ORG Subject: Re: default route not set up?? References: <372A1AE6.4E2738D4@odin-corporation.com> <372AF60B.E11A6989@newsguy.com> From: Dag-Erling Smorgrav Date: 01 May 1999 15:18:23 +0200 In-Reply-To: "Daniel C. Sobral"'s message of "Sat, 01 May 1999 21:39:39 +0900" Message-ID: Lines: 27 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Daniel C. Sobral" writes: > Dag-Erling Smorgrav wrote: > > # Configure routing > > > > if [ "x$defaultrouter" != "xNO" ] ; then > > static_routes="default ${static_routes}" # look here... > > route_default="default ${defaultrouter}" > > fi > > > > # Set up any static routes. This should be done before router discovery. > > if [ "x${static_routes}" != "x" ]; then > > for i in ${static_routes}; do # ...and here > > eval route_args=\$route_${i} > > route add ${route_args} > > done > > fi > > Looking there, it *does* seem that there is a problem. defaultrouter > is only used to set route_default, which is *not* used. At least on > the code you quoted. This is getting fun :) Look closer at the first line I commented, then at the loop, and especially the eval. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message