Lines Matching refs:lifetime
56 int sd_dhcp_lease_get_lifetime(sd_dhcp_lease *lease, uint32_t *lifetime) { in sd_dhcp_lease_get_lifetime() argument
58 assert_return(lifetime, -EINVAL); in sd_dhcp_lease_get_lifetime()
60 if (lease->lifetime <= 0) in sd_dhcp_lease_get_lifetime()
63 *lifetime = lease->lifetime; in sd_dhcp_lease_get_lifetime()
635 r = lease_parse_u32(option, len, &lease->lifetime, 1); in dhcp_lease_parse_options()
975 uint32_t t1, t2, lifetime; in dhcp_lease_save() local
1029 r = sd_dhcp_lease_get_lifetime(lease, &lifetime); in dhcp_lease_save()
1031 fprintf(f, "LIFETIME=%" PRIu32 "\n", lifetime); in dhcp_lease_save()
1161 *lifetime = NULL, in dhcp_lease_load() local
1202 "LIFETIME", &lifetime, in dhcp_lease_load()
1363 if (lifetime) { in dhcp_lease_load()
1364 r = safe_atou32(lifetime, &lease->lifetime); in dhcp_lease_load()
1366 log_debug_errno(r, "Failed to parse lifetime %s, ignoring: %m", lifetime); in dhcp_lease_load()