suricata
detect-xbits.h
Go to the documentation of this file.
1
/* Copyright (C) 2007-2014 Open Information Security Foundation
2
*
3
* You can copy, redistribute or modify this Program under the terms of
4
* the GNU General Public License version 2 as published by the Free
5
* Software Foundation.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* version 2 along with this program; if not, write to the Free Software
14
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
* 02110-1301, USA.
16
*/
17
18
/**
19
* \file
20
*
21
* \author Victor Julien <victor@inliniac.net>
22
*/
23
24
#ifndef SURICATA_DETECT_XBITS_H
25
#define SURICATA_DETECT_XBITS_H
26
27
#define DETECT_XBITS_CMD_SET 0
28
#define DETECT_XBITS_CMD_TOGGLE 1
29
#define DETECT_XBITS_CMD_UNSET 2
30
#define DETECT_XBITS_CMD_ISNOTSET 3
31
#define DETECT_XBITS_CMD_ISSET 4
32
#define DETECT_XBITS_CMD_NOALERT 5
33
34
#define DETECT_XBITS_TRACK_IPSRC 0
35
#define DETECT_XBITS_TRACK_IPDST 1
36
#define DETECT_XBITS_TRACK_IPPAIR 2
37
38
#define DETECT_XBITS_EXPIRE_DEFAULT 30
39
40
typedef
struct
DetectXbitsData_
{
41
uint32_t
idx
;
42
uint8_t
cmd
;
43
uint8_t
tracker
;
44
uint32_t
expire
;
45
/** data type: host/ippair/flow used for sig sorting in sigorder */
46
enum
VarTypes
type
;
47
}
DetectXbitsData
;
48
49
/* prototypes */
50
void
DetectXbitsRegister
(
void
);
51
52
#endif
/* SURICATA_DETECT_XBITS_H */
DetectXbitsData_::expire
uint32_t expire
Definition:
detect-xbits.h:44
DetectXbitsData_::cmd
uint8_t cmd
Definition:
detect-xbits.h:42
DetectXbitsData_
Definition:
detect-xbits.h:40
DetectXbitsData_::type
enum VarTypes type
Definition:
detect-xbits.h:46
DetectXbitsData_::idx
uint32_t idx
Definition:
detect-xbits.h:41
DetectXbitsData_::tracker
uint8_t tracker
Definition:
detect-xbits.h:43
DetectXbitsRegister
void DetectXbitsRegister(void)
Definition:
detect-xbits.c:69
VarTypes
VarTypes
Definition:
util-var.h:28
DetectXbitsData
struct DetectXbitsData_ DetectXbitsData
src
detect-xbits.h
Generated on Wed Nov 20 2024 23:30:34 for suricata by
1.8.18