1 #define LogMIN (1) 2 #define LogASYNC (1) /* syslog(LOG_INFO, ....) */ 3 #define LogCARRIER (2) 4 #define LogCHAT (3) 5 #define LogCOMMAND (4) 6 #define LogCONNECT (5) 7 #define LogDEBUG (6) /* syslog(LOG_DEBUG, ....) */ 8 #define LogHDLC (7) 9 #define LogLCP (8) 10 #define LogLINK (9) 11 #define LogLQM (10) 12 #define LogPHASE (11) 13 #define LogTCPIP (12) 14 #define LogTUN (13) /* If set, tun%d is output with each message */ 15 #define LogMAXCONF (13) 16 #define LogWARN (14) /* Sent to VarTerm else syslog(LOG_WARNING, ) */ 17 #define LogERROR (15) /* syslog(LOG_ERR, ....), + sent to VarTerm */ 18 #define LogALERT (16) /* syslog(LOG_ALERT, ....) */ 19 #define LogMAX (16) 20 21 /* The first int arg for all of the following is one of the above values */ 22 extern const char *LogName(int); 23 extern void LogKeep(int); 24 extern void LogDiscard(int); 25 extern void LogDiscardAll(); 26 extern int LogIsKept(int); 27 extern void LogOpen(const char *); 28 extern void LogSetTun(int); 29 extern void LogClose(); 30 extern void LogPrintf(int, char *, ...); 31 extern void LogDumpBp(int, char *hdr, struct mbuf *bp); 32 extern void LogDumpBuff(int, char *hdr, u_char *ptr, int n); 33