Skip site navigation (1)Skip section navigation (2)
Date:      01 May 1999 15:18:23 +0200
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        "Daniel C. Sobral" <dcs@newsguy.com>
Cc:        Dag-Erling Smorgrav <des@flood.ping.uio.no>, Lars Fredriksen <lars@odin-corporation.com>, current@FreeBSD.ORG
Subject:   Re: default route not set up??
Message-ID:  <xzpiuadvsgw.fsf@flood.ping.uio.no>
In-Reply-To: "Daniel C. Sobral"'s message of "Sat, 01 May 1999 21:39:39 %2B0900"
References:  <372A1AE6.4E2738D4@odin-corporation.com> <xzpn1zpvyup.fsf@flood.ping.uio.no> <372AF60B.E11A6989@newsguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Daniel C. Sobral" <dcs@newsguy.com> 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




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