Searched refs:lifetime (Results 1 - 14 of 14) sorted by relevance

/systemd/src/systemd/
H A Dsd-ndisc.h39 typedef void(*sd_ndisc_router_callback_t)(sd_ndisc *nd, uint8_t flags, const struct in6_addr *gateway, unsigned lifetime, int pref, void *userdata);
41 unsigned lifetime, void *userdata);
H A Dsd-dhcp-lease.h40 int sd_dhcp_lease_get_lifetime(sd_dhcp_lease *lease, uint32_t *lifetime);
/systemd/src/network/
H A Dnetworkd-ndisc.c104 static void ndisc_prefix_onlink_handler(sd_ndisc *nd, const struct in6_addr *prefix, unsigned prefixlen, unsigned lifetime, void *userdata) { argument
130 route->lifetime = time_now + lifetime * USEC_PER_SEC;
142 static void ndisc_router_handler(sd_ndisc *nd, uint8_t flags, const struct in6_addr *gateway, unsigned lifetime, int pref, void *userdata) { argument
180 route->lifetime = time_now + lifetime * USEC_PER_SEC;
H A Dnetworkd-dhcp4.c284 uint32_t lifetime) {
291 assert(lifetime);
301 addr->cinfo.ifa_prefered = lifetime;
302 addr->cinfo.ifa_valid = lifetime;
306 /* allow reusing an existing address and simply update its lifetime
319 uint32_t lifetime = CACHE_INFO_INFINITY_LIFE_TIME; local
344 r = sd_dhcp_lease_get_lifetime(link->dhcp_lease, &lifetime);
346 return log_link_warning_errno(link, r, "DHCP error: no lifetime: %m");
349 r = dhcp4_update_address(link, &address, &netmask, lifetime);
365 uint32_t lifetime local
281 dhcp4_update_address(Link *link, struct in_addr *address, struct in_addr *netmask, uint32_t lifetime) argument
[all...]
H A Dnetworkd-route.h49 usec_t lifetime; member in struct:Route
H A Dnetworkd-route.c42 route->lifetime = USEC_INFINITY;
431 usec_t lifetime; local
516 lifetime = route->lifetime;
523 route->lifetime = lifetime;
525 if (route->lifetime != USEC_INFINITY) {
527 route->lifetime, 0, route_expire_handler, route);
H A Dnetworkd-link.c2337 usec_t lifetime; local
2359 r = sscanf(prefixlen_str, "%hhu/%hhu/%"SCNu32"/%hhu/"USEC_FMT, &prefixlen, &tos, &priority, &table, &lifetime);
2377 if (lifetime != USEC_INFINITY) {
2378 r = sd_event_add_time(link->manager->event, &expire, clock_boottime_or_monotonic(), lifetime,
2384 route->lifetime = lifetime;
2883 route->dst_prefixlen, route->tos, route->priority, route->table, route->lifetime);
/systemd/src/libsystemd-network/
H A Dsd-dhcp-client.c807 time_left = (client->lease->lifetime - client->lease->t2) / 2;
1111 lease->lifetime == 0) {
1112 log_dhcp_client(client, "received lease lacks address, server address or lease lifetime, ignoring");
1183 lease->lifetime == 0) {
1185 "address or lease lifetime, ignoring");
1219 static uint64_t client_compute_timeout(sd_dhcp_client *client, uint32_t lifetime, double factor) { argument
1222 assert(lifetime > 0);
1224 if (lifetime > 3)
1225 lifetime -= 3;
1227 lifetime
[all...]
H A Ddhcp-lease-internal.h52 uint32_t lifetime; member in struct:sd_dhcp_lease
H A Ddhcp-server-internal.h82 uint32_t lifetime; member in struct:DHCPRequest
H A Dsd-dhcp-lease.c66 int sd_dhcp_lease_get_lifetime(sd_dhcp_lease *lease, uint32_t *lifetime) { argument
68 assert_return(lifetime, -EINVAL);
70 if (lease->lifetime <= 0)
73 *lifetime = lease->lifetime;
211 * Route objects have the same lifetime of the lease and must not be freed.
521 r = lease_parse_u32(option, len, &lease->lifetime, 1);
737 uint32_t t1, t2, lifetime; local
788 r = sd_dhcp_lease_get_lifetime(lease, &lifetime);
790 fprintf(f, "LIFETIME=%" PRIu32 "\n", lifetime);
893 *lifetime = NULL, local
[all...]
H A Dsd-dhcp-server.c456 lease_time = htobe32(req->lifetime);
493 lease_time = htobe32(req->lifetime);
599 req->lifetime = be32toh(*(be32_t*)option);
673 if (req->lifetime <= 0)
674 req->lifetime = MAX(1ULL, server->default_lease_time);
676 if (server->max_lease_time > 0 && req->lifetime > server->max_lease_time)
677 req->lifetime = server->max_lease_time;
876 lease->expiration = req->lifetime * USEC_PER_SEC + time_now;
H A Dsd-ndisc.c371 log_ndisc(nd, "New prefix "SD_NDISC_ADDRESS_FORMAT_STR"/%d lifetime %d expires in %s",
392 log_ndisc(nd, "Update prefix "SD_NDISC_ADDRESS_FORMAT_STR"/%d lifetime %d expires in %s",
493 unsigned lifetime; local
582 lifetime = be16toh(ra->nd_ra_router_lifetime);
584 log_ndisc(nd, "Received Router Advertisement: flags %s preference %s lifetime %u sec",
587 lifetime);
596 nd->router_callback(nd, stateful, gw, lifetime, pref, nd->userdata);
H A Dtest-ndisc-rs.c86 static void test_rs_done(sd_ndisc *nd, uint8_t flags, const struct in6_addr *gateway, unsigned lifetime, int pref, void *userdata) { argument

Completed in 824 milliseconds