xref: /freebsd/usr.sbin/ppp/log.h (revision 17ee9d00bc1ae1e598c38f25826f861e4bc6c3ce)
1 /*
2  *	    Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3  *
4  *   Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5  *
6  * Redistribution and use in source and binary forms are permitted
7  * provided that the above copyright notice and this paragraph are
8  * duplicated in all such forms and that any documentation,
9  * advertising materials, and other materials related to such
10  * distribution and use acknowledge that the software was developed
11  * by the Internet Initiative Japan.  The name of the
12  * IIJ may not be used to endorse or promote products derived
13  * from this software without specific prior written permission.
14  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  *
18  * $Id:$
19  *
20  *	TODO:
21  */
22 
23 #ifndef _LOG_H_
24 #define	_LOG_H_
25 /*
26  *  Definition of log level
27  */
28 #define	LOG_PHASE	0
29 #		define	LM_PHASE	"Phase"
30 #define	LOG_CHAT	1
31 #		define	LM_CHAT		"Chat"
32 #define	LOG_LQM		2
33 #		define	LM_LQM		"LQM"
34 #define	LOG_LCP		3
35 #		define	LM_LCP		"LCP"
36 #define	LOG_TCPIP	4
37 #		define	LM_TCPIP	"TCP/IP"
38 #define	LOG_HDLC	5
39 #		define	LM_HDLC		"HDLC"
40 #define	LOG_ASYNC	6
41 #		define	LM_ASYNC	"Async"
42 #define	MAXLOGLEVEL	7
43 
44 extern int loglevel;
45 
46 extern void LogTimeStamp();
47 extern int LogOpen();
48 extern void DupLog();
49 extern void LogClose();
50 extern void logprintf(), LogPrintf();
51 extern void LogDumpBp(int level, char *header, struct mbuf *bp);
52 extern void LogDumpBuff(int level, char *header, u_char *ptr, int cnt);
53 #endif
54