suricata
detect-engine-threshold.h
Go to the documentation of this file.
1/* Copyright (C) 2007-2021 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 Breno Silva <breno.silva@gmail.com>
22 * \author Victor Julien <victor@inliniac.net>
23 */
24
25#ifndef SURICATA_DETECT_ENGINE_THRESHOLD_H
26#define SURICATA_DETECT_ENGINE_THRESHOLD_H
27
28#include "detect.h"
29#include "detect-threshold.h"
30
31void ThresholdInit(void);
32void ThresholdDestroy(void);
33
34uint32_t ThresholdsExpire(const SCTime_t ts);
35
37 const Signature *, const SigMatchData **, int list);
39 const DetectThresholdData *, Packet *, const Signature *, PacketAlert *);
40
41void ThresholdListFree(void *ptr);
43
44void FlowThresholdVarFree(void *ptr);
45
46#endif /* SURICATA_DETECT_ENGINE_THRESHOLD_H */
void ThresholdListFree(void *ptr)
const DetectThresholdData * SigGetThresholdTypeIter(const Signature *, const SigMatchData **, int list)
Return next DetectThresholdData for signature.
void ThresholdInit(void)
int PacketAlertThreshold(const DetectEngineCtx *, DetectEngineThreadCtx *, const DetectThresholdData *, Packet *, const Signature *, PacketAlert *)
Make the threshold logic for signatures.
void ThresholdDestroy(void)
uint32_t ThresholdsExpire(const SCTime_t ts)
void ThresholdCacheThreadFree(void)
void FlowThresholdVarFree(void *ptr)
uint64_t ts
main detection engine ctx
Definition detect.h:932
Data needed for Match()
Definition detect.h:365
Signature container.
Definition detect.h:668