From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Frederic Sowa Subject: Re: [PATCH] ipv6: don't call addrconf_dst_alloc again when enable lo Date: Thu, 2 Jan 2014 09:32:00 +0100 Message-ID: <20140102083200.GD22494@order.stressinduktion.org> References: <1371352470-3226-1-git-send-email-gaofeng@cn.fujitsu.com> <20130619.230532.1329281330568271336.davem@davemloft.net> <20131231035718.GB27636@order.stressinduktion.org> <52C4FDBE.5030607@huawei.com> <20140102060318.GA22494@order.stressinduktion.org> <52C51FB4.3000008@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: netdev@vger.kernel.org To: chenweilong Return-path: Received: from order.stressinduktion.org ([87.106.68.36]:34678 "EHLO order.stressinduktion.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751694AbaABIcB (ORCPT ); Thu, 2 Jan 2014 03:32:01 -0500 Content-Disposition: inline In-Reply-To: <52C51FB4.3000008@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Jan 02, 2014 at 04:13:40PM +0800, chenweilong wrote: > Can you give more explanation about this please? If you look at the routing table for local addresses (ip -6 route list table local), you see that every address which is RTF_LOCAL (and thus passes up the packets via ip6_input) has as its device the loopback device. In case you shutdown loopback you clear all those routes, thus incoming packets won't find the corresponding rt6_info which directs the packets to passed up the stack. I guess it was done to satisfy the scoped architecture of IPv6. Does this help you?