summaryrefslogtreecommitdiff
path: root/server/global.c
blob: 5199f7b728d595e04cdca2c76a94c36f4e26c25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* This file is part of the Project Athena Zephyr Notification System.
 * It contains the global variables used by the server.  (moved from main.c)
 *
 *	Created by:	Karl Ramm
 *
 *	Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology.
 *	For copying and distribution information, see the file
 *	"mit-copyright.h".
 */

#include <zephyr/mit-copyright.h>
#include "zserver.h"
#include <sys/socket.h>
#include <sys/resource.h>

int nfds;				/* max file descriptor for select() */
int srv_socket;				/* dgram socket for clients
					   and other servers */
int bdump_socket = -1;			/* brain dump socket fd
					   (closed most of the time) */
#ifdef HAVE_ARES
ares_channel achannel;			/* C-ARES resolver channel */
#endif
fd_set interesting;			/* the file descrips we are listening
					   to right now */
struct sockaddr_in srv_addr;		/* address of the socket */

Unacked *nacklist = NULL;		/* list of packets waiting for ack's */

unsigned short hm_port;			/* host manager receiver port */
unsigned short hm_srv_port;		/* host manager server sending port */

char myname[NS_MAXDNAME];		/* my host name */

char list_file[128];
#ifdef HAVE_KRB5
char keytab_file[128];
#endif
#ifdef HAVE_KRB4
char srvtab_file[128];
#endif
char acl_dir[128];
char subs_file[128];

int zdebug;
#ifdef DEBUG
int zalone;
#endif

struct timeval t_local;			/* store current time for other uses */


u_long npackets;			/* number of packets processed */
time_t uptime;				/* when we started operations */
struct in_addr my_addr;
char *bdump_version = "1.2";

#ifdef HAVE_KRB5
int bdump_auth_proto = 5;
#else /* HAVE_KRB5 */
#ifdef HAVE_KRB4
int bdump_auth_proto = 4;
#else /* HAVE_KRB4 */
int bdump_auth_proto = 0;
#endif /* HAVE_KRB4 */
#endif /* HAVE_KRB5 */

#ifdef HAVE_KRB5
krb5_ccache Z_krb5_ccache;
krb5_keyblock *__Zephyr_keyblock;
#else
#ifdef HAVE_KRB4
C_Block __Zephyr_session;
#endif
#endif