/*
 * $Id$
 *
 * global variables
 *
 */


#ifndef globals_h
#define globals_h

#include "types.h"
#include "ip_addr.h"
#include "str.h"

#define NO_DNS     0
#define DO_DNS     1
#define DO_REV_DNS 2



extern char * cfg_file;
extern char *stat_file;
extern struct socket_info sock_info[]; /* all addresses we listen/send from*/
extern int sock_no; /* number of addresses/open sockets*/
extern unsigned short port_no;
/*
extern char port_no_str[];
extern int port_no_str_len;
*/
/*
extern char * names[];
extern int names_len[];
extern struct ip_addr addresses[];
extern int addresses_no;
*/
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;
extern int children_no;
extern int dont_fork;
extern int check_via;
extern int received_dns;
extern int loop_checks;
extern int process_no;
/*
 * debug & log_stderr moved to dprint.h*/

extern process_bm_t process_bit;
extern int *pids;

extern int cfg_errors;
extern unsigned int msg_no;

extern unsigned int shm_mem_size;

#endif