diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-11-28 05:41:45 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-11-28 05:54:53 +0000 |
commit | b2251743d80f94445f40f64b75b63d33fe1d8725 (patch) | |
tree | 9c1424242dc2a1a6508bf3e7a723cadf4632f1de /src/net | |
parent | 7271b5089073d84d74709d3986e1bb32234f1c4d (diff) | |
download | ipxe-b2251743d80f94445f40f64b75b63d33fe1d8725.zip ipxe-b2251743d80f94445f40f64b75b63d33fe1d8725.tar.gz ipxe-b2251743d80f94445f40f64b75b63d33fe1d8725.tar.bz2 |
[console] Allow console input and output to be disabled independently
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tcp/syslogs.c | 4 | ||||
-rw-r--r-- | src/net/udp/syslog.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tcp/syslogs.c b/src/net/tcp/syslogs.c index a4dc297..bcda8b4 100644 --- a/src/net/tcp/syslogs.c +++ b/src/net/tcp/syslogs.c @@ -178,7 +178,7 @@ static void syslogs_putchar ( int character ) { /** Encrypted syslog console driver */ struct console_driver syslogs_console __console_driver = { .putchar = syslogs_putchar, - .disabled = 1, + .disabled = CONSOLE_DISABLED, .usage = CONSOLE_SYSLOGS, }; @@ -227,7 +227,7 @@ static int apply_syslogs_settings ( void ) { old_server = NULL; /* Reset encrypted syslog connection */ - syslogs_console.disabled = 1; + syslogs_console.disabled = CONSOLE_DISABLED; intf_restart ( &syslogs, 0 ); /* Do nothing unless we have a log server */ diff --git a/src/net/udp/syslog.c b/src/net/udp/syslog.c index 4bfba51..4210083 100644 --- a/src/net/udp/syslog.c +++ b/src/net/udp/syslog.c @@ -176,7 +176,7 @@ static void syslog_putchar ( int character ) { /** Syslog console driver */ struct console_driver syslog_console __console_driver = { .putchar = syslog_putchar, - .disabled = 1, + .disabled = CONSOLE_DISABLED, .usage = CONSOLE_SYSLOG, }; @@ -222,7 +222,7 @@ static int apply_syslog_settings ( void ) { } /* Fetch log server */ - syslog_console.disabled = 1; + syslog_console.disabled = CONSOLE_DISABLED; old_addr.s_addr = sin_logserver->sin_addr.s_addr; if ( ( len = fetch_ipv4_setting ( NULL, &syslog_setting, &sin_logserver->sin_addr ) ) >= 0 ) { |