Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2013 13:13:51 -0700
From:      Xin Li <delphij@delphij.net>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>,  freebsd-rc@freebsd.org
Subject:   Why default route is not installed last?
Message-ID:  <521670FF.6080407@delphij.net>

next in thread | raw e-mail | index | archive | help
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 <delphij@delphij.net>    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--



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