Lines Matching defs:delay
37 #include "delay.h"
40 #define PROBE_WAIT 1 /*second (initial random delay) */
41 #define PROBE_MIN 1 /*second (minimum delay till repeated probe) */
42 #define PROBE_MAX 2 /*seconds (maximum delay till repeated probe) */
46 #define ANNOUNCE_WAIT 2 /*seconds (delay before announcing) */
48 #define RATE_LIMIT_INTERVAL 60 /*seconds (delay between successive attempts) */
151 struct itimerval delay;
291 /* setup an immediate delay to kick things off */
293 delay_setup_immed(&delay);
295 delay_run(&delay);
583 delay_setup_random(&delay, 0, PROBE_WAIT);
585 delay_run(&delay);
649 delay_setup_fixed(&delay, ANNOUNCE_WAIT);
651 delay_run(&delay);
660 delay_setup_fixed(&delay, RATE_LIMIT_INTERVAL);
664 delay_setup_random(&delay, PROBE_MIN, PROBE_MAX);
668 delay_run(&delay);
687 delay_setup_immed(&delay);
689 delay_run(&delay);
705 delay_setup_immed(&delay);
707 delay_run(&delay);
714 delay_setup_fixed(&delay, ANNOUNCE_INTERVAL);
716 delay_run(&delay);
743 delay_setup_immed(&delay);
745 delay_run(&delay);
771 delay_setup_immed(&delay);
773 delay_run(&delay);
797 delay_setup_fixed(&delay, DEFEND_INTERVAL);
799 delay_run(&delay);
811 delay_setup_immed(&delay);
813 delay_run(&delay);
841 delay_setup_immed(&delay);
843 delay_run(&delay);