Skip to content
Commit a2d3f3e3 authored by Matteo Croce's avatar Matteo Croce Committed by David S. Miller
Browse files

ipv6: fix net.ipv6.conf.all.accept_dad behaviour for real

Commit 35e015e1 ("ipv6: fix net.ipv6.conf.all interface DAD handlers")
was intended to affect accept_dad flag handling in such a way that
DAD operation and mode on a given interface would be selected
according to the maximum value of conf/{all,interface}/accept_dad.

However, addrconf_dad_begin() checks for particular cases in which we
need to skip DAD, and this check was modified in the wrong way.

Namely, it was modified so that, if the accept_dad flag is 0 for the
given interface *or* for all interfaces, DAD would be skipped.

We have instead to skip DAD if accept_dad is 0 for the given interface
*and* for all interfaces.

Fixes: 35e015e1

 ("ipv6: fix net.ipv6.conf.all interface DAD handlers")
Acked-by: default avatarStefano Brivio <sbrivio@redhat.com>
Signed-off-by: default avatarMatteo Croce <mcroce@redhat.com>
Reported-by: default avatarErik Kline <ek@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6151b8b3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment