/************************************************************************ ** * ** Copyright © 1996 Digital Equipment Corporation. * ** All rights reserved. * ** * ** Redistribution and use in source and binary forms are permitted * ** provided that the above copyright notice and this paragraph are * ** duplicated in all such forms and that any documentation, * ** advertising materials, and other materials related to such * ** distribution and use acknowledge that the software was developed * ** by Digital Equipment Corporation. The name of the * ** Corporation may not be used to endorse or promote products derived * ** from this software without specific prior written permission. * ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * ** IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * ** WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * ** * ************************************************************************* **++ ** FACILITY: ** ** ppp_log.h. ** ** ABSTRACT: ** ** Constant defintions and external defs of variables in ppp_log.c ** ** AUTHORS: ** ** Patrick Crilly, Networks Engineering (Australia). ** ** CREATION DATE: ** ** 27-November-1995 ** ** MODIFICATION HISTORY: ** ** 17-December-1996 Barry W. Kierstein ** Replaced the standard Digital copyright with ** one compatible with the CMU copyright. ** ** 24-July-1996 Barry W. Kierstein ** Corrected copyright notice. ** ** 27-November-1995 Original version. ** **-- */ #ifndef _PPP_LOG_H_ #define _PPP_LOG_H_ /* ** ** import definitions: ** prototype macro ** types ** */ #ifndef _PPPD_H_ #include "pppd.h" #endif /* ** ** import definitions: ** fsm ** */ #ifndef _FSM_H_ #include "fsm.h" #endif /* LogRecord Message Types - borrowed from syslog.h */ #define LOG_EMERG 0 /* system is unusable */ #define LOG_ALERT 1 /* action must be taken immediately */ #define LOG_CRIT 2 /* critical conditions */ #define LOG_ERR 3 /* error conditions */ #define LOG_WARNING 4 /* warning conditions */ #define LOG_NOTICE 5 /* normal but signification condition */ #define LOG_INFO 6 /* informational */ #define LOG_DEBUG 7 /* debug-level messages */ #define LOG_EOF 8 /* End of file */ #define LOG_MSGMAX 128 /* maximum length of a log message */ typedef struct _logRecord { __int64 timeStamp; /* Time message was logged */ int msgType; /* Type of log message */ int msgLen; /* Length of log message */ u_char msg[LOG_MSGMAX]; /* Actual log message */ } logRecord; /* ** Prototypes */ void ppp_log(fsm *fsmPtr, int priority, char *format, ... ); #endif /* _PPP_LOG_H_ */