From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:35310 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753191AbeB0ONd (ORCPT ); Tue, 27 Feb 2018 09:13:33 -0500 Date: Tue, 27 Feb 2018 15:13:28 +0100 From: Sabrina Dubroca To: David Miller Cc: dsahern@gmail.com, netdev@vger.kernel.org Subject: Re: [PATCH net-next] ipv6: allow userspace to add IFA_F_OPTIMISTIC addresses Message-ID: <20180227141328.GA15131@bistromath.localdomain> References: <20180226154132.GA7083@bistromath.localdomain> <20180226.105711.81890471902412308.davem@davemloft.net> <20180226165619.GA10603@bistromath.localdomain> <20180226.121127.2237252602192340288.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180226.121127.2237252602192340288.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: 2018-02-26, 12:11:27 -0500, David Miller wrote: > From: Sabrina Dubroca > Date: Mon, 26 Feb 2018 17:56:19 +0100 > > > 2018-02-26, 10:57:11 -0500, David Miller wrote: > >> Userland is now repsonsible for implementing correct behavior when it > >> takes over this task, and therefore the kernel has no say in the > >> matter of proper ipv6 neighbor discovery and addrconf behavior. > > > > As an aside, that's also the case whenever userland uses packet > > sockets. > > When you use packet sockets, all bets are off and it is clearly the > case that the user gets to keep the broken pieces when things go > wrong. Ok, I see your point. > That's completely different to this case, which is a bonfide explicit > allowance for userspace to take over these fundamental protocol tasks > from the kernel. This is not letting userspace take over. On the contrary, it allows userspace to take advantage of the kernel's DAD, without suffering the delay. The alternative, without optimistic DAD, would be to completely disable DAD done by the kernel. This follows RFC 4429, which explicitly allows optimistic DAD for addresses generated by (among other mechanisms) DHCPv6. -- Sabrina