iPXE
syslog.h
Go to the documentation of this file.
00001 #ifndef _IPXE_SYSLOG_H
00002 #define _IPXE_SYSLOG_H
00003 
00004 /** @file
00005  *
00006  * Syslog protocol
00007  *
00008  */
00009 
00010 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00011 
00012 #include <syslog.h>
00013 
00014 /** Syslog server port */
00015 #define SYSLOG_PORT 514
00016 
00017 /** Syslog line buffer size
00018  *
00019  * This is a policy decision
00020  */
00021 #define SYSLOG_BUFSIZE 128
00022 
00023 /** Syslog default facility
00024  *
00025  * This is a policy decision
00026  */
00027 #define SYSLOG_DEFAULT_FACILITY 0 /* kernel */
00028 
00029 /** Syslog default severity
00030  *
00031  * This is a policy decision
00032  */
00033 #define SYSLOG_DEFAULT_SEVERITY LOG_INFO
00034 
00035 /** Syslog priority */
00036 #define SYSLOG_PRIORITY( facility, severity ) ( 8 * (facility) + (severity) )
00037 
00038 extern int syslog_send ( struct interface *xfer, unsigned int severity,
00039                          const char *message, const char *terminator );
00040 
00041 #endif /* _IPXE_SYSLOG_H */