X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fconfig%2Fcsyslogd-config.h;h=087429b1ba0bbb9bade6969b64812ee8bf4f0954;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=182d9752e61c79a8868c26fdcd8ad46abe95314c;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/config/csyslogd-config.h b/src/config/csyslogd-config.h old mode 100755 new mode 100644 index 182d975..087429b --- a/src/config/csyslogd-config.h +++ b/src/config/csyslogd-config.h @@ -1,41 +1,41 @@ -/* @(#) $Id: csyslogd-config.h,v 1.3 2009/06/24 17:06:25 dcid Exp $ */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ - #include "shared.h" - #ifndef _CSYSLOGCONFIG__H #define _CSYSLOGCONFIG__H - /* Database config structure */ -typedef struct _SyslogConfig -{ - unsigned int port; +typedef struct _SyslogConfig { + char *port; unsigned int format; unsigned int level; unsigned int *rule_id; unsigned int priority; + unsigned int use_fqdn; int socket; char *server; OSMatch *group; OSMatch *location; -}SyslogConfig; +} SyslogConfig; +struct SyslogConfig_holder { + SyslogConfig **data; +}; -/* Syslog formats. */ +/* Syslog formats */ #define DEFAULT_CSYSLOG 0 - +#define CEF_CSYSLOG 1 +#define JSON_CSYSLOG 2 +#define SPLUNK_CSYSLOG 3 /* Syslog severities */ #define SLOG_EMERG 0 /* system is unusable */ @@ -47,4 +47,4 @@ typedef struct _SyslogConfig #define SLOG_INFO 6 /* informational */ #define SLOG_DEBUG 7 /* debug-level messages */ -#endif +#endif /* _CSYSLOGCONFIG__H */