Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp98468pxv; Thu, 24 Jun 2021 03:47:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRpVbTbJeGdeDMSFq/jYz5Gpyys5hLkPywOQIgilUsYrNl45mFB91K8SOcqDIfPiLyew2V X-Received: by 2002:a92:a304:: with SMTP id a4mr3247595ili.197.1624531663724; Thu, 24 Jun 2021 03:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624531663; cv=none; d=google.com; s=arc-20160816; b=KJP0ymHA0vOwOAWBrqiDV3knkTPRWeIProVuJNSaDL7C871sQYOcJ4B/cVNhln2Ned XBVXt5U12UTEQYJmEJZR1YiiQS5AWNKFKI2F6uXTTQD8o2EPBg7/3TG/DHPteGYaeYYT Pisrcu+vppEIC/v3KBmLubG3ZDHos4L7T+ISThYlC7w0Q2xCt8TOftI6FmIaX0mBkmsJ 2RCCqAdw3Ps1TAf7++NFKzmXoXRkpcA9Dc9XTLwf+85gWmI9Rg2T3bxlJUiXgG5csioW kf7twt+A1SdT4XdyLoBn/Zyia2tO+h3ieg1arWSmnd+++nxJ9ouZHb3rGsbUo0iJxsm2 dBaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dkP4qpF4eQgNgMU/JV8PcZg5xhVyML+VM8c7LWPulFQ=; b=pgCu0kCUbFq8LTtonaVbzjDppRoMZfusZYzLXmHndpdtBCwmP9dPT1kxRQozdFVXG8 MWFF3X+rCrkSBqQb0dx1J9FS1pb1/JWk1MTKuawAHhHrzLGmdKCMgoI9LaM37aBOjEi+ VB8+g1X+V/uf7Rx4UiWtYgs3fxSWNTLd4IUCOc5SVvHTR0uvZuKXtwVJZ3BdhrXpBl7P 8FbxRZxFR8xFaglZF2bvt9SdBE2ILewm9DGLu/9qlnOEuye389AKUlbRFMb+QxhNUMNZ ltkECp9eoHpeKv3ogoxD+adwxBv+/G75yijwdOFgUkEmDYnFEMqr/qqv2012F7Du36Ed SoEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BioL4KtN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si2840455jaf.47.2021.06.24.03.47.30; Thu, 24 Jun 2021 03:47:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BioL4KtN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232222AbhFXKsJ (ORCPT + 99 others); Thu, 24 Jun 2021 06:48:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:60154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbhFXKsJ (ORCPT ); Thu, 24 Jun 2021 06:48:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3AAFB613FD; Thu, 24 Jun 2021 10:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624531550; bh=7e/uhceb4SsVfqed3rolRWCdLu/v31HwG/8C+2zCGgw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BioL4KtNRS/rKGgQ0TR8pwdsN9Wjc1OeTIiZwyJVntIAL6HrX08P91OloUEh3UfAG +VxZynI4VMIMG2FEAEBq3Pm8i5pygFbCfdFC06awczRWGsLDP2fdhyzKOiGe7QvnwL E7kYltndY19AdGhRWa7MEI7Bs/xegl7uYRGnwojWbC4k+IP1qvn7wZFUxXqi7AQIzK u36+cds+kPEZGMfdOHc38JLdSlqqCFbMJScT/8rRzvMsgFbfnJ+bucgjcBFDhp9Szn GvCNtLTGZxT65+GIzvy+fn72BMlhjTrCSIEfKVARUTHZGh/b/JwDZ+Q0pW1AayDop9 xA8L7Vij9W76g== Date: Thu, 24 Jun 2021 12:45:45 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Alexey Kuznetsov , Hideaki YOSHIFUJI , linux-kernel@vger.kernel.org, Nicolas Dichtel , Andrew Lunn , Russell King , Stephen Hemminger , Phil Sutter Subject: Re: Issues during assigning addresses on point to point interfaces Message-ID: <20210624124545.2b170258@dellmb> In-Reply-To: <20210606151008.7dwx5ukrlvxt4t3k@pali> References: <20210606151008.7dwx5ukrlvxt4t3k@pali> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 6 Jun 2021 17:10:08 +0200 Pali Roh=C3=A1r wrote: > Hello! >=20 > Seems that there is a bug during assigning IP addresses on point to > point interfaces. >=20 > Assigning just one local address works fine: >=20 > ip address add fe80::6 dev ppp1 --> inet6 fe80::6/128 scope link >=20 > Assigning both local and remote peer address also works fine: >=20 > ip address add fe80::7 peer fe80::8 dev ppp1 ---> inet6 fe80::7 > peer fe80::8/128 scope link >=20 > But trying to assign just remote peer address does not work. Moreover > "ip address" call does not fail, it returns zero but instead of > setting remote peer address, it sets local address: >=20 > ip address add peer fe80::5 dev ppp1 --> inet6 fe80::5/128 scope > link >=20 Adding some other people to Cc in order to get their opinions. It seems this bug is there from the beginning, from commit caeaba79009c2 ("ipv6: add support of peer address") https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3Dcaeaba79009c2 Maybe some older user-space utilities use IFA_ADDRESS instead of IFA_LOCAL, and this was done in order to be compatible with them? Marek