Date: Mon, 14 Apr 2008 09:48:17 -0400 From: Coleman Kane <cokane@FreeBSD.org> To: pyunyh@gmail.com Cc: Qing Li <qingli@FreeBSD.org>, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/conf files options src/sys/net radix.c radix.h route.c route.h rtsock.c src/sys/netinet in_proto.c ip_output.c src/sys/netinet6 in6_proto.c in6_src.c nd6_nbr.c Message-ID: <1208180897.1279.27.camel@localhost> In-Reply-To: <20080414003337.GA15616@cdnetworks.co.kr> References: <200804130545.m3D5jEtd081771@repoman.freebsd.org> <20080414003337.GA15616@cdnetworks.co.kr>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-w4YQF8bXgc8VCBqHKldG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2008-04-14 at 09:33 +0900, Pyun YongHyeon wrote: > On Sun, Apr 13, 2008 at 05:45:14AM +0000, Qing Li wrote: > > qingli 2008-04-13 05:45:14 UTC > >=20 > > FreeBSD src repository > >=20 > > Modified files: > > sys/conf files options=20 > > sys/net radix.c radix.h route.c route.h rtsock.c=20 > > sys/netinet in_proto.c ip_output.c=20 > > sys/netinet6 in6_proto.c in6_src.c nd6_nbr.c=20 > > Log: > > This patch provides the back end support for equal-cost multi-path > > (ECMP) for both IPv4 and IPv6. Previously, multipath route insertion > > is disallowed. For example, > > =20 > > route add -net 192.103.54.0/24 10.9.44.1 > > route add -net 192.103.54.0/24 10.9.44.2 > > =20 > > The second route insertion will trigger an error message of > > "add net 192.103.54.0/24: gateway 10.2.5.2: route already in table" > > =20 > > Multiple default routes can also be inserted. Here is the netstat > > output: > > =20 > > default 10.2.5.1 UGS 0 3074 bge0 =3D> > > default 10.2.5.2 UGS 0 0 bge0 > > =20 > > When multipath routes exist, the "route delete" command requires > > a specific gateway to be specified or else an error message would > > be displayed. For example, > > =20 > > route delete default > > =20 > > would fail and trigger the following error message: > > =20 > > "route: writing to routing socket: No such process" > > "delete net default: not in table" > > =20 > > On the other hand, > > =20 > > route delete default 10.2.5.2 > > =20 > > would be successful: "delete net default: gateway 10.2.5.2" > > =20 > > One does not have to specify a gateway if there is only a single > > route for a particular destination. > > =20 > > I need to perform more testings on address aliases and multiple > > interfaces that have the same IP prefixes. This patch as it > > stands today is not yet ready for prime time. Therefore, the ECMP > > code fragments are fully guarded by the RADIX_MPATH macro. > > Include the "options RADIX_MPATH" in the kernel configuration > > to enable this feature. > > =20 > > Reviewed by: robert, sam, gnn, julian, kmacy > > =20 >=20 > Nice work! >=20 Congrats! Thank you for this. --=20 Coleman --=-w4YQF8bXgc8VCBqHKldG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEABECAAYFAkgDYKAACgkQcMSxQcXat5cqTgCfUpoIJ3jMhJfK7GKotXbUfWnd bLwAn3JxygkhYzPNe5/Njr59AiiKsNh/ =WIaz -----END PGP SIGNATURE----- --=-w4YQF8bXgc8VCBqHKldG--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1208180897.1279.27.camel>