/systemd/src/systemd/ |
H A D | sd-ndisc.h | 39 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 D | sd-dhcp-lease.h | 40 int sd_dhcp_lease_get_lifetime(sd_dhcp_lease *lease, uint32_t *lifetime);
|
/systemd/src/network/ |
H A D | networkd-ndisc.c | 104 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 D | networkd-dhcp4.c | 284 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 D | networkd-route.h | 49 usec_t lifetime; member in struct:Route
|
H A D | networkd-route.c | 42 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 D | networkd-link.c | 2337 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 D | sd-dhcp-client.c | 807 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 D | dhcp-lease-internal.h | 52 uint32_t lifetime; member in struct:sd_dhcp_lease
|
H A D | dhcp-server-internal.h | 82 uint32_t lifetime; member in struct:DHCPRequest
|
H A D | sd-dhcp-lease.c | 66 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 D | sd-dhcp-server.c | 456 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 D | sd-ndisc.c | 371 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 D | test-ndisc-rs.c | 86 static void test_rs_done(sd_ndisc *nd, uint8_t flags, const struct in6_addr *gateway, unsigned lifetime, int pref, void *userdata) { argument
|