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