From owner-freebsd-net@FreeBSD.ORG Thu Aug 22 20:13:52 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5482B4BF; Thu, 22 Aug 2013 20:13:52 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2AEEE2BD8; Thu, 22 Aug 2013 20:13:52 +0000 (UTC) Received: from zeta.ixsystems.com (unknown [69.198.165.132]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 66FE2577A; Thu, 22 Aug 2013 13:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1377202431; bh=piUmBdF41LIG2AYJcPVVE0wZawA4DkVvR5BoHw2JXxY=; h=Date:From:Reply-To:To:Subject; b=Zde2RDA8+F38HoVh6uRzD7rxj3LfB+Zd3nBI7bwGbgqWdQS66SZ0mgdTSRNOgxRRE 9O0DKVSepRq2Ifo8lJRBhkDN1EaJ4IDOEve8XE4CoN073rkHfnEV4PyKXE9AoNTUAa L1yHMdnMfZqovcDaVb+7eiGzWC59pvHWLQn1Zwgk= Message-ID: <521670FF.6080407@delphij.net> Date: Thu, 22 Aug 2013 13:13:51 -0700 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: "freebsd-net@freebsd.org" , freebsd-rc@freebsd.org Subject: Why default route is not installed last? X-Enigmail-Version: 1.5.1 Content-Type: multipart/mixed; boundary="------------050107070704000908070804" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: d@delphij.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 20:13:52 -0000 This is a multi-part message in MIME format. --------------050107070704000908070804 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi, I've noticed that we do not install default route last (after other static routes). I think we should probably install it last, since the administrator may legitimately configure a static route (e.g. this IPv6 address goes to this interface) that is required by the default route. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBCgAGBQJSFnD/AAoJEG80Jeu8UPuzUx0H/20W31vhhHL56CtjIIGEfbVP yutkQJf7u2VE2cmopqUyjULT82S6dRVkRLuKLjxwStI6zwpWBiBHaB+rWvH+m1Sc VXSI9UT6ZYAxJBJ+4yl0R04qLhFxZqCahOP1YZq6LcKyD4p30hLzDnw3zPTZ1bpr Lpy6ABZ4Ab7o8MrkKDZuRf4pvF9KATI3kbMX1xOs7Ds2NHGDkIxIX0t6knsdA5Is uDw/pe4mzqLhgmYGDVqiSDp2mF/ATbYKPEu865fb/uitwFQhAKNbTe/Idlswdxck KxwtlmPCdJgLmRKkqDAuG6QRAW5lLy+S4xtZsXAoM4TfSyM0/0DkryyooNgMQIY= =TjQm -----END PGP SIGNATURE----- --------------050107070704000908070804 Content-Type: text/plain; charset=UTF-8; name="routing.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="routing.diff" Index: etc/rc.d/routing =================================================================== --- etc/rc.d/routing (revision 254663) +++ etc/rc.d/routing (working copy) @@ -143,7 +143,7 @@ [Nn][Oo] | '') ;; *) - static_routes="_default ${static_routes}" + static_routes="${static_routes} _default" route__default="default ${defaultrouter}" ;; esac @@ -205,7 +205,7 @@ [Nn][Oo] | '') ;; *) - ipv6_static_routes="_default ${ipv6_static_routes}" + ipv6_static_routes="${ipv6_static_routes} _default" ipv6_route__default="default ${ipv6_defaultrouter}" ;; esac --------------050107070704000908070804--