iPXE
|
Encrypted syslog protocol. More...
#include <stdint.h>
#include <stdlib.h>
#include <byteswap.h>
#include <ipxe/xfer.h>
#include <ipxe/open.h>
#include <ipxe/tcpip.h>
#include <ipxe/dhcp.h>
#include <ipxe/settings.h>
#include <ipxe/console.h>
#include <ipxe/lineconsole.h>
#include <ipxe/tls.h>
#include <ipxe/syslog.h>
#include <config/console.h>
Go to the source code of this file.
Macros | |
#define | CONSOLE_SYSLOGS ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_TUI ) |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | syslogs_close (struct interface *intf, int rc) |
Handle encrypted syslog TLS interface close. More... | |
static void | syslogs_window_changed (struct interface *intf) |
Handle encrypted syslog TLS interface window change. More... | |
static void | syslogs_handle_priority (struct ansiesc_context *ctx __unused, unsigned int count __unused, int params[]) |
Handle ANSI set encrypted syslog priority (private sequence) More... | |
static void | syslogs_putchar (int character) |
Print a character to encrypted syslog console. More... | |
const struct setting syslogs_setting | __setting (SETTING_MISC, syslogs) |
Encrypted syslog server setting. More... | |
static int | apply_syslogs_settings (void) |
Apply encrypted syslog settings. More... | |
Variables | |
struct console_driver syslogs_console | __console_driver |
Encrypted syslog console driver. More... | |
static struct sockaddr_tcpip | logserver |
The encrypted syslog server. More... | |
static struct interface_operation | syslogs_operations [] |
Encrypted syslog TLS interface operations. More... | |
static struct interface_descriptor | syslogs_desc |
Encrypted syslog TLS interface descriptor. More... | |
static struct interface | syslogs = INTF_INIT ( syslogs_desc ) |
The encrypted syslog TLS interface. More... | |
static char | syslogs_buffer [SYSLOG_BUFSIZE] |
Encrypted syslog line buffer. More... | |
static unsigned int | syslogs_severity = SYSLOG_DEFAULT_SEVERITY |
Encrypted syslog severity. More... | |
static struct ansiesc_handler | syslogs_handlers [] |
Encrypted syslog ANSI escape sequence handlers. More... | |
static struct line_console | syslogs_line |
Encrypted syslog line console. More... | |
static int | syslogs_entered |
Encrypted syslog recursion marker. More... | |
struct settings_applicator syslogs_applicator | __settings_applicator |
Encrypted syslog settings applicator. More... | |
Encrypted syslog protocol.
Definition in file syslogs.c.
#define CONSOLE_SYSLOGS ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_TUI ) |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Handle encrypted syslog TLS interface close.
intf | Interface |
rc | Reason for close |
Definition at line 65 of file syslogs.c.
References DBG, intf_restart(), rc, and strerror().
Referenced by apply_syslogs_settings().
|
static |
Handle encrypted syslog TLS interface window change.
intf | Interface |
Definition at line 76 of file syslogs.c.
References DBG, and xfer_window().
|
static |
Handle ANSI set encrypted syslog priority (private sequence)
ctx | ANSI escape sequence context |
count | Parameter count |
params | List of graphic rendition aspects |
Definition at line 124 of file syslogs.c.
References SYSLOG_DEFAULT_SEVERITY, and syslogs_severity.
|
static |
Print a character to encrypted syslog console.
character | Character to be printed |
Definition at line 157 of file syslogs.c.
References DBG, line_putchar(), rc, strerror(), syslog_send(), syslogs, syslogs_buffer, syslogs_entered, syslogs_line, and syslogs_severity.
const struct setting syslogs_setting __setting | ( | SETTING_MISC | , |
syslogs | |||
) |
Encrypted syslog server setting.
|
static |
Apply encrypted syslog settings.
rc | Return status code |
Definition at line 209 of file syslogs.c.
References add_tls(), CONSOLE_DISABLED, DBG, fetch_string_setting_copy(), free, intf_restart(), logserver, NULL, rc, SOCK_STREAM, strcmp(), strerror(), syslogs, syslogs_close(), and xfer_open_named_socket().
struct console_driver syslogs_console __console_driver |
Encrypted syslog console driver.
|
static |
The encrypted syslog server.
Definition at line 55 of file syslogs.c.
Referenced by apply_syslogs_settings().
|
static |
Encrypted syslog TLS interface operations.
|
static |
Encrypted syslog TLS interface descriptor.
|
static |
The encrypted syslog TLS interface.
Definition at line 102 of file syslogs.c.
Referenced by apply_syslogs_settings(), and syslogs_putchar().
|
static |
Encrypted syslog line buffer.
Definition at line 112 of file syslogs.c.
Referenced by syslogs_putchar().
|
static |
Encrypted syslog severity.
Definition at line 115 of file syslogs.c.
Referenced by syslogs_handle_priority(), and syslogs_putchar().
|
static |
Encrypted syslog ANSI escape sequence handlers.
|
static |
Encrypted syslog line console.
Definition at line 141 of file syslogs.c.
Referenced by syslogs_putchar().
|
static |
Encrypted syslog recursion marker.
Definition at line 150 of file syslogs.c.
Referenced by syslogs_putchar().
struct settings_applicator syslogs_applicator __settings_applicator |
Encrypted syslog settings applicator.