Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / ipxe / src / include / ipxe / syslog.h
1 #ifndef _IPXE_SYSLOG_H
2 #define _IPXE_SYSLOG_H
3
4 /** @file
5  *
6  * Syslog protocol
7  *
8  */
9
10 FILE_LICENCE ( GPL2_OR_LATER );
11
12 #include <syslog.h>
13
14 /** Syslog server port */
15 #define SYSLOG_PORT 514
16
17 /** Syslog line buffer size
18  *
19  * This is a policy decision
20  */
21 #define SYSLOG_BUFSIZE 128
22
23 /** Syslog default facility
24  *
25  * This is a policy decision
26  */
27 #define SYSLOG_DEFAULT_FACILITY 0 /* kernel */
28
29 /** Syslog default severity
30  *
31  * This is a policy decision
32  */
33 #define SYSLOG_DEFAULT_SEVERITY LOG_INFO
34
35 /** Syslog priority */
36 #define SYSLOG_PRIORITY( facility, severity ) ( 8 * (facility) + (severity) )
37
38 extern int syslog_send ( struct interface *xfer, unsigned int severity,
39                          const char *message, const char *terminator );
40
41 #endif /* _IPXE_SYSLOG_H */