You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fping/options.h

55 lines
1.6 KiB
C

/*
* Interval is the minimum amount of time between sending a ping packet to
* any host.
*
* Perhost_interval is the minimum amount of time between sending a ping
* packet to a particular responding host (when count is > 1)
*
* Timeout is the initial amount of time between sending a ping packet to
* a particular non-responding host.
*
* Retry is the number of ping packets to send to a non-responding host
* before giving up (in is-it-alive mode).
*
* Backoff factor is how much longer to wait on successive retries.
*
*
*/
/* constants */
#ifndef DEFAULT_INTERVAL
#define DEFAULT_INTERVAL 25 /* default time between packets (msec) */
#endif
#ifndef DEFAULT_PERHOST_INTERVAL /* default time between packets */
#define DEFAULT_PERHOST_INTERVAL 1000 /* to a particular destination */
#endif /* in counting/looping mode */
#ifndef DEFAULT_TIMEOUT
#define DEFAULT_TIMEOUT 500 /* individual host timeouts */
#endif
#ifndef DEFAULT_RETRY
#define DEFAULT_RETRY 3 /* number of times to retry a host */
#endif
#ifndef DEFAULT_SELECT_TIME
#define DEFAULT_SELECT_TIME 10 /* default time to wait during select() */
#endif
#ifndef DEFAULT_BACKOFF_FACTOR
#define DEFAULT_BACKOFF_FACTOR 1.5 /* exponential timeout factor */
#endif
#define MIN_BACKOFF_FACTOR 1.0 /* exponential timeout factor */
#define MAX_BACKOFF_FACTOR 5.0 /* exponential timeout factor */
#ifndef DNS_TIMEOUT
#define DNS_TIMEOUT 1000 /* time in micro_sec for dns retry */
#endif
/* NIS_GROUPS allows input name to be an NIS netgroup name */
/* #define NIS_GROUPS=1 */