Page MenuHomeFreeBSD

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

Authored by ae on Tue, Oct 7, 9:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 5:25 AM
Unknown Object (File)
Thu, Oct 9, 11:56 PM
Unknown Object (File)
Thu, Oct 9, 11:56 PM
Unknown Object (File)
Thu, Oct 9, 8:00 PM
Unknown Object (File)
Wed, Oct 8, 11:25 PM
Unknown Object (File)
Wed, Oct 8, 12:26 AM
Unknown Object (File)
Wed, Oct 8, 12:20 AM
Unknown Object (File)
Tue, Oct 7, 7:18 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