Imported Upstream version 2.7
[ossec-hids.git] / src / headers / read-alert.h
1 /* @(#) $Id: ./src/headers/read-alert.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 __CRALERT_H
16 #define __CRALERT_H
17
18 #define CRALERT_MAIL_SET    0x001
19 #define CRALERT_EXEC_SET    0x002
20 #define CRALERT_READ_ALL    0x004
21 #define CRALERT_FP_SET      0x010
22
23
24 /* File queue */
25 typedef struct _alert_data
26 {
27     int rule;
28     int level;
29     char *alertid;
30     char *date;
31     char *location;
32     char *comment;
33     char *group;
34     char *srcip;
35     int srcport;
36     char *dstip;
37     int dstport;
38     char *user;
39     char *filename;
40     char *old_md5;
41     char *new_md5;
42     char *old_sha1;
43     char *new_sha1;
44     char **log;
45 #ifdef GEOIP
46     char *geoipdatasrc;
47     char *geoipdatadst;
48 #endif
49 }alert_data;
50
51
52 alert_data *GetAlertData(int flag, FILE *fp);
53 void FreeAlertData(alert_data *al_data);
54
55
56 #endif