2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-08-31 07:18:33 +00:00
Files
xNBA/src/include/ipxe/syslog.h
2012-06-20 14:59:06 +01:00

42 lines
756 B
C

#ifndef _IPXE_SYSLOG_H
#define _IPXE_SYSLOG_H
/** @file
*
* Syslog protocol
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <syslog.h>
/** Syslog server port */
#define SYSLOG_PORT 514
/** Syslog line buffer size
*
* This is a policy decision
*/
#define SYSLOG_BUFSIZE 128
/** Syslog default facility
*
* This is a policy decision
*/
#define SYSLOG_DEFAULT_FACILITY 0 /* kernel */
/** Syslog default severity
*
* This is a policy decision
*/
#define SYSLOG_DEFAULT_SEVERITY LOG_INFO
/** Syslog priority */
#define SYSLOG_PRIORITY( facility, severity ) ( 8 * (facility) + (severity) )
extern int syslog_send ( struct interface *xfer, unsigned int severity,
const char *message, const char *terminator );
#endif /* _IPXE_SYSLOG_H */