|
|
1.1 ! root 1: #define DEBUG ! 2: ! 3: /* definition of globals */ ! 4: ! 5: #ifdef CHDEFINE ! 6: #define EXTERN ! 7: # ifdef DEBUG ! 8: int Chdebug = 0; ! 9: # endif ! 10: #else ! 11: #define EXTERN extern ! 12: # ifdef DEBUG ! 13: EXTERN int Chdebug; ! 14: # endif ! 15: #endif CHDEFINE ! 16: ! 17: EXTERN int Chaos_error; ! 18: EXTERN struct connection *Chconn[NCH]; /* connection table */ ! 19: EXTERN chtime Chclock; /* clock (mod ??) */ ! 20: EXTERN struct packet *Chlsnlist, /* listening connections */ ! 21: *Chrfclist, /* list of unmatched rfc's */ ! 22: *Chrfctail; /* tail of same list */ ! 23: EXTERN char Chmyname[CHSTATNAME]; /* This ncp's host name */ ! 24: EXTERN chaddr Chmyaddr; /* This ncp's chaos address */ ! 25: EXTERN struct queue *ChaosQ; /* Read queue pointer */ ! 26: EXTERN int ch_busy; /* Flag to lock out timers */ ! 27: EXTERN int Chtimer; /* Main timer running */ ! 28: ! 29: struct packet *pkalloc(), *get_packet(), *new_packet(); ! 30: struct connection *cnalloc(), *new_conn(); ! 31: ! 32: /* debugging instrumentation */ ! 33: ! 34: #ifdef DEBUG ! 35: ! 36: #define debug(a,b) if(Chdebug&(a)) b /* expect a ; after! */ ! 37: ! 38: #define DALLOC 1 /* Allocation tracing */ ! 39: #define DTRANS 2 /* Transmitter tracing */ ! 40: #define DCONN 4 /* Connection activity */ ! 41: #define DPKT 8 /* Print packets */ ! 42: #define DNOCLK 16 /* No clock timeouts */ ! 43: #define DABNOR 32 /* Abnormal events */ ! 44: #define DSEND 64 /* Trace each packet sent */ ! 45: #define DUSER 128 /* User interface activity */ ! 46: ! 47: #else ! 48: #define debug(a,b) ! 49: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.