home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Networking / fping-2.2b1-MIHS / src / options.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-08  |  1.6 KB  |  55 lines

  1.  
  2. /* 
  3.  *  Interval is the minimum amount of time between sending a ping packet to 
  4.  *  any host.
  5.  * 
  6.  *  Perhost_interval is the minimum amount of time between sending a ping 
  7.  *  packet to a particular responding host (when count is > 1)
  8.  * 
  9.  *  Timeout  is the initial amount of time between sending a ping packet to
  10.  *  a particular non-responding host.
  11.  * 
  12.  *  Retry is the number of ping packets to send to a non-responding host
  13.  *  before giving up (in is-it-alive mode).
  14.  * 
  15.  *  Backoff factor is how much longer to wait on successive retries.
  16.  * 
  17.  * 
  18.  */
  19.  
  20. /* constants */
  21.  
  22. #ifndef DEFAULT_INTERVAL
  23. #define DEFAULT_INTERVAL 25        /* default time between packets (msec) */
  24. #endif
  25.  
  26. #ifndef DEFAULT_PERHOST_INTERVAL      /* default time between packets */
  27. #define DEFAULT_PERHOST_INTERVAL 1000 /* to a particular destination  */
  28. #endif                                /* in counting/looping mode     */
  29.  
  30. #ifndef DEFAULT_TIMEOUT
  31. #define DEFAULT_TIMEOUT 500       /* individual host timeouts */
  32. #endif
  33.  
  34.  
  35. #ifndef DEFAULT_RETRY 
  36. #define DEFAULT_RETRY 3            /* number of times to retry a host */
  37. #endif
  38.  
  39. #ifndef DEFAULT_SELECT_TIME
  40. #define DEFAULT_SELECT_TIME 10     /* default time to wait during select() */
  41. #endif
  42.  
  43. #ifndef DEFAULT_BACKOFF_FACTOR
  44. #define DEFAULT_BACKOFF_FACTOR 1.5 /* exponential timeout factor */
  45. #endif
  46. #define MIN_BACKOFF_FACTOR     1.0 /* exponential timeout factor */
  47. #define MAX_BACKOFF_FACTOR     5.0 /* exponential timeout factor */
  48.  
  49. #ifndef DNS_TIMEOUT
  50. #define DNS_TIMEOUT 1000         /* time in micro_sec for dns retry */
  51. #endif
  52.  
  53. /*  NIS_GROUPS allows input name to be an NIS netgroup name */
  54. /* #define NIS_GROUPS=1 */
  55.