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