summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-23 16:14:19 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-23 16:14:19 +0200
commit86e37f70fe0e9de0e00362990c73536843c8fef3 (patch)
treed39609114407368847b1c7142187cb4e08820fda /runtime/rsyslog.h
parentb1f2e53921b7ab19c363a63de47a0e7a35866052 (diff)
downloadrsyslog-86e37f70fe0e9de0e00362990c73536843c8fef3.tar.gz
rsyslog-86e37f70fe0e9de0e00362990c73536843c8fef3.tar.xz
rsyslog-86e37f70fe0e9de0e00362990c73536843c8fef3.zip
more strict parsing of the hostname in rfc3164 mode
... hopefully removes false positives (but may cause some trouble with hostname parsing). For details, see this bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=126 This patch is not optimal for v4 - another one will follow. The spirit of this commit is to enable easier backporting if someone is interested in doing so.
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r--runtime/rsyslog.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h
index 793df782..4fa5100e 100644
--- a/runtime/rsyslog.h
+++ b/runtime/rsyslog.h
@@ -29,10 +29,14 @@
/* ############################################################# *
* # Config Settings # *
* ############################################################# */
-#define RS_STRINGBUF_ALLOC_INCREMENT 128
-#define CONF_TAG_MAXSIZE 512 /* a value that is deemed far too large for any valid TAG */
-#define CONF_RAWMSG_BUFSIZE 101
-#define CONF_TAG_BUFSIZE 33 /* RFC says 32 chars (+ \0), but in practice we see longer ones... */
+#define RS_STRINGBUF_ALLOC_INCREMENT 128
+/* MAXSIZE are absolute maxima, while BUFSIZE are just values after which
+ * processing is more time-intense.
+ */
+#define CONF_TAG_MAXSIZE 512 /* a value that is deemed far too large for any valid TAG */
+#define CONF_TAG_HOSTNAME 512 /* a value that is deemed far too large for any valid HOSTNAME */
+#define CONF_RAWMSG_BUFSIZE 101
+#define CONF_TAG_BUFSIZE 33 /* RFC says 32 chars (+ \0), but in practice we see longer ones... */
/* ############################################################# *