From owner-freebsd-current Sat May 1 8:34:32 1999 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id E873E150BF for ; Sat, 1 May 1999 08:34:29 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id AAA01796; Sun, 2 May 1999 00:34:11 +0900 (JST) Message-ID: <372B1E6B.263A3B19@newsguy.com> Date: Sun, 02 May 1999 00:31:55 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.51 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: Dag-Erling Smorgrav Cc: Lars Fredriksen , current@FreeBSD.ORG Subject: Re: default route not set up?? References: <372A1AE6.4E2738D4@odin-corporation.com> <372AF60B.E11A6989@newsguy.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. That's tricky, indeed. You should have commented the line below the second line, not the second line. :-) -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org "Proof of Trotsky's farsightedness if that _none_ of his predictions have come true yet." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message