Page MenuHomeFreeBSD

ipv6: don't complain when deleting an address with prefix length of 128
ClosedPublic

Authored by ae on Oct 7 2025, 9:52 AM.
Tags
None
Referenced Files
F135233697: D52952.id163689.diff
Fri, Nov 7, 7:42 PM
Unknown Object (File)
Wed, Nov 5, 11:14 PM
Unknown Object (File)
Sat, Nov 1, 5:34 PM
Unknown Object (File)
Thu, Oct 30, 5:53 AM
Unknown Object (File)
Tue, Oct 28, 8:17 PM
Unknown Object (File)
Sat, Oct 25, 4:48 PM
Unknown Object (File)
Sat, Oct 25, 4:42 PM
Unknown Object (File)
Sat, Oct 25, 12:23 PM

Details

Summary

Save prefix length in unused field in6_ifaddr->ia_plen, then on remove
check if an address has 128 prefix length, and if so, we don't need to
complain that there is none of related prefixes.

Test Plan

ifconfig lo1 create
ifconfig lo1 inet6 fd00::1/128
ifconfig lo1 inet6 fd00::1/128 -alias

kernel: in6_unlink_ifa: autoconf'ed address fd00::1 has no prefix

Diff Detail

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