X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_csyslogd%2Fcsyslogd.h;h=28435c94c264af6c65e3bbc3e6c989a057d148fc;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=08bb9b9112cec313e933e5142f936e5e290e2d6a;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/os_csyslogd/csyslogd.h b/src/os_csyslogd/csyslogd.h index 08bb9b9..28435c9 100755 --- a/src/os_csyslogd/csyslogd.h +++ b/src/os_csyslogd/csyslogd.h @@ -1,14 +1,15 @@ -/* @(#) $Id: csyslogd.h,v 1.2 2009/06/24 17:06:29 dcid Exp $ */ +/* @(#) $Id: ./src/os_csyslogd/csyslogd.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights 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. * - * License details at the LICENSE file included with OSSEC or + * License details at the LICENSE file included with OSSEC or * online at: http://www.ossec.net/en/licensing.html */ @@ -19,6 +20,7 @@ #include "config/csyslogd-config.h" +#define OS_CSYSLOGD_MAX_TRIES 10 /** Prototypes **/ @@ -34,6 +36,10 @@ int OS_Alert_SendSyslog(alert_data *al_data, SyslogConfig *syslog_config); /* Database inserting main function */ void OS_CSyslogD(SyslogConfig **syslog_config); +/* Conditional Field Formatting */ +int field_add_int(char *dest, int size, const char *format, const int value ); +int field_add_string(char *dest, int size, const char *format, const char *value ); +int field_add_truncated(char *dest, int size, const char *format, const char *value, int fmt_size ); /** Global vars **/