From 37dc5101883283ff2628e899449384154bcb8fcd Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 18 Feb 2008 08:03:10 +0000 Subject: - 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 --- syslogd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'syslogd.h') diff --git a/syslogd.h b/syslogd.h index 43a95ae5..74ed6630 100644 --- a/syslogd.h +++ b/syslogd.h @@ -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); -- cgit