Since 748b510477b3 netif only waits for DAD if one of the
interfaces it started has a tentative address, and then
only polls those interfaces. Child interfaces (vlans_IF)
are created and configured from within their parent's
ifn_start, so they are never looked at.
With Optimistic DAD the parent's autoconfigured addresses
are not tentative by the time rtsol returns, so netif
returns at once while a manually configured address on a
child is still tentative, and services started later fail
to bind to it with EADDRNOTAVAIL. The same happens if
the parent has no IPv6 configuration at all.
Rather than work out the names of the children a second
time, check all interfaces which are up once everything
is started, and wait only if an address is tentative.
The wait remains bounded to two iterations of dad_count,
which is what the fixed sleep used to amount to by
default. Interfaces which are down are skipped, as their
addresses stay tentative until they are brought up.
Also, network6_gettentative() is herein replaced by
network6_hastentative(), which returns a status rather
than a count that would wrap at 256.
Reported by: llm-postcr
MFC after: 1 week
Fixes: 748b510477b3 ("IPv6: rc boot time improvements")