Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2021 16:53:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 241937] syslogd truncates logged messages to 480 bytes
Message-ID:  <bug-241937-99-cleVFcb9GL@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241937-99@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241937-99@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241937

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D2d82b47a5b4ef18550565dd55628d51f5=
4d0af2e

commit 2d82b47a5b4ef18550565dd55628d51f54d0af2e
Author:     Dmitry Wagin <dmitry.wagin@ya.ru>
AuthorDate: 2021-03-23 16:15:28 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-03-23 16:49:58 +0000

    syslogd: Increase message size limits

    Add a -M option to control the maximum length of forwarded messages.
    syslogd(8) used to truncate forwarded messages to 1024 bytes, but after
    commit 1a874a126a54 ("Add RFC 5424 syslog message output to syslogd.")
    applies a more conservative limit of 480 bytes for IPv4 per RFC 5426
    section 3.2.  Restore the old default behaviour of truncating to 1024
    bytes.  RFC 5424 specifies no upper limit on the length of forwarded
    messages, while for RFC 3164 the limit is 1024 bytes.

    Increase MAXLINE to 8192 bytes to correspond to commit 672ef817a192.

    Replaced bootfile[] size for MAXPATHLEN used in getbootfile(3) as a
    returned value. Using (MAXLINE+1) as a size for bootfile[] is excessive.

    PR:             241937
    MFC after:      1 month
    Differential Revision:  https://reviews.freebsd.org/D27206

 usr.sbin/syslogd/syslogd.8 |  6 ++++++
 usr.sbin/syslogd/syslogd.c | 33 +++++++++++++++++++++------------
 2 files changed, 27 insertions(+), 12 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241937-99-cleVFcb9GL>