From owner-cvs-all@FreeBSD.ORG Mon Apr 14 00:33:46 2008 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2AA11065673 for ; Mon, 14 Apr 2008 00:33:46 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by mx1.freebsd.org (Postfix) with ESMTP id 7C0098FC1F for ; Mon, 14 Apr 2008 00:33:46 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so1378828wfa.7 for ; Sun, 13 Apr 2008 17:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=DUZ9FRBRrqFQEft70QInE7RDFRzCCYXcXYbRBl3JXrY=; b=sSLil+KVV0Kce5aOc7iOZa3ewEMMPryn7mQn6XY515eUI6aCWOUR/vWj+IH2oJqg+u6SMnmb7EDVZJbbg/yKOLExmdYrtDQ+J55L6ZHCOZQW7bXLcUvsLMYbXe+j0qtngk2ZC0Vv/gxm3n5GsdIt8yHB42XtJ/K9RtX88IGtM70= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=JkPOjAlLHxanGRaV5nyILgtOmFmhAEr5RnxbsPOPZ8laE18UcB9jH+4OnoaA0Khrf2KOWHgefyxOyJmBfWHhucpRSZK1TS41oL7ITLTtTXWNMpqwj4a1XpMhjObB/HQUkMk7iBja/xpwdiXB01Q4M3JSTspmSqg48z9e84l2hQE= Received: by 10.142.226.2 with SMTP id y2mr1612769wfg.137.1208133226009; Sun, 13 Apr 2008 17:33:46 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id 24sm10568249wfc.18.2008.04.13.17.33.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Apr 2008 17:33:44 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m3E0XcjG015803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Apr 2008 09:33:38 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m3E0XbOw015802; Mon, 14 Apr 2008 09:33:37 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 14 Apr 2008 09:33:37 +0900 From: Pyun YongHyeon To: Qing Li Message-ID: <20080414003337.GA15616@cdnetworks.co.kr> References: <200804130545.m3D5jEtd081771@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804130545.m3D5jEtd081771@repoman.freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 00:33:46 -0000 On Sun, Apr 13, 2008 at 05:45:14AM +0000, Qing Li wrote: > qingli 2008-04-13 05:45:14 UTC > > FreeBSD src repository > > Modified files: > sys/conf files options > sys/net radix.c radix.h route.c route.h rtsock.c > sys/netinet in_proto.c ip_output.c > sys/netinet6 in6_proto.c in6_src.c nd6_nbr.c > 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, > > route add -net 192.103.54.0/24 10.9.44.1 > route add -net 192.103.54.0/24 10.9.44.2 > > 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" > > Multiple default routes can also be inserted. Here is the netstat > output: > > default 10.2.5.1 UGS 0 3074 bge0 => > default 10.2.5.2 UGS 0 0 bge0 > > 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, > > route delete default > > would fail and trigger the following error message: > > "route: writing to routing socket: No such process" > "delete net default: not in table" > > On the other hand, > > route delete default 10.2.5.2 > > would be successful: "delete net default: gateway 10.2.5.2" > > One does not have to specify a gateway if there is only a single > route for a particular destination. > > 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. > > Reviewed by: robert, sam, gnn, julian, kmacy > Nice work! -- Regards, Pyun YongHyeon