Lines Matching refs:cinfo
215 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()
1300 struct ifa_cacheinfo cinfo; in manager_rtnl_process_address() local
1443 r = sd_netlink_message_read_cache_info(message, IFA_CACHEINFO, &cinfo); in manager_rtnl_process_address()
1457 address_set_lifetime(address, &cinfo); in manager_rtnl_process_address()
1461 address_set_lifetime(tmp, &cinfo); in manager_rtnl_process_address()