home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / xinetd / xinetd.2.0.6 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-22  |  2.4 KB  |  95 lines

  1. /*
  2.  * (c) Copyright 1992 by Panagiotis Tsirigotis
  3.  * All rights reserved.  The file named COPYRIGHT specifies the terms 
  4.  * and conditions for redistribution.
  5.  */
  6.  
  7. #ifndef CONFIG_H
  8. #define CONFIG_H
  9.  
  10. /*
  11.  * $Id: config.h,v 5.1 1992/10/31 23:59:07 panos Exp $
  12.  */
  13.  
  14. #define DEFAULT_SYSLOG_FACILITY      LOG_DAEMON
  15.  
  16. #define DEFAULT_CONFIG_FILE            "/etc/xinetd.conf"
  17. #define DUMP_FILE                            "/tmp/xinetd.dump"
  18.  
  19. /*
  20.  * Max number of concurrently running processes forked to get 
  21.  * the user id (RFC 931) from the remote host
  22.  */
  23. #define DEFAULT_LOGPROCS                15
  24.  
  25. /*
  26.  * Max number of concurrently running processes forked to do service shutdown
  27.  */
  28. #define DEFAULT_SHUTDOWNPROCS            10
  29.  
  30. /*
  31.  * This is used when an instance limit is not specified for a service
  32.  * and the defaults entry does not specify an instance limit either.
  33.  * It can be a positive number or "UNLIMITED".
  34.  */
  35. #define DEFAULT_INSTANCE_LIMIT        UNLIMITED
  36.  
  37. /*
  38.  * DEFAULT_LOOP_RATE is a bound on the rate of forking servers for a
  39.  * particular service. If that rate is exceeded, the service is deactivated.
  40.  * We check this rate on time intervals of duration LOOP_INTERVAL seconds.
  41.  */
  42. #define DEFAULT_LOOP_RATE                10
  43. #define LOOP_INTERVAL                    2
  44.  
  45. /*
  46.  * DEFAULT_SERVICE_SYSLOG_LEVEL is the level used for log messages when a
  47.  * service logs to syslog
  48.  */
  49. #define DEFAULT_SERVICE_SYSLOG_LEVEL    LOG_INFO
  50.  
  51. /*
  52.  * LOG_OPEN_FLAGS are the flags used to open a log file
  53.  */
  54. #define LOG_OPEN_FLAGS                    O_CREAT+O_APPEND+O_WRONLY
  55.  
  56. /*
  57.  * Number of consecutive fork failures that we are willing to put up with
  58.  * before giving up.
  59.  */
  60. #define MAX_FORK_FAILURES            5
  61.  
  62. #define DUMP_FILE_MODE                    0644
  63. #define LOG_FILE_MODE                 0644
  64.  
  65. /*
  66.  * Signal-to-action mapping
  67.  */
  68. #define RECONFIG_SOFT_SIG                SIGUSR1
  69. #define RECONFIG_HARD_SIG                SIGUSR2
  70. #define TERMINATION_SIG                    SIGTERM
  71. #define STATE_DUMP_SIG                    SIGHUP
  72. #define CONSISTENCY_CHECK_SIG            SIGIOT
  73. #define RETRY_SIG                            SIGALRM
  74. #define SERVER_EXIT_SIG                    SIGCHLD
  75. #define QUIT_SIG                            SIGQUIT
  76.  
  77. /*
  78.  * The DATAGRAM_SIZE is big enough for an ethernet packet
  79.  */
  80. #define DATAGRAM_SIZE                    2048
  81.  
  82. /*
  83.  * Time interval between retry attempts
  84.  */
  85. #define RETRY_INTERVAL                    1        /* second */
  86.  
  87. /*
  88.  * LOG_EXTRA_MIN, LOG_EXTRA_MAX define the limits by which the hard limit
  89.  * on the log size can exceed the soft limit
  90.  */
  91. #define LOG_EXTRA_MIN                    (  5 * 1024 )
  92. #define LOG_EXTRA_MAX                    ( 20 * 1024 )
  93.  
  94. #endif    /* CONFIG_H */
  95.