Imported Upstream version 2.5.1
[ossec-hids.git] / src / config / active-response.h
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All right 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 2) as published by the FSF - Free Software
9  * Foundation
10  */
11
12  
13 #ifndef _CAR__H
14 #define _CAR__H
15
16
17 /** Active response commands **/
18 typedef struct _ar_command
19 {
20     int expect;
21     int timeout_allowed;
22     
23     char *name;
24     char *executable;
25 }ar_command;
26
27
28 /** Active response data **/
29 typedef struct _ar
30 {
31     int timeout;
32     int location;
33     int level;
34     char *name;
35     char *command;
36     char *agent_id;
37     char *rules_id;
38     char *rules_group;
39     
40     ar_command *ar_cmd;
41 }active_response;
42
43
44 /* Active response flag */
45 int ar_flag;
46
47 #endif