Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 28 Sep 2002 00:31:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 28 Sep 2002 00:31:24 -0400 Received: from netcore.fi ([193.94.160.1]:58641 "EHLO netcore.fi") by vger.kernel.org with ESMTP id ; Sat, 28 Sep 2002 00:30:50 -0400 Date: Sat, 28 Sep 2002 07:35:57 +0300 (EEST) From: Pekka Savola To: kuznet@ms2.inr.ac.ru cc: "David S. Miller" , , , , Subject: Re: [PATCH] IPv6: Improvement of Source Address Selection In-Reply-To: <200209280419.IAA02894@sex.inr.ac.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1717 Lines: 45 On Sat, 28 Sep 2002 kuznet@ms2.inr.ac.ru wrote: > Hello! > > > Alexey, I still am not clear, this belongs in the output routing logic > > right? > ... > > where source address selection belongs. > > Yes, it naturally belongs to the time when route is created. > > This is just extending ipv6 routing entry with a field to hold > source address and, generally, making the same work as IPv4 does, > with all the advantages, particularily capability to select preferred > source address via routes set up by admin (RTA_PREFSRC attribute, > "src" in "ip route add"). Umm.. you sure? Isn't putting this logic to routes an oversimplification? Consider e.g. a dummy host which only have a few address (link-local, site-local, global; the last two /64's) and, basically, a default route (plus of course an interface routes for those /64's). When talking to other subnets within the site (ie. those not on the /64) one would have difficulties parsing the source address from the default route, as there would have to be at least two candidates there. Am I missing something obvious here? Alexey's approach should work in some simpler cases, but maybe not all (stuff that's network prefix -independent like home addresses, privacy addresses etc. would be different). -- Pekka Savola "Tell me of difficulties surmounted, Netcore Oy not those you stumble over and fall" Systems. Networks. Security. -- Robert Jordan: A Crown of Swords - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/