Home
last modified time | relevance | path

Searched refs:cinfo (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/network/
Dnetworkd-address.c215 static struct ifa_cacheinfo *address_set_cinfo(const Address *a, struct ifa_cacheinfo *cinfo) { in address_set_cinfo() argument
219 assert(cinfo); in address_set_cinfo()
223 *cinfo = (struct ifa_cacheinfo) { in address_set_cinfo()
228 return cinfo; in address_set_cinfo()
231 static void address_set_lifetime(Address *a, const struct ifa_cacheinfo *cinfo) { in address_set_lifetime() argument
235 assert(cinfo); in address_set_lifetime()
239 if (cinfo->ifa_valid == UINT32_MAX) in address_set_lifetime()
242 a->lifetime_valid_usec = usec_add(cinfo->ifa_valid * USEC_PER_SEC, now_usec); in address_set_lifetime()
244 if (cinfo->ifa_prefered == UINT32_MAX) in address_set_lifetime()
247 a->lifetime_preferred_usec = usec_add(cinfo->ifa_prefered * USEC_PER_SEC, now_usec); in address_set_lifetime()
[all …]