summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/log.h
blob: 6542f9432a302dbe437bc274595242ff54fee667 (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
#define LogMIN		(1)
#define LogASYNC	(1)	/* syslog(LOG_INFO, ....)	 */
#define LogCARRIER	(2)
#define LogCCP		(3)
#define LogCHAT		(4)
#define LogCOMMAND	(5)
#define LogCONNECT	(6)
#define LogDEBUG	(7)	/* syslog(LOG_DEBUG, ....)	 */
#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 */
#define LogALERT	(18)	/* syslog(LOG_ALERT, ....)	 */
#define LogMAX		(18)

/* 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();
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);
OpenPOWER on IntegriCloud