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