suricata
util-running-modes.c
Go to the documentation of this file.
1
/* Copyright (C) 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
/** \file
19
*
20
* \author Eric Leblond <eric@regit.org>
21
*/
22
23
#include "
suricata-common.h
"
24
#include "
app-layer-detect-proto.h
"
25
#include "
app-layer.h
"
26
#include "
app-layer-parser.h
"
27
#include "
util-unittest.h
"
28
#include "
util-debug.h
"
29
#include "
conf-yaml-loader.h
"
30
#include "
util-running-modes.h
"
31
32
int
ListKeywords
(
const
char
*keyword_info)
33
{
34
EngineModeSetIDS
();
35
SCLogLoadConfig
(0, 0, 0, 0);
36
MpmTableSetup
();
37
SpmTableSetup
();
38
AppLayerSetup
();
39
SigTableInit
();
40
SigTableSetup
();
/* load the rule keywords */
41
return
SigTableList
(keyword_info);
42
}
43
44
int
ListAppLayerProtocols
(
const
char
*conf_filename)
45
{
46
EngineModeSetIDS
();
47
if
(
ConfYamlLoadFile
(conf_filename) != -1)
48
SCLogLoadConfig
(0, 0, 0, 0);
49
MpmTableSetup
();
50
SpmTableSetup
();
51
AppLayerSetup
();
52
AppLayerListSupportedProtocols
();
53
54
return
TM_ECODE_DONE
;
55
}
56
SigTableSetup
void SigTableSetup(void)
Definition:
detect-engine-register.c:476
TM_ECODE_DONE
@ TM_ECODE_DONE
Definition:
tm-threads-common.h:82
SigTableInit
void SigTableInit(void)
Definition:
detect-engine-register.c:464
AppLayerListSupportedProtocols
void AppLayerListSupportedProtocols(void)
Definition:
app-layer.c:1013
util-unittest.h
AppLayerSetup
int AppLayerSetup(void)
Setup the app layer.
Definition:
app-layer.c:1033
app-layer-detect-proto.h
util-debug.h
ConfYamlLoadFile
int ConfYamlLoadFile(const char *filename)
Load configuration from a YAML file.
Definition:
conf-yaml-loader.c:476
EngineModeSetIDS
void EngineModeSetIDS(void)
Definition:
suricata.c:245
SpmTableSetup
void SpmTableSetup(void)
Definition:
util-spm.c:122
app-layer-parser.h
ListAppLayerProtocols
int ListAppLayerProtocols(const char *conf_filename)
Definition:
util-running-modes.c:44
conf-yaml-loader.h
MpmTableSetup
void MpmTableSetup(void)
Definition:
util-mpm.c:225
suricata-common.h
util-running-modes.h
SCLogLoadConfig
void SCLogLoadConfig(int daemon, int verbose, uint32_t userid, uint32_t groupid)
Definition:
util-debug.c:1420
ListKeywords
int ListKeywords(const char *keyword_info)
Definition:
util-running-modes.c:32
SigTableList
int SigTableList(const char *keyword)
Definition:
detect-engine-register.c:372
app-layer.h
src
util-running-modes.c
Generated on Sat Dec 21 2024 23:30:39 for suricata by
1.8.18