Searched refs:next_tx (Results 1 – 2 of 2) sorted by relevance
| /netbsd-src/sbin/ping/ |
| H A D | ping.c | 204 static struct timespec now, clear_cache, last_tx, next_tx, first_tx; variable 762 sec = diffsec(&next_tx, &now); in doit() 766 sec = diffsec(&next_tx, &now); in doit() 973 if (next_tx.tv_sec == 0) { in pinger() 975 next_tx = now; in pinger() 983 waittime = diffsec(&next_tx, &now); in pinger() 986 next_tx.tv_sec += (int)(-waittime); in pinger() 991 next_tx.tv_nsec += numskip * interval_tv.tv_nsec; in pinger() 997 while (next_tx.tv_nsec >= 1000000000) { in pinger() 998 next_tx.tv_sec++; in pinger() [all …]
|
| /netbsd-src/sbin/ping6/ |
| H A D | ping6.c | 219 static struct timespec now, last_tx, next_tx, first_tx; variable 952 sec = diffsec(&next_tx, &now); in doit() 956 sec = diffsec(&next_tx, &now); in doit() 1183 if (next_tx.tv_sec == 0) { in pinger() 1185 next_tx = now; in pinger() 1193 if (diffsec(&next_tx, &now) <= interval.tv_sec) { in pinger() 1195 timespecadd(&next_tx, &interval, &next_tx); in pinger() 1196 } while (diffsec(&next_tx, &now) < -0.1); in pinger()
|