6 #include <sys/types.h> /* for u_* */
9 #define NAS_PORT_MAX_LEN 255
12 int session_id; /* host specific unique session id */
13 int aborted; /* have we received an abort flag? */
14 int seq_no; /* seq. no. of last packet exchanged */
15 time_t last_exch; /* time of last packet exchange */
16 int sock; /* socket for this connection */
17 char *key; /* the key */
18 int keyline; /* line number key was found on */
19 char *peer; /* name of connected peer */
20 char *peer_addr; /* numerical name of connected peer */
21 /* it MAY (peer==peer_addr)! */
22 char *cfgfile; /* config file name */
23 char *acctfile; /* name of accounting file */
24 char *db_acct; /* name of db accounting string */
25 char port[NAS_PORT_MAX_LEN+1]; /* For error reporting */
26 u_char version; /* version of last packet read */
29 extern int debug; /* debugging flag */
30 extern int single; /* do not fork (for debugging) */
31 extern int console; /* log to console */
32 extern int parse_only; /* exit after parsing verbosely */
33 extern int sendauth_only; /* don't do sendauth */
37 #define DEBUG_PARSE_FLAG 2
38 #define DEBUG_FORK_FLAG 4
39 #define DEBUG_AUTHOR_FLAG 8
40 #define DEBUG_AUTHEN_FLAG 16
41 #define DEBUG_PASSWD_FLAG 32
42 #define DEBUG_ACCT_FLAG 64
43 #define DEBUG_CONFIG_FLAG 128
44 #define DEBUG_PACKET_FLAG 256
45 #define DEBUG_HEX_FLAG 512
46 #define DEBUG_MD5_HASH_FLAG 1024
47 #define DEBUG_XOR_FLAG 2048
48 #define DEBUG_CLEAN_FLAG 4096
49 #define DEBUG_SUBST_FLAG 8192
50 #define DEBUG_CFGEVAL_FLAG 16384
51 #define DEBUG_MAXSESS_FLAG 32768
52 #define DEBUG_LOCK_FLAG 65536
55 extern struct session session; /* the session */
56 extern int main TAC_ARGS((int argc, char **argv));