globals.h
1b1b19d8
 /*
4bd1673d
  * $Id$
1b1b19d8
  *
  * global variables
  *
  */
 
 
 #ifndef globals_h
 #define globals_h
 
4bd1673d
 #include "types.h"
4e2fdd79
 #include "ip_addr.h"
36ef0329
 #include "str.h"
4bd1673d
 
1b1b19d8
 #define NO_DNS     0
 #define DO_DNS     1
 #define DO_REV_DNS 2
 
 
36ef0329
 
1b1b19d8
 extern char * cfg_file;
f571aa35
 extern char *stat_file;
36ef0329
 extern struct socket_info sock_info[]; /* all addresses we listen/send from*/
 extern int sock_no; /* number of addresses/open sockets*/
1b1b19d8
 extern unsigned short port_no;
36ef0329
 /*
b2e71d5b
 extern char port_no_str[];
 extern int port_no_str_len;
36ef0329
 */
 /*
1b1b19d8
 extern char * names[];
b2e71d5b
 extern int names_len[];
4e2fdd79
 extern struct ip_addr addresses[];
1b1b19d8
 extern int addresses_no;
36ef0329
 */
 extern struct socket_info* bind_address; /* pointer to the crt. proc. listening address */
 extern int bind_idx; /* same as above but index in the bound[] array */
 extern struct socket_info* sendipv4; /* ipv4 socket to use when msg. comes from ipv6*/
 extern struct socket_info* sendipv6; /* same as above for ipv6 */
 
 extern unsigned int maxbuffer;
7268726e
 extern int children_no;
1b1b19d8
 extern int dont_fork;
 extern int check_via;
 extern int received_dns;
676eb608
 extern int loop_checks;
cbd9fc8b
 extern int process_no;
4e2fdd79
 /*
  * debug & log_stderr moved to dprint.h*/
4bd1673d
 
 extern process_bm_t process_bit;
cbd9fc8b
 extern int *pids;
1b1b19d8
 
63fa628f
 extern int cfg_errors;
e72b5b50
 extern unsigned int msg_no;
1b1b19d8
 
40a8d9dd
 extern unsigned int shm_mem_size;
 
1b1b19d8
 #endif