From fff4368e80477d613e00d49c6a1f9a6ba40c7283 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 7 Nov 2019 20:56:02 +0100 Subject: [PATCH] RFC5424 sec 6.1 states that we *should* support 2048 byte long msgs Signed-off-by: Joachim Nilsson --- src/syslogd.c | 7 ------- src/syslogd.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/syslogd.c b/src/syslogd.c index 739f7a7..3cf2c33 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -50,13 +50,6 @@ static char sccsid[] __attribute__((unused)) = * */ -#define MAXLINE 1024 /* maximum line length */ -#define MAXSVLINE 240 /* maximum saved line length */ -#define DEFUPRI (LOG_USER | LOG_NOTICE) -#define DEFSPRI (LOG_KERN | LOG_CRIT) -#define TIMERINTVL 30 /* interval for checking flush, mark */ -#define RCVBUF_MINSIZE (80 * 1024) /* minimum size of dgram rcv buffer */ - #include "config.h" #include diff --git a/src/syslogd.h b/src/syslogd.h index 172c3e7..1aeaa6c 100644 --- a/src/syslogd.h +++ b/src/syslogd.h @@ -35,6 +35,13 @@ #include "queue.h" #include "syslog.h" +#define MAXLINE 2048 /* maximum line length */ +#define MAXSVLINE MAXLINE /* maximum saved line length */ +#define DEFUPRI (LOG_USER | LOG_NOTICE) +#define DEFSPRI (LOG_KERN | LOG_CRIT) +#define TIMERINTVL 30 /* interval for checking flush, mark */ +#define RCVBUF_MINSIZE (80 * MAXLINE) /* minimum size of dgram rcv buffer */ + /* * Linux uses EIO instead of EBADFD (mrn 12 May 96) */