/systemd-251/src/network/ |
D | test-networkd-address.c | 7 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()
|
D | networkd-address.h | 70 #define FORMAT_LIFETIME(lifetime) \ argument 71 …ifetime((char[FORMAT_TIMESPAN_MAX+STRLEN("for ")]){}, FORMAT_TIMESPAN_MAX+STRLEN("for "), lifetime)
|
D | networkd-radv.c | 169 .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()
|
D | networkd-radv.h | 52 usec_t lifetime; member
|
/systemd-251/src/libsystemd-network/ |
D | sd-dhcp-lease.c | 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() [all …]
|
D | sd-dhcp-client.c | 771 #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 …]
|
D | radv-internal.h | 73 be32_t lifetime; member 152 be32_t lifetime; \
|
D | sd-radv.c | 227 … 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()
|
D | test-ndisc-rs.c | 36 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()
|
D | ndisc-router.h | 26 uint16_t lifetime; member
|
D | sd-dhcp-server.c | 584 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()
|
D | dhcp-lease-internal.h | 35 uint32_t lifetime; member
|
D | dhcp-server-internal.h | 103 uint32_t lifetime; member
|
D | ndisc-router.c | 97 rt->lifetime = be16toh(a->nd_ra_router_lifetime); in ndisc_router_parse() 236 *ret_lifetime = rt->lifetime; in sd_ndisc_router_get_lifetime()
|
D | sd-ndisc.c | 195 rt->lifetime); in ndisc_handle_datagram()
|
/systemd-251/src/systemd/ |
D | sd-radv.h | 63 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);
|
D | sd-dhcp-lease.h | 50 int sd_dhcp_lease_get_lifetime(sd_dhcp_lease *lease, uint32_t *lifetime);
|
/systemd-251/test/test-network/conf/ |
D | isc-dhcpd-dhcp6pd.conf | 2 preferred-lifetime 604800;
|
/systemd-251/docs/ |
D | DESKTOP_ENVIRONMENTS.md | 89 * Should application lifetime be bound to the session?
|
D | CONTRIBUTING.md | 88 Symbol versioning and the compiler's deprecated attribute should be used when managing the lifetime…
|
D | CONTAINER_INTERFACE.md | 41 not close the controlling pty during systemd's lifetime. PID 1 will close
|
/systemd-251/ |
D | NEWS | 3424 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
|