Page MenuHomeFreeBSD

rc.d/netif: Don't DAD if lo0 is the only IPv6 IF
ClosedPublic

Authored by cperciva on May 18 2023, 3:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 15, 6:09 AM
Unknown Object (File)
Fri, Mar 15, 6:09 AM
Unknown Object (File)
Fri, Mar 15, 6:08 AM
Unknown Object (File)
Fri, Mar 8, 12:29 AM
Unknown Object (File)
Jan 17 2024, 2:58 PM
Unknown Object (File)
Jan 14 2024, 9:30 AM
Unknown Object (File)
Jan 11 2024, 12:12 PM
Unknown Object (File)
Jan 3 2024, 10:55 PM
Subscribers

Details

Summary

The code in rc.d/netif waiting for IPv6 Duplicate Address Detection if
any network interfaces support IPv6. Unfortunately, since lo0 *always*
has IPv6 enabled, this means unconditionally sleeping, even on systems
which have no external IPv6 interfaces.

Since we presume that there is little risk of a duplicate address being
assigned on lo0, amend the test to wait only if there is an interface
*other than lo0* which supports IPv6.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable