Imported Upstream version 2.7
[ossec-hids.git] / src / config / active-response.h
1 /* @(#) $Id: ./src/config/active-response.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 #ifndef _CAR__H
15 #define _CAR__H
16
17
18 /** Active response commands **/
19 typedef struct _ar_command
20 {
21     int expect;
22     int timeout_allowed;
23
24     char *name;
25     char *executable;
26 }ar_command;
27
28
29 /** Active response data **/
30 typedef struct _ar
31 {
32     int timeout;
33     int location;
34     int level;
35     char *name;
36     char *command;
37     char *agent_id;
38     char *rules_id;
39     char *rules_group;
40
41     ar_command *ar_cmd;
42 }active_response;
43
44
45 /* Active response flag */
46 int ar_flag;
47
48 #endif