Imported Upstream version 2.7
[ossec-hids.git] / src / headers / report_op.h
1 /* @(#) $Id: ./src/headers/report_op.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All rights reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation
11  */
12
13
14 #ifndef __REPORT_OP_H
15 #define __REPORT_OP_H
16
17
18 #define REPORT_RELATED      1
19 #define REPORT_FILTER       2
20
21
22 #define REPORT_REL_USER          0x001
23 #define REPORT_REL_SRCIP         0x002
24 #define REPORT_REL_LEVEL         0x004
25 #define REPORT_REL_RULE          0x010
26 #define REPORT_REL_GROUP         0x020
27 #define REPORT_REL_LOCATION      0x040
28 #define REPORT_TYPE_DAILY        0x100
29 #define REPORT_REL_FILE          0x200
30
31
32
33 typedef struct _report_filter
34 {
35     char *report_name;
36
37     char *group;
38     char *rule;
39     char *level;
40     char *location;
41     char *user;
42     char *srcip;
43     char *files;
44     char *filename;
45
46     void *top_user;
47     void *top_srcip;
48     void *top_level;
49     void *top_rule;
50     void *top_group;
51     void *top_location;
52     void *top_files;
53
54     int related_user;
55     int related_file;
56     int related_srcip;
57     int related_level;
58     int related_rule;
59     int related_group;
60     int related_location;
61
62     int report_type;
63     int show_alerts;
64     void *fp;
65
66 }report_filter;
67
68
69
70
71 int os_report_configfilter(char *filter_by, char *filter_value,
72                            report_filter *r_filter, int arg_type);
73 void os_report_printtop(void *topstore, char *hname, int print_related);
74 void os_ReportdStart(report_filter *r_filter);
75
76
77 #endif