suricata
tm-threads-common.h
Go to the documentation of this file.
1
/* Copyright (C) 2007-2013 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
* \author Anoop Saldanha <anoopsaldanha@gmail.com>
23
*/
24
25
#ifndef SURICATA_TM_THREADS_COMMON_H
26
#define SURICATA_TM_THREADS_COMMON_H
27
28
/** \brief Thread Model Module id's.
29
*
30
* \note anything added here should also be added to TmModuleTmmIdToString
31
* in tm-modules.c
32
*/
33
typedef
enum
{
34
TMM_FLOWWORKER
,
35
TMM_DECODENFQ
,
36
TMM_VERDICTNFQ
,
37
TMM_RECEIVENFQ
,
38
TMM_RECEIVEPCAP
,
39
TMM_RECEIVEPCAPFILE
,
40
TMM_DECODEPCAP
,
41
TMM_DECODEPCAPFILE
,
42
TMM_RECEIVEPLUGIN
,
43
TMM_DECODEPLUGIN
,
44
TMM_RESPONDREJECT
,
45
TMM_DECODEIPFW
,
46
TMM_VERDICTIPFW
,
47
TMM_RECEIVEIPFW
,
48
TMM_RECEIVEERFFILE
,
49
TMM_DECODEERFFILE
,
50
TMM_RECEIVEERFDAG
,
51
TMM_DECODEERFDAG
,
52
TMM_RECEIVEAFP
,
53
TMM_RECEIVEAFXDP
,
54
TMM_DECODEAFP
,
55
TMM_DECODEAFXDP
,
56
TMM_RECEIVEDPDK
,
57
TMM_DECODEDPDK
,
58
TMM_RECEIVENETMAP
,
59
TMM_DECODENETMAP
,
60
TMM_ALERTPCAPINFO
,
61
TMM_STATSLOGGER
,
62
TMM_RECEIVENFLOG
,
63
TMM_DECODENFLOG
,
64
TMM_RECEIVEWINDIVERT
,
65
TMM_VERDICTWINDIVERT
,
66
TMM_DECODEWINDIVERT
,
67
68
TMM_FLOWMANAGER
,
69
TMM_FLOWRECYCLER
,
70
TMM_BYPASSEDFLOWMANAGER
,
71
TMM_DETECTLOADER
,
72
73
TMM_UNIXMANAGER
,
74
75
TMM_SIZE
,
76
}
TmmId
;
77
78
/*Error codes for the thread modules*/
79
typedef
enum
{
80
TM_ECODE_OK
= 0,
/**< Thread module exits OK*/
81
TM_ECODE_FAILED
,
/**< Thread module exits due to failure*/
82
TM_ECODE_DONE
,
/**< Thread module task is finished*/
83
}
TmEcode
;
84
85
/* ThreadVars type */
86
enum
{
87
TVT_PPT
,
88
TVT_MGMT
,
89
TVT_CMD
,
90
TVT_MAX
,
91
};
92
93
#endif
/* SURICATA_TM_THREADS_COMMON_H */
TMM_RECEIVEERFFILE
@ TMM_RECEIVEERFFILE
Definition:
tm-threads-common.h:48
TMM_RECEIVEPLUGIN
@ TMM_RECEIVEPLUGIN
Definition:
tm-threads-common.h:42
TMM_RECEIVEDPDK
@ TMM_RECEIVEDPDK
Definition:
tm-threads-common.h:56
TMM_RECEIVEERFDAG
@ TMM_RECEIVEERFDAG
Definition:
tm-threads-common.h:50
TMM_FLOWRECYCLER
@ TMM_FLOWRECYCLER
Definition:
tm-threads-common.h:69
TMM_DECODENFQ
@ TMM_DECODENFQ
Definition:
tm-threads-common.h:35
TMM_DECODEDPDK
@ TMM_DECODEDPDK
Definition:
tm-threads-common.h:57
TMM_STATSLOGGER
@ TMM_STATSLOGGER
Definition:
tm-threads-common.h:61
TM_ECODE_DONE
@ TM_ECODE_DONE
Definition:
tm-threads-common.h:82
TMM_RECEIVEAFXDP
@ TMM_RECEIVEAFXDP
Definition:
tm-threads-common.h:53
TM_ECODE_FAILED
@ TM_ECODE_FAILED
Definition:
tm-threads-common.h:81
TMM_DECODEWINDIVERT
@ TMM_DECODEWINDIVERT
Definition:
tm-threads-common.h:66
TM_ECODE_OK
@ TM_ECODE_OK
Definition:
tm-threads-common.h:80
TMM_DECODEPLUGIN
@ TMM_DECODEPLUGIN
Definition:
tm-threads-common.h:43
TMM_DECODENFLOG
@ TMM_DECODENFLOG
Definition:
tm-threads-common.h:63
TMM_BYPASSEDFLOWMANAGER
@ TMM_BYPASSEDFLOWMANAGER
Definition:
tm-threads-common.h:70
TMM_DECODEAFP
@ TMM_DECODEAFP
Definition:
tm-threads-common.h:54
TMM_RECEIVEPCAPFILE
@ TMM_RECEIVEPCAPFILE
Definition:
tm-threads-common.h:39
TMM_UNIXMANAGER
@ TMM_UNIXMANAGER
Definition:
tm-threads-common.h:73
TMM_DECODEAFXDP
@ TMM_DECODEAFXDP
Definition:
tm-threads-common.h:55
TVT_MAX
@ TVT_MAX
Definition:
tm-threads-common.h:90
TMM_DECODENETMAP
@ TMM_DECODENETMAP
Definition:
tm-threads-common.h:59
TVT_MGMT
@ TVT_MGMT
Definition:
tm-threads-common.h:88
TMM_DECODEERFDAG
@ TMM_DECODEERFDAG
Definition:
tm-threads-common.h:51
TMM_DECODEPCAPFILE
@ TMM_DECODEPCAPFILE
Definition:
tm-threads-common.h:41
TMM_SIZE
@ TMM_SIZE
Definition:
tm-threads-common.h:75
TmEcode
TmEcode
Definition:
tm-threads-common.h:79
TMM_DECODEERFFILE
@ TMM_DECODEERFFILE
Definition:
tm-threads-common.h:49
TVT_CMD
@ TVT_CMD
Definition:
tm-threads-common.h:89
TMM_FLOWMANAGER
@ TMM_FLOWMANAGER
Definition:
tm-threads-common.h:68
TMM_FLOWWORKER
@ TMM_FLOWWORKER
Definition:
tm-threads-common.h:34
TMM_RECEIVEAFP
@ TMM_RECEIVEAFP
Definition:
tm-threads-common.h:52
TMM_DETECTLOADER
@ TMM_DETECTLOADER
Definition:
tm-threads-common.h:71
TMM_RESPONDREJECT
@ TMM_RESPONDREJECT
Definition:
tm-threads-common.h:44
TMM_RECEIVENFLOG
@ TMM_RECEIVENFLOG
Definition:
tm-threads-common.h:62
TMM_RECEIVEIPFW
@ TMM_RECEIVEIPFW
Definition:
tm-threads-common.h:47
TmmId
TmmId
Thread Model Module id's.
Definition:
tm-threads-common.h:33
TMM_VERDICTNFQ
@ TMM_VERDICTNFQ
Definition:
tm-threads-common.h:36
TMM_RECEIVEWINDIVERT
@ TMM_RECEIVEWINDIVERT
Definition:
tm-threads-common.h:64
TMM_RECEIVENFQ
@ TMM_RECEIVENFQ
Definition:
tm-threads-common.h:37
TMM_VERDICTIPFW
@ TMM_VERDICTIPFW
Definition:
tm-threads-common.h:46
TMM_RECEIVENETMAP
@ TMM_RECEIVENETMAP
Definition:
tm-threads-common.h:58
TMM_DECODEPCAP
@ TMM_DECODEPCAP
Definition:
tm-threads-common.h:40
TVT_PPT
@ TVT_PPT
Definition:
tm-threads-common.h:87
TMM_RECEIVEPCAP
@ TMM_RECEIVEPCAP
Definition:
tm-threads-common.h:38
TMM_DECODEIPFW
@ TMM_DECODEIPFW
Definition:
tm-threads-common.h:45
TMM_ALERTPCAPINFO
@ TMM_ALERTPCAPINFO
Definition:
tm-threads-common.h:60
TMM_VERDICTWINDIVERT
@ TMM_VERDICTWINDIVERT
Definition:
tm-threads-common.h:65
src
tm-threads-common.h
Generated on Sat Dec 21 2024 23:30:37 for suricata by
1.8.18