iPXE
syslog.h
Go to the documentation of this file.
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_OR_UBDL );
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 */
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
An object interface.
Definition: interface.h:109
Syslog protocol.
int syslog_send(struct interface *xfer, unsigned int severity, const char *message, const char *terminator)
Transmit formatted syslog message.
Definition: syslog.c:97
char message[VMCONSOLE_BUFSIZE]
Definition: vmconsole.c:54
struct eth_slow_terminator_tlv terminator
Terminator.
Definition: eth_slow.h:20