From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751582AbaA2Kiy (ORCPT ); Wed, 29 Jan 2014 05:38:54 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:59340 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751149AbaA2Kiu (ORCPT ); Wed, 29 Jan 2014 05:38:50 -0500 Message-ID: <52E8DA37.7010208@6wind.com> Date: Wed, 29 Jan 2014 11:38:47 +0100 From: Nicolas Dichtel Reply-To: nicolas.dichtel@6wind.com Organization: 6WIND User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Sohny Thomas , netdev , linux-kernel@vger.kernel.org, yoshfuji@linux-ipv6.org, davem@davemloft.net, kumuda Subject: Re: [PATCH] ipv6: default route for link local address is not added while assigning a address References: <52E8A2AA.3090507@linux.vnet.ibm.com> In-Reply-To: <52E8A2AA.3090507@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 29/01/2014 07:41, Sohny Thomas a écrit : > Resending this on netdev mailing list: > Default route for link local address is configured automatically if > NETWORKING_IPV6=yes is in ifcfg-eth*. > When the route table for the interface is flushed and a new address is added to > the same device with out removing linklocal addr, default route for link local > address has to added by default. > > I have found the issue to be caused by this checkin > > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/net/ipv6?id=62b54dd91567686a1cb118f76a72d5f4764a86dd > > > According to this change : > He removes adding a link local route if any other address is added , applicable > across all interfaces though there's mentioned only lo interface > So below patch fixes for other devices > > Signed-off-by: Sohny THomas Your email client has corrupted the patch, it cannot be applied. Please read Documentation/email-clients.txt About the patch, I still think that the flush is too agressive. Link local routes are marked as 'proto kernel', removing them without the link local address is wrong. With this patch, you will add a link local route even if you don't have a link local address.