"Fossies" - the Fresh Open Source Software Archive

Member "mod_dns/mod_dns.h" (13 Mar 2001, 820 Bytes) of package /linux/www/apache_httpd_modules/old/mod_dns-1.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #ifndef mod_dns_h
    2 #define mod_dns_h
    3 
    4 
    5 
    6 // get module config (r - request_rec)
    7 #define MODDNS_DIR_CONFIG(r) ((moddns_dir_config*) ap_get_module_config ((r)->per_dir_config, &dns_module))
    8 
    9 
   10 
   11 // default config and stuff
   12 #define OPT_DNS_LOOKUP_ON       1
   13 #define OPT_DNS_LOOKUP_OFF      0
   14 #define OPT_DNS_LOOKUP_DEFAULT      (OPT_DNS_LOOKUP_OFF)
   15 #define OPT_DNS_TIMEOUT_DEFAULT     "5500"
   16 #define OPT_DNS_RESENDTIMER_DEFAULT "1900"
   17 
   18 // assume ~ 200 bytes per stored node (avg is probably closer to 150)
   19 #define DEFAULT_DNS_HASH_SIZE       1024    // must be multiple of 2!
   20 #define DEFAULT_DNS_SHARED_SIZE     204800  // 50 pages
   21 #define DEFAULT_DNS_SHARED_FILE     "/var/run/moddns_cache"
   22 
   23 
   24 
   25 /*
   26  * Support for MM library
   27  */
   28 #ifndef WIN32
   29 #define DNS_MM_FILE_MODE ( S_IRUSR|S_IWUSR )
   30 #else
   31 #define DNS_MM_FILE_MODE ( _S_IREAD|_S_IWRITE )
   32 #endif
   33 
   34 
   35 
   36 #endif