X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Freport_op.h;h=a19ec93f753fcbfb2a20773a92f7a11674800769;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hp=41711ccc47ab51b878e958d34ebbedbed392ea1e;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/headers/report_op.h b/src/headers/report_op.h index 41711cc..a19ec93 100755 --- a/src/headers/report_op.h +++ b/src/headers/report_op.h @@ -1,11 +1,12 @@ -/* @(#) $Id: report_op.h,v 1.2 2009/06/24 17:06:26 dcid Exp $ */ +/* @(#) $Id: ./src/headers/report_op.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 */ @@ -14,17 +15,19 @@ #define __REPORT_OP_H -#define REPORT_RELATED 1 +#define REPORT_RELATED 1 #define REPORT_FILTER 2 - + #define REPORT_REL_USER 0x001 #define REPORT_REL_SRCIP 0x002 #define REPORT_REL_LEVEL 0x004 #define REPORT_REL_RULE 0x010 #define REPORT_REL_GROUP 0x020 #define REPORT_REL_LOCATION 0x040 - +#define REPORT_TYPE_DAILY 0x100 +#define REPORT_REL_FILE 0x200 + typedef struct _report_filter @@ -35,6 +38,10 @@ typedef struct _report_filter char *rule; char *level; char *location; + char *user; + char *srcip; + char *files; + char *filename; void *top_user; void *top_srcip; @@ -42,20 +49,26 @@ typedef struct _report_filter void *top_rule; void *top_group; void *top_location; + void *top_files; int related_user; + int related_file; int related_srcip; int related_level; int related_rule; int related_group; int related_location; - + + int report_type; + int show_alerts; + void *fp; + }report_filter; -int os_report_configfilter(char *filter_by, char *filter_value, +int os_report_configfilter(char *filter_by, char *filter_value, report_filter *r_filter, int arg_type); void os_report_printtop(void *topstore, char *hname, int print_related); void os_ReportdStart(report_filter *r_filter);