forked from freebsd/freebsd-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate ioctl address prefix management from RA prefix management as…
… we have no API for controlling the latter. This fixes a long standing problem where addresses added with non /128 prefixes and non infinite address lifetimes would register a prefix route which would expire. Subsequent calls set new lifetimes for the same address would not affect the prefix route management, so once expired, the prefix route would be impossible to add back as the kernel would remove it. Based on NetBSD changes (and reusing the commit message): sys/netinet6/in6.c 1.216 sys/netinet6/in6.c 1.217 sys/netinet6/in6.c 1.218 sys/netinet6/in6_ifattach.c 1.104 sys/netinet6/nd6_rtr.c 1.119 Also fixes a panic with INVARIANTS set and running "ndp -P" after an IPv6 address is manually added and the same prefix for the address is learned via router advertisment. freebsd#11 0xffffffff805d42b0 in kassert_panic (fmt=0xffffffff80939e3a "prefix %p has referencing addresses") at /usr/src/sys/kern/kern_shutdown.c:723 freebsd#12 0xffffffff807d4049 in nd6_prefix_del (pr=0xfffff800043c0400) at /usr/src/sys/netinet6/nd6_rtr.c:1189 freebsd#13 0xffffffff807caf38 in nd6_ioctl (cmd=<optimized out>, data=<optimized out>, ifp=0xfffff80002337000) at /usr/src/sys/netinet6/nd6.c:1831 PR: 195197
- Loading branch information
Showing
5 changed files
with
142 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.