Re: IPv4 DAD per RFC 2131 section 3.1 paragraph 5.
Roy Marples
Tue Jun 30 06:41:46 2015
Hi Todd
On Thursday 25 Jun 2015 22:12:02 Roy Marples wrote:
> On 2015-06-25 20:20, Blanchard, Todd wrote:
> > It appears under linux, IPv4 client DAD does not work. I believe it
> > worked in the past (perhaps previous to 6.8.2). This is an optional
> > item, and is described in the RFC under section 3.1 "The client SHOULD
> > perform a final check on the parameters (e.g., ARP for allocated
> > network address)". Further down, it is a MUST "the client MUST send a
> > DHCPDECLINE" if the client does indeed make this check. The same
> > applies in section 3.2, paragraph 3.
> >
> > There is newer code in dhcp.c regarding IN_IFF_DUPLICATED, but this
> > does not appear to apply to linux. What is the expected behavior
> > regarding IPv4 DAD?
>
> IN_IFF_DUPLICATED (and other IN_IFF_*) indicate the presence of DAD
> checks in the kernel for IPv4 addresses.
> Currently only NetBSD supports this, as you point out, Linux does not.
>
> Still, the expectation is that dhcpcd still handles the result correctly
> regardless of the kernel.
> Admittedly I've not checked the behavior on Linux recently.
I just tested the latest code on Linux and it detects and DECLINES correctly.
Are you seeing otherwise?
Roy
Archive administrator: postmaster@marples.name