log.h revision 6756
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: log.h,v 1.2 1995/02/26 12:17:38 amurai Exp $
19 *
20 *	TODO:
21 */
22
23#ifndef _LOG_H_
24#define	_LOG_H_
25#include "cdefs.h"
26/*
27 *  Definition of log level
28 */
29#define	LOG_PHASE	0
30#		define	LM_PHASE	"Phase"
31#define	LOG_CHAT	1
32#		define	LM_CHAT		"Chat"
33#define	LOG_LQM		2
34#		define	LM_LQM		"LQM"
35#define	LOG_LCP		3
36#		define	LM_LCP		"LCP"
37#define	LOG_TCPIP	4
38#		define	LM_TCPIP	"TCP/IP"
39#define	LOG_HDLC	5
40#		define	LM_HDLC		"HDLC"
41#define	LOG_ASYNC	6
42#		define	LM_ASYNC	"Async"
43#define	MAXLOGLEVEL	7
44
45extern int loglevel;
46
47extern void LogTimeStamp __P((void));
48extern int LogOpen __P((void));
49extern void DupLog __P((void));
50extern void LogClose __P((void));
51extern void logprintf __P((char *, ...)), LogPrintf __P((int, char *, ...));
52extern void LogDumpBp __P((int level, char *header, struct mbuf *bp));
53extern void LogDumpBuff __P((int level, char *header, u_char *ptr, int cnt));
54#endif
55