Searched refs:time_now (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/libsystemd-network/ |
D | sd-ndisc.c | 265 usec_t time_now; in ndisc_timeout() local 272 assert_se(sd_event_now(nd->event, CLOCK_BOOTTIME, &time_now) >= 0); in ndisc_timeout() 285 time_now + nd->retransmit_time, 10 * USEC_PER_MSEC, in ndisc_timeout() 336 usec_t time_now; in sd_ndisc_start() local 347 r = sd_event_now(nd->event, CLOCK_BOOTTIME, &time_now); in sd_ndisc_start() 367 … time_now + USEC_PER_SEC / 2, 1 * USEC_PER_SEC, /* See RFC 8415 sec. 18.2.1 */ in sd_ndisc_start() 375 time_now + NDISC_TIMEOUT_NO_RA_USEC, 10 * USEC_PER_MSEC, in sd_ndisc_start()
|
D | sd-dhcp-client.c | 798 usec_t time_now; in client_message_init() local 824 r = sd_event_now(client->event, CLOCK_BOOTTIME, &time_now); in client_message_init() 827 assert(time_now >= client->start_time); in client_message_init() 831 secs = ((time_now - client->start_time) / USEC_PER_SEC) ? : 1; in client_message_init() 1242 uint64_t time_now; in client_timeout_resend() local 1249 r = sd_event_now(client->event, CLOCK_BOOTTIME, &time_now); in client_timeout_resend() 1256 next_timeout = client_compute_reacquisition_timeout(time_now, client->t2_time); in client_timeout_resend() 1260 next_timeout = client_compute_reacquisition_timeout(time_now, client->expire_time); in client_timeout_resend() 1285 next_timeout = client_compute_request_timeout(time_now, client->attempt); in client_timeout_resend() 1333 client->request_sent = time_now; in client_timeout_resend() [all …]
|
D | sd-radv.c | 178 usec_t time_now; in radv_send() local 184 r = sd_event_now(ra->event, CLOCK_BOOTTIME, &time_now); in radv_send() 213 lifetime_valid_usec = MIN(usec_sub_unsigned(p->valid_until, time_now), in radv_send() 216 lifetime_preferred_usec = MIN3(usec_sub_unsigned(p->preferred_until, time_now), in radv_send() 227 … rt->opt.lifetime = usec_to_be32_sec(MIN(usec_sub_unsigned(rt->valid_until, time_now), in radv_send() 315 usec_t min_timeout, max_timeout, time_now, timeout; in radv_timeout() local 324 r = sd_event_now(ra->event, CLOCK_BOOTTIME, &time_now); in radv_timeout() 361 usec_add(time_now, timeout), MSEC_PER_SEC, in radv_timeout()
|
D | sd-ipv4acd.c | 194 usec_t next_timeout, time_now; in ipv4acd_set_next_wakeup() local 203 assert_se(sd_event_now(acd->event, CLOCK_BOOTTIME, &time_now) >= 0); in ipv4acd_set_next_wakeup() 207 time_now + next_timeout, 0, in ipv4acd_set_next_wakeup()
|
D | sd-dhcp-server.c | 983 usec_t time_now, expiration; in server_ack_request() local 990 r = sd_event_now(server->event, CLOCK_BOOTTIME, &time_now); in server_ack_request() 994 expiration = usec_add(req->lifetime * USEC_PER_SEC, time_now); in server_ack_request() 1037 usec_t time_now; in dhcp_server_cleanup_expired_leases() local 1042 r = sd_event_now(server->event, CLOCK_BOOTTIME, &time_now); in dhcp_server_cleanup_expired_leases() 1047 if (lease->expiration < time_now) { in dhcp_server_cleanup_expired_leases()
|
D | sd-dhcp6-client.c | 690 usec_t elapsed_usec, time_now; in dhcp6_client_send_message() local 697 r = sd_event_now(client->event, CLOCK_BOOTTIME, &time_now); in dhcp6_client_send_message() 779 …elapsed_usec = MIN(usec_sub_unsigned(time_now, client->transaction_start) / USEC_PER_MSEC / 10, (u… in dhcp6_client_send_message()
|
/systemd-251/src/network/ |
D | networkd-ndisc.c | 1165 usec_t time_now; in ndisc_vacuum() local 1171 time_now = now(CLOCK_BOOTTIME); in ndisc_vacuum() 1174 if (r->lifetime_usec < time_now) in ndisc_vacuum() 1178 if (d->lifetime_usec < time_now) in ndisc_vacuum()
|