Home
last modified time | relevance | path

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

/systemd-251/src/network/
Dtest-networkd-address.c7 static void test_FORMAT_LIFETIME_one(usec_t lifetime, const char *expected) { in test_FORMAT_LIFETIME_one() argument
8 const char *t = FORMAT_LIFETIME(lifetime); in test_FORMAT_LIFETIME_one()
10 log_debug(USEC_FMT " → \"%s\" (expected \"%s\")", lifetime, t, expected); in test_FORMAT_LIFETIME_one()
Dnetworkd-address.h70 #define FORMAT_LIFETIME(lifetime) \ argument
71 …ifetime((char[FORMAT_TIMESPAN_MAX+STRLEN("for ")]){}, FORMAT_TIMESPAN_MAX+STRLEN("for "), lifetime)
Dnetworkd-radv.c169 .lifetime = RADV_DEFAULT_VALID_LIFETIME_USEC, in route_prefix_new_static()
290 r = sd_radv_route_prefix_set_lifetime(p, prefix->lifetime, USEC_INFINITY); in radv_set_route_prefix()
765 if (p->lifetime == 0) in route_prefix_section_verify()
1076 p->lifetime = usec; in config_parse_route_prefix_lifetime()
1276 usec_t usec, *lifetime = data; in config_parse_router_lifetime() local
1286 *lifetime = RADV_DEFAULT_ROUTER_LIFETIME_USEC; in config_parse_router_lifetime()
1312 *lifetime = usec; in config_parse_router_lifetime()
Dnetworkd-radv.h52 usec_t lifetime; member
/systemd-251/src/libsystemd-network/
Dsd-dhcp-lease.c56 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()
[all …]
Dsd-dhcp-client.c771 #define T1_DEFAULT(lifetime) ((lifetime) / 2) argument
772 #define T2_DEFAULT(lifetime) (((lifetime) * 7) / 8) argument
1534 if (lease->lifetime == 0 && client->fallback_lease_lifetime > 0) in client_handle_offer()
1535 lease->lifetime = client->fallback_lease_lifetime; in client_handle_offer()
1539 lease->lifetime == 0) { in client_handle_offer()
1636 lease->lifetime == 0) { in client_handle_ack()
1676 assert(client->lease->lifetime); in client_set_lease_timeouts()
1679 if (client->lease->lifetime == 0xffffffff) { in client_set_lease_timeouts()
1693 if (client->lease->t2 == 0 || client->lease->t2 >= client->lease->lifetime) in client_set_lease_timeouts()
1694 client->lease->t2 = T2_DEFAULT(client->lease->lifetime); in client_set_lease_timeouts()
[all …]
Dradv-internal.h73 be32_t lifetime; member
152 be32_t lifetime; \
Dsd-radv.c227 … rt->opt.lifetime = usec_to_be32_sec(MIN(usec_sub_unsigned(rt->valid_until, time_now), in radv_send()
759 uint32_t lifetime, in sd_radv_set_rdnss() argument
784 opt_rdnss->lifetime = htobe32(lifetime); in sd_radv_set_rdnss()
797 uint32_t lifetime, in sd_radv_set_dnssl() argument
822 opt_dnssl->lifetime = htobe32(lifetime); in sd_radv_set_dnssl()
Dtest-ndisc-rs.c36 uint16_t lifetime; in router_dump() local
66 assert_se(sd_ndisc_router_get_lifetime(rt, &lifetime) >= 0); in router_dump()
67 log_info("Lifetime: %" PRIu16, lifetime); in router_dump()
Dndisc-router.h26 uint16_t lifetime; member
Dsd-dhcp-server.c584 lease_time = htobe32(req->lifetime); in server_send_offer_or_ack()
743 req->lifetime = unaligned_read_be32(option); in parse_request()
842 if (req->lifetime <= 0) in ensure_sane_request()
843 req->lifetime = MAX(1ULL, server->default_lease_time); in ensure_sane_request()
845 if (server->max_lease_time > 0 && req->lifetime > server->max_lease_time) in ensure_sane_request()
846 req->lifetime = server->max_lease_time; in ensure_sane_request()
994 expiration = usec_add(req->lifetime * USEC_PER_SEC, time_now); in server_ack_request()
Ddhcp-lease-internal.h35 uint32_t lifetime; member
Ddhcp-server-internal.h103 uint32_t lifetime; member
Dndisc-router.c97 rt->lifetime = be16toh(a->nd_ra_router_lifetime); in ndisc_router_parse()
236 *ret_lifetime = rt->lifetime; in sd_ndisc_router_get_lifetime()
Dsd-ndisc.c195 rt->lifetime); in ndisc_handle_datagram()
/systemd-251/src/systemd/
Dsd-radv.h63 int sd_radv_set_rdnss(sd_radv *ra, uint32_t lifetime,
65 int sd_radv_set_dnssl(sd_radv *ra, uint32_t lifetime, char **search_list);
Dsd-dhcp-lease.h50 int sd_dhcp_lease_get_lifetime(sd_dhcp_lease *lease, uint32_t *lifetime);
/systemd-251/test/test-network/conf/
Disc-dhcpd-dhcp6pd.conf2 preferred-lifetime 604800;
/systemd-251/docs/
DDESKTOP_ENVIRONMENTS.md89 * Should application lifetime be bound to the session?
DCONTRIBUTING.md88 Symbol versioning and the compiler's deprecated attribute should be used when managing the lifetime
DCONTAINER_INTERFACE.md41 not close the controlling pty during systemd's lifetime. PID 1 will close
/systemd-251/
DNEWS3424 used to configure how to process leases that lack a lifetime option.
7566 * Support for dynamically creating users for the lifetime of a service
7568 will be allocated from the range 61184…65519 for the lifetime of the
8218 configured in .network file to configure the lifetime intended for an
11279 directory's lifetime is bound to the daemon runtime and that