diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-18 08:03:10 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-18 08:03:10 +0000 |
commit | 37dc5101883283ff2628e899449384154bcb8fcd (patch) | |
tree | 9c90c1b0bcdb2c3a1dfd914ed6daf6ca43653794 /syslogd.h | |
parent | 8550278ca48b2953db359e6bb00df562db6961a1 (diff) | |
download | rsyslog-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 'syslogd.h')
-rw-r--r-- | syslogd.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -55,7 +55,9 @@ void logerrorVar(char *fmt, ...) __attribute__((format(printf, 1, 2))); void logerrorSz(char *type, char *errMsg); void logerrorInt(char *type, int iErr); -void printchopped(char *hname, char *msg, int len, int fd, int iSourceType); +#define MSG_PARSE_HOSTNAME 1 +#define MSG_DONT_PARSE_HOSTNAME 0 +rsRetVal parseAndSubmitMessage(char *hname, char *msg, int len, int bParseHost); int isAllowedSender(struct AllowedSenders *pAllowRoot, struct sockaddr *pFrom, const char *pszFromHost); void getCurrTime(struct syslogTime *t); int formatTimestampToMySQL(struct syslogTime *ts, char* pDst, size_t iLenDst); |