Home | History | Annotate | Download | only in ping

Lines Matching refs:interval

24 int interval = 1000;		/* interval between packets (msec) */
126 fprintf(stderr, "ping: bad timing interval.\n");
129 interval = (int)(t*1000);
130 } else if (sscanf(optarg, "%d", &interval) == 1) {
131 interval *= 1000;
133 fprintf(stderr, "ping: bad timing interval.\n");
137 if (interval < 0) {
138 fprintf(stderr, "ping: bad timing interval.\n");
249 if (waittime < 1000*interval)
250 waittime = 1000*interval;
267 int est = rtt ? rtt/8 : interval*1000;
269 interval = (est+rtt_addend+500)/1000;
270 if (uid && interval < MINUSERINTERVAL)
271 interval = MINUSERINTERVAL;
295 tokens = interval*(preload-1);
303 if (!interval) {
310 if (ntokens > interval*preload)
311 ntokens = interval*preload;
312 if (ntokens < interval)
313 return interval - ntokens;
316 tokens = ntokens - interval;
332 return interval - tokens;
348 nores_interval = SCHINT(interval/2);
361 tokens += interval;
366 tokens += interval;
388 return SCHINT(interval);
420 interval = 0;
422 if (uid && interval < MINUSERINTERVAL) {
423 fprintf(stderr, "ping: cannot flood; minimal interval, allowed for user, is %dms\n", MINUSERINTERVAL);
427 if (interval >= INT_MAX/preload) {
428 fprintf(stderr, "ping: illegal preload and/or interval\n");
448 * of one second, or "interval", if it is less.
452 if (interval < 1000) {
454 tv.tv_usec = 1000 * SCHINT(interval);
458 /* Set RCVTIMEO to "interval". Note, it is just an optimization
460 tv.tv_sec = SCHINT(interval)/1000;
461 tv.tv_usec = 1000*(SCHINT(interval)%1000);
549 if ((options & (F_ADAPTIVE|F_FLOOD_POLL)) || next<SCHINT(interval)) {
571 ((options & (F_ADAPTIVE|F_FLOOD_POLL)) || interval)) {
823 if (ntransmitted > 1 && (!interval || (options&(F_FLOOD|F_ADAPTIVE)))) {