Home
last modified time | relevance | path

Searched refs:lifetime_sec (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/network/
Dnetworkd-ndisc.c299 uint16_t lifetime_sec; in ndisc_router_process_default() local
312 r = sd_ndisc_router_get_lifetime(rt, &lifetime_sec); in ndisc_router_process_default()
316 if (lifetime_sec == 0) /* not a default router */ in ndisc_router_process_default()
323 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_default()
495 uint32_t lifetime_sec; in ndisc_router_process_onlink_prefix() local
506 r = sd_ndisc_router_prefix_get_valid_lifetime(rt, &lifetime_sec); in ndisc_router_process_onlink_prefix()
510 if (lifetime_sec == 0) in ndisc_router_process_onlink_prefix()
528 route->lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_onlink_prefix()
595 uint32_t lifetime_sec; in ndisc_router_process_route() local
604 r = sd_ndisc_router_route_get_lifetime(rt, &lifetime_sec); in ndisc_router_process_route()
[all …]
Dnetworkd-dhcp-prefix-delegation.c873 uint32_t lifetime_sec; in dhcp4_pd_assign_subnet_prefix() local
885 r = sd_dhcp_lease_get_lifetime(uplink->dhcp_lease, &lifetime_sec); in dhcp4_pd_assign_subnet_prefix()
889 lifetime_usec = usec_add(lifetime_sec * USEC_PER_SEC, now(CLOCK_BOOTTIME)); in dhcp4_pd_assign_subnet_prefix()
945 uint32_t lifetime_sec; in dhcp4_pd_prefix_acquired() local
957 r = sd_dhcp_lease_get_lifetime(uplink->dhcp_lease, &lifetime_sec); in dhcp4_pd_prefix_acquired()
961 lifetime_usec = usec_add(lifetime_sec * USEC_PER_SEC, now(CLOCK_BOOTTIME)); in dhcp4_pd_prefix_acquired()
Dnetworkd-dhcp4.c858 uint32_t lifetime_sec; in dhcp4_request_address() local
860 r = sd_dhcp_lease_get_lifetime(link->dhcp_lease, &lifetime_sec); in dhcp4_request_address()
864 lifetime_usec = usec_add(lifetime_sec * USEC_PER_SEC, now(CLOCK_BOOTTIME)); in dhcp4_request_address()