From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] ipv6: addrconf: clear IPv6 addresses and routes when losing link Date: Tue, 26 Oct 2010 10:21:45 -0700 (PDT) Message-ID: <20101026.102145.246528067.davem@davemloft.net> References: <4CC708CE.4040404@hp.com> <20101026.101038.260090183.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: brian.haley@hp.com, shemminger@vyatta.com, netdev@vger.kernel.org To: lorenzo@google.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:60105 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757700Ab0JZRVW (ORCPT ); Tue, 26 Oct 2010 13:21:22 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Lorenzo Colitti Date: Tue, 26 Oct 2010 10:13:45 -0700 > Removing autoconfigured addresses is what the kernel currently does > when the link goes down. The patch just makes sure it happens when > carrier is lost as well, since losing link might mean that when > carrier comes back, the host might be on a different link than it was > before. I just think validating that fact would be a better approach than simply assuming link down/up means link change.