Why default route is not installed last?

Xin Li delphij at delphij.net
Thu Aug 22 20:13:52 UTC 2013


-----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 at 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-----
-------------- next part --------------
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


More information about the freebsd-net mailing list