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
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <syslog.h>
14
15/** Syslog server port */
16#define SYSLOG_PORT 514
17
18/** Syslog line buffer size
19 *
20 * This is a policy decision
21 */
22#define SYSLOG_BUFSIZE 128
23
24/** Syslog default facility
25 *
26 * This is a policy decision
27 */
28#define SYSLOG_DEFAULT_FACILITY 0 /* kernel */
29
30/** Syslog default severity
31 *
32 * This is a policy decision
33 */
34#define SYSLOG_DEFAULT_SEVERITY LOG_INFO
35
36/** Syslog priority */
37#define SYSLOG_PRIORITY( facility, severity ) ( 8 * (facility) + (severity) )
38
39extern int syslog_send ( struct interface *xfer, unsigned int severity,
40 const char *message, const char *terminator );
41
42#endif /* _IPXE_SYSLOG_H */
struct eth_slow_terminator_tlv terminator
Terminator.
Definition eth_slow.h:9
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
Syslog protocol.
int syslog_send(struct interface *xfer, unsigned int severity, const char *message, const char *terminator)
Transmit formatted syslog message.
Definition syslog.c:99
An object interface.
Definition interface.h:125
char message[VMCONSOLE_BUFSIZE]
Definition vmconsole.c:54