summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-23 17:14:42 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-23 17:14:42 +0200
commitb2fa740b9ab5fb9e85309b3307f3fca21f625ab1 (patch)
tree0cf84e30d570bca9ccbbd695484171c0c820cc4e /runtime/rsyslog.h
parent662ad3e4bf8dbd317d18aa1afcbf3e8b9e424506 (diff)
downloadrsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.tar.gz
rsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.tar.xz
rsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.zip
optimized TAG handling
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r--runtime/rsyslog.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h
index 4fa5100e..913ab300 100644
--- a/runtime/rsyslog.h
+++ b/runtime/rsyslog.h
@@ -31,12 +31,14 @@
* ############################################################# */
#define RS_STRINGBUF_ALLOC_INCREMENT 128
/* MAXSIZE are absolute maxima, while BUFSIZE are just values after which
- * processing is more time-intense.
+ * processing is more time-intense. The BUFSIZE params currently add their
+ * value to the fixed size of the message object.
*/
#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... */
+#define CONF_TAG_BUFSIZE 32
+#define CONF_HOSTNAME_BUFSIZE 32
/* ############################################################# *