From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Arlott Subject: Re: [Bugme-new] [Bug 8755] New: "ip -6 route change " behaves like "ip -6 route add" Date: Sun, 15 Jul 2007 19:49:07 +0100 Message-ID: <469A6C23.60206@simon.arlott.org.uk> References: <20070714214731.baf38cb8.akpm@linux-foundation.org> <469A382E.6000104@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Andrew Morton , netdev@vger.kernel.org, "bugme-daemon@kernel-bugs.osdl.org" To: Patrick McHardy Return-path: Received: from proxima.lp0.eu ([85.158.45.36]:42866 "EHLO proxima.lp0.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754505AbXGOStM (ORCPT ); Sun, 15 Jul 2007 14:49:12 -0400 In-Reply-To: <469A382E.6000104@trash.net> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 15/07/07 16:07, Patrick McHardy wrote: >>>Changing an existing route: >>># ip -6 r show 2002::/16 >>>2002::/16 dev sit0 metric 1024 expires 4482618sec mtu 1480 advmss 7140 >>>hoplimit 4294967295 >>># ip -6 r change 2002::/16 dev sit0 mtu 1280 >>>RTNETLINK answers: File exists ^ This is clearly a bug, since I'm trying to change an existing route and it gives an error as if it tried to add it. >>>Adding a route using "change": >>># ip -6 r change 2002::/17 dev sit0 mtu 1280 >>># ip -6 r show 2002::/17 >>>2002::/17 dev sit0 metric 1024 expires 21334368sec mtu 1280 advmss 1220 >>>hoplimit 4294967295 ^ This shouldn't be possible! > There is a difference between "add" and "change". "add" will only add a > new address if there isn't already one with the same identity, "change" > will allow to change attributes of an existing address, like flags, > lifetime, ..., or behave similar to "add" in case the address doesn't > already exist. > > What kind of behaviour are you expecting? That "change" would actually change not simply add. It won't let me change anything and in fact can only add instead. Compare it to ipv4 where "change" never adds - "replace" is "change, or add". (Also, "replace" doesn't work for v6 either). -- Simon Arlott