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
F154637487: D40141.id122073.diff
Wed, Apr 29, 2:37 AM
F154635765: D40141.id122073.diff
Wed, Apr 29, 2:31 AM
Unknown Object (File)
Sat, Apr 25, 11:02 PM
Unknown Object (File)
Fri, Apr 24, 7:04 PM
Unknown Object (File)
Fri, Apr 24, 11:10 AM
Unknown Object (File)
Mon, Apr 20, 11:55 PM
Unknown Object (File)
Mon, Apr 20, 2:47 AM
Unknown Object (File)
Thu, Apr 16, 2:44 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 Passed
Unit
No Test Coverage
Build Status
Buildable 51533
Build 48424: arc lint + arc unit