iPXE
include
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
FILE_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
39
extern
int
syslog_send
(
struct
interface
*xfer,
unsigned
int
severity,
40
const
char
*
message
,
const
char
*
terminator
);
41
42
#endif
/* _IPXE_SYSLOG_H */
FILE_SECBOOT
FILE_SECBOOT(PERMITTED)
FILE_LICENCE
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
interface
An object interface.
Definition:
interface.h:125
syslog.h
Syslog protocol.
syslog_send
int syslog_send(struct interface *xfer, unsigned int severity, const char *message, const char *terminator)
Transmit formatted syslog message.
Definition:
syslog.c:99
message
char message[VMCONSOLE_BUFSIZE]
Definition:
vmconsole.c:54
terminator
struct eth_slow_terminator_tlv terminator
Terminator.
Definition:
eth_slow.h:21
Generated by
1.8.15