Home
last modified time | relevance | path

Searched refs:lifetime_usec (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/libsystemd-network/
Dsd-radv.c41 .lifetime_usec = RADV_DEFAULT_ROUTER_LIFETIME_USEC, in sd_radv_new()
132 static bool router_lifetime_is_valid(usec_t lifetime_usec) { in router_lifetime_is_valid() argument
133 return lifetime_usec == 0 || in router_lifetime_is_valid()
134 (lifetime_usec >= RADV_MIN_ROUTER_LIFETIME_USEC && in router_lifetime_is_valid()
135 lifetime_usec <= RADV_MAX_ROUTER_LIFETIME_USEC); in router_lifetime_is_valid()
150 static int radv_send(sd_radv *ra, const struct in6_addr *dst, usec_t lifetime_usec) { in radv_send() argument
182 assert(router_lifetime_is_valid(lifetime_usec)); in radv_send()
195 adv.nd_ra_router_lifetime = htobe16(DIV_ROUND_UP(lifetime_usec, USEC_PER_SEC)); in radv_send()
228 rt->lifetime_usec)); in radv_send()
305 r = radv_send(ra, &src, ra->lifetime_usec); in radv_recv()
[all …]
Dradv-internal.h90 usec_t lifetime_usec; /* timespan */ member
169 usec_t lifetime_usec; member
/systemd-251/src/network/
Dnetworkd-ndisc.c297 usec_t lifetime_usec, timestamp_usec; in ndisc_router_process_default() local
323 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_default()
361 route->lifetime_usec = lifetime_usec; in ndisc_router_process_default()
386 route->lifetime_usec = lifetime_usec; in ndisc_router_process_default()
528 route->lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_onlink_prefix()
669 route->lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_route()
694 usec_t lifetime_usec, timestamp_usec; in ndisc_router_process_rdnss() local
723 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_rdnss()
744 rdnss->lifetime_usec = lifetime_usec; in ndisc_router_process_rdnss()
755 .lifetime_usec = lifetime_usec, in ndisc_router_process_rdnss()
[all …]
Dnetworkd-dhcp-prefix-delegation.c307 static int dhcp_pd_request_route(Link *link, const struct in6_addr *prefix, usec_t lifetime_usec) { in dhcp_pd_request_route() argument
329 route->lifetime_usec = lifetime_usec; in dhcp_pd_request_route()
691 usec_t lifetime_usec, in dhcp_request_unreachable_route() argument
729 route->lifetime_usec = lifetime_usec; in dhcp_request_unreachable_route()
752 usec_t lifetime_usec, in dhcp4_request_unreachable_route() argument
755 return dhcp_request_unreachable_route(link, addr, prefixlen, lifetime_usec, in dhcp4_request_unreachable_route()
764 usec_t lifetime_usec, in dhcp6_request_unreachable_route() argument
767 return dhcp_request_unreachable_route(link, addr, prefixlen, lifetime_usec, in dhcp6_request_unreachable_route()
808 …default_gateway_on_6rd_tunnel(Link *link, const struct in_addr *br_address, usec_t lifetime_usec) { in dhcp4_pd_request_default_gateway_on_6rd_tunnel() argument
827 route->lifetime_usec = lifetime_usec; in dhcp4_pd_request_default_gateway_on_6rd_tunnel()
[all …]
Dnetworkd-ndisc.h24 usec_t lifetime_usec; member
34 usec_t lifetime_usec; member
Dnetworkd-route.h73 usec_t lifetime_usec; member
Dnetworkd-route.c37 .lifetime_usec = USEC_INFINITY, in route_new()
1037 if (route->lifetime_usec == USEC_INFINITY) in route_setup_timer()
1045 … route->lifetime_usec, 0, route_expire_handler, route, 0, "route-expiration", true); in route_setup_timer()
1180 if (route->lifetime_usec != USEC_INFINITY) { in route_configure()
1182 …MIN(DIV_ROUND_UP(usec_sub_unsigned(route->lifetime_usec, now(CLOCK_BOOTTIME)), USEC_PER_SEC), UINT… in route_configure()
1410 existing->lifetime_usec = route->lifetime_usec; in link_request_route()
2758 assert(route->lifetime_usec == USEC_INFINITY); in route_section_verify()
Dnetworkd-address.h66 const char* format_lifetime(char *buf, size_t l, usec_t lifetime_usec) _warn_unused_result_;
Dnetworkd-dhcp4.c838 usec_t lifetime_usec; in dhcp4_request_address() local
864 lifetime_usec = usec_add(lifetime_sec * USEC_PER_SEC, now(CLOCK_BOOTTIME)); in dhcp4_request_address()
866 lifetime_usec = USEC_INFINITY; in dhcp4_request_address()
907 addr->lifetime_preferred_usec = lifetime_usec; in dhcp4_request_address()
908 addr->lifetime_valid_usec = lifetime_usec; in dhcp4_request_address()
Dnetworkd-address.c637 const char* format_lifetime(char *buf, size_t l, usec_t lifetime_usec) { in format_lifetime() argument
641 if (lifetime_usec == USEC_INFINITY) in format_lifetime()
646 …assert_se(format_timespan(buf + 4, l - 4, usec_sub_unsigned(lifetime_usec, now(CLOCK_BOOTTIME)), U… in format_lifetime()
Dnetworkd-json.c319 JSON_BUILD_PAIR_FINITE_USEC("LifetimeUSec", route->lifetime_usec), in route_build_json()
/systemd-251/src/systemd/
Dsd-radv.h56 int sd_radv_set_router_lifetime(sd_radv *ra, uint64_t lifetime_usec);
79 int sd_radv_prefix_set_valid_lifetime(sd_radv_prefix *p, uint64_t lifetime_usec, uint64_t valid_unt…
80 int sd_radv_prefix_set_preferred_lifetime(sd_radv_prefix *p, uint64_t lifetime_usec, uint64_t valid…
87 int sd_radv_route_prefix_set_lifetime(sd_radv_route_prefix *p, uint64_t lifetime_usec, uint64_t val…