FreeBSD Bugzilla – Attachment 235827 Details for
Bug 265761
rtadvd(8) should also deprecate prefix on shutdown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
deprecate prefix on rtadvd shutdown
rtadv_shutdown_deprecate_prefix_20220810.patch (text/plain), 843 bytes, created by
Frank Behrens
on 2022-08-10 16:53:39 UTC
(
hide
)
Description:
deprecate prefix on rtadvd shutdown
Filename:
MIME Type:
Creator:
Frank Behrens
Created:
2022-08-10 16:53:39 UTC
Size:
843 bytes
patch
obsolete
>diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c >index 391c95c9bd..bf2a44cebf 100644 >--- a/usr.sbin/rtadvd/rtadvd.c >+++ b/usr.sbin/rtadvd/rtadvd.c >@@ -369,6 +369,7 @@ rtadvd_shutdown(void) > { > struct ifinfo *ifi; > struct rainfo *rai; >+ struct prefix *prefix; > struct rdnss *rdn; > struct dnssl *dns; > >@@ -411,6 +412,10 @@ rtadvd_shutdown(void) > > TAILQ_FOREACH(rai, &railist, rai_next) { > rai->rai_lifetime = 0; >+ TAILQ_FOREACH(prefix, &rai->rai_prefix, pfx_next) { >+ prefix->pfx_validlifetime = 0; >+ prefix->pfx_preflifetime = 0; >+ } > TAILQ_FOREACH(rdn, &rai->rai_rdnss, rd_next) > rdn->rd_ltime = 0; > TAILQ_FOREACH(dns, &rai->rai_dnssl, dn_next) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265761
: 235827 |
242978