mirror of https://github.com/OISF/suricata
detect: move grouping/building code into own file
Clean up main detect.c file by moving things related to rule grouping out.pull/3072/head
parent
622d60b74d
commit
90569d5fd6
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,42 @@
|
||||
/* Copyright (C) 2007-2017 Open Information Security Foundation
|
||||
*
|
||||
* You can copy, redistribute or modify this Program under the terms of
|
||||
* the GNU General Public License version 2 as published by the Free
|
||||
* Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* version 2 along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef __DETECT_ENGINE_BUILD_H__
|
||||
#define __DETECT_ENGINE_BUILD_H__
|
||||
|
||||
void PacketCreateMask(Packet *p, SignatureMask *mask, AppProto alproto,
|
||||
bool has_state, int app_decoder_events);
|
||||
|
||||
int SignatureIsFilestoring(const Signature *);
|
||||
int SignatureIsFilemagicInspecting(const Signature *);
|
||||
int SignatureIsFileMd5Inspecting(const Signature *);
|
||||
int SignatureIsFileSha1Inspecting(const Signature *s);
|
||||
int SignatureIsFileSha256Inspecting(const Signature *s);
|
||||
int SignatureIsFilesizeInspecting(const Signature *);
|
||||
|
||||
int SigAddressPrepareStage1(DetectEngineCtx *de_ctx);
|
||||
int SigAddressPrepareStage2(DetectEngineCtx *de_ctx);
|
||||
int SigAddressPrepareStage3(DetectEngineCtx *de_ctx);
|
||||
int SigAddressPrepareStage4(DetectEngineCtx *de_ctx);
|
||||
int SigAddressCleanupStage1(DetectEngineCtx *de_ctx);
|
||||
|
||||
void SigCleanSignatures(DetectEngineCtx *);
|
||||
|
||||
int SigGroupBuild(DetectEngineCtx *);
|
||||
int SigGroupCleanup (DetectEngineCtx *de_ctx);
|
||||
|
||||
#endif /* __DETECT_ENGINE_BUILD_H__ */
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue