summaryrefslogtreecommitdiffstats
path: root/plugins/imtemplate
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-18 08:03:10 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-18 08:03:10 +0000
commit37dc5101883283ff2628e899449384154bcb8fcd (patch)
tree9c90c1b0bcdb2c3a1dfd914ed6daf6ca43653794 /plugins/imtemplate
parent8550278ca48b2953db359e6bb00df562db6961a1 (diff)
downloadrsyslog-37dc5101883283ff2628e899449384154bcb8fcd.tar.gz
rsyslog-37dc5101883283ff2628e899449384154bcb8fcd.tar.xz
rsyslog-37dc5101883283ff2628e899449384154bcb8fcd.zip
- changed interface "printchopped()" so that it looks more like a generic
message submission interface. Part of the ongoing modularization effort. - bugfix: invalid kernel log format -- see bug http://bugzilla.adiscon.com/show_bug.cgi?id=1
Diffstat (limited to 'plugins/imtemplate')
-rw-r--r--plugins/imtemplate/imtemplate.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/imtemplate/imtemplate.c b/plugins/imtemplate/imtemplate.c
index 867f2778..e1e29ba6 100644
--- a/plugins/imtemplate/imtemplate.c
+++ b/plugins/imtemplate/imtemplate.c
@@ -255,10 +255,10 @@ CODESTARTrunInput
* in syslogd.c (sorry, folks...).
*
* If you received a full syslog message that must be decoded by a message
- * parser, printchopped() is the way to go. It's not just a funny name
+ * parser, parseAndSubmitMessage() is the way to go. It's not just a funny name
* but also a quite some legacy. Consequently, its interface is, ummm, not
* well designed.
- * printchopped((char*)fromHost, (char*) pRcvBuf, lenRcvd, fd, bParseHost);
+ * parseAndSubmitMessage((char*)fromHost, (char*) pRcvBuf, lenRcvd, bParseHost);
* fromHost
* is the host that we received the message from (a string)
* pRcvBuf
@@ -268,14 +268,11 @@ CODESTARTrunInput
* NOT a standard C-string. Most importantly it is NOT expected to be
* \0-terminated. Thus the lenght is vitally imporant (if it is wrong,
* rsyslogd will probably segfault).
- * fd
- * is the file descriptor that the message was received from. It is
- * purely used for displaying purposes. If you don't have a file
- * descriptor, simply provide the value 0.
* bParseHost
* is a boolean (0-no, 1-yes). It tells the parser whether or not
* a hostname should be parsed from the message. This is important
* for sources that are known not to provide a hostname.
+ * Use define MSG_PARSE_HOSTNAME and MSG_DONT_PARSE_HOSTNAME
*
* Another, more elaborate, way is to create the message object ourselves and
* pass it to the rule engine. That way is more appropriate if the message