1 struct cfg {
2 	unsigned int    port;
3 
4 	char		ipv4[256];
5 	char		ipv6[256];
6 
7 	int             daemon;
8 	int             childs;
9 	int             ccount;
10 	int             backlog;
11 
12 	unsigned long	uid;
13 	unsigned long	gid;
14 	char            chroot[256];
15 	char            dbdir[256];
16 	char            file[256];
17 
18 	char		proxyhost[256];
19 	unsigned int    proxyport;
20 
21 	int             syslog;
22 	int             logrequests;
23 
24 	int		use_ipv6;
25 	int		aux_proxy_ipv6;
26 
27 	int		bind_ipv6;
28 	int		bind_ipv4;
29 
30 	int		accel;
31 	int		accelusrhost;
32 	char		accelhost[256];
33 	unsigned int	accelport;
34 
35 	int		kalive;
36 
37 	int		unr_con;
38 	int		to_con;
39 
40 	int		nowarn;
41 	int		first;
42 };
43 
44 #define MAX_CHILDS	1024
45 #define MAX_BACKLOG	64
46 #define MAX_PORTS	65535
47 #define MAX_UID		65535
48 #define MAX_GID		MAX_UID
49 #define MAX_FSIZE	256*1024
50