NDiscDNSSL *dnssl;
NDiscRDNSS *rdnss;
NDiscCaptivePortal *cp;
+ NDiscPREF64 *p64;
Address *address;
Route *route;
int r = 0, k;
updated = true;
}
+ SET_FOREACH(p64, link->ndisc_pref64) {
+ if (p64->lifetime_usec >= timestamp_usec)
+ continue; /* the pref64 prefix is still valid */
+
+ free(set_remove(link->ndisc_pref64, p64));
+ /* The pref64 prefix is not exported through the state file, hence it is not necessary to set
+ * the 'updated' flag. */
+ }
+
if (updated)
link_dirty(link);
NDiscCaptivePortal *cp;
NDiscDNSSL *dnssl;
NDiscRDNSS *rdnss;
+ NDiscPREF64 *p64;
Address *address;
Route *route;
int r;
SET_FOREACH(cp, link->ndisc_captive_portals)
lifetime_usec = MIN(lifetime_usec, cp->lifetime_usec);
+ SET_FOREACH(p64, link->ndisc_pref64)
+ lifetime_usec = MIN(lifetime_usec, p64->lifetime_usec);
+
if (lifetime_usec == USEC_INFINITY)
return 0;