]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[syslog] Allow port number to be specified for encrypted syslog server
authorMichael Brown <mcb30@ipxe.org>
Mon, 9 Feb 2026 12:06:36 +0000 (12:06 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 9 Feb 2026 12:32:11 +0000 (12:32 +0000)
commitcd9b44e574340f234c9c0e968de30794469df613
tree93200df6b62b3f3a1ce2539f042ba2ca6eb5338d
parent362b704f833cb2b0d7bf77ac97b2e06298211385
[syslog] Allow port number to be specified for encrypted syslog server

The original implementation in commit 943b300 ("[syslog] Add basic
support for encrypted syslog via TLS") was based on examples found in
the rsyslog documentation rather than on RFC 5425, and unfortunately
used the default syslog port number 514 rather than the syslog-tls
port number 6514 defined in the RFC.

Extend parsing of the syslog server name to allow for an optional port
number (in the relatively intuitive format "server[:port]").  Retain
the existing (and incorrect) default port number to avoid breaking
backwards compatibility with existing setups.

Reported-by: Christian Nilsson <nikize@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/errfile.h
src/net/tcp/syslogs.c