novi upstream verzije 2.8.3
[ossec-hids.git] / src / config / global-config.h
1 /* @(#) $Id: ./src/config/global-config.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All right 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
15 #ifndef _CCONFIG__H
16 #define _CCONFIG__H
17 #include "shared.h"
18
19
20 /* Configuration structure */
21 typedef struct __Config
22 {
23     u_int8_t logall;
24     u_int8_t stats;
25     u_int8_t integrity;
26     u_int8_t syscheck_auto_ignore;
27     u_int8_t syscheck_alert_new;
28     u_int8_t rootcheck;
29     u_int8_t hostinfo;
30     u_int8_t mailbylevel;
31     u_int8_t logbylevel;
32     u_int8_t logfw;
33
34     /* Prelude support */
35     u_int8_t prelude;
36     /* which min. level the alert must be sent to prelude */
37     u_int8_t prelude_log_level;
38     /* prelude profile name */
39     char *prelude_profile;
40
41     /* ZEROMQ Export */
42     u_int8_t zeromq_output; 
43     char *zeromq_output_uri;
44
45     /* Picviz support */
46     u_int8_t picviz;
47     char *picviz_socket;
48
49     /* Not currently used */
50     u_int8_t keeplogdate;
51
52     /* Mail alerting */
53     short int mailnotify;
54
55     /* Custom Alert output*/
56     short int custom_alert_output;
57     char * custom_alert_output_format;
58
59     /* For the active response */
60     int ar;
61
62     /* For the correlation */
63     int memorysize;
64
65     /* List of files to ignore (syscheck) */
66     char **syscheck_ignore;
67
68     /* List of ips to never block */
69     os_ip **white_list;
70
71     /* List of hostnames to never block */
72     OSMatch **hostname_white_list;
73
74     /* List of rules */
75     char **includes;
76
77     /* List of Lists */
78     char **lists;
79
80     /* List of decoders */
81     char **decoders;
82
83     /* Global rule hash. */
84     void *g_rules_hash;
85
86 #ifdef GEOIP
87     /* GeoIP support */
88     u_int8_t loggeoip;
89     char *geoip_db_path;
90     char *geoip6_db_path;
91 #endif
92
93 }_Config;
94
95
96 #endif