suricata
|
#include "suricata-common.h"
#include "detect.h"
#include "detect-engine.h"
#include "detect-engine-address.h"
#include "detect-engine-port.h"
#include "detect-engine-mpm.h"
#include "detect-engine-state.h"
#include "detect-engine-build.h"
#include "detect-content.h"
#include "detect-bsize.h"
#include "detect-isdataat.h"
#include "detect-pcre.h"
#include "detect-uricontent.h"
#include "detect-reference.h"
#include "detect-ipproto.h"
#include "detect-flow.h"
#include "detect-app-layer-protocol.h"
#include "detect-lua.h"
#include "detect-app-layer-event.h"
#include "detect-http-method.h"
#include "pkt-var.h"
#include "host.h"
#include "util-profiling.h"
#include "decode.h"
#include "flow.h"
#include "util-rule-vars.h"
#include "conf.h"
#include "conf-yaml-loader.h"
#include "app-layer.h"
#include "app-layer-protos.h"
#include "app-layer-parser.h"
#include "app-layer-htp.h"
#include "util-classification-config.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-debug.h"
#include "string.h"
#include "detect-parse.h"
#include "detect-engine-iponly.h"
#include "detect-engine-file.h"
#include "app-layer-detect-proto.h"
#include "action-globals.h"
#include "util-validate.h"
#include "detect-engine-alert.h"
#include "packet.h"
#include "tests/detect-parse.c"
Go to the source code of this file.
Data Structures | |
struct | DetectFileHandlerProtocol_t |
struct | SigDuplWrapper_ |
Registration table for file handlers. More... | |
struct | SignatureParser_ |
Macros | |
#define | ALPROTO_WITHFILES_MAX 16 |
#define | CASE_CODE_STRING(E, S) case E: return S; break |
#define | CASE_CODE(E) case E: return #E |
#define | URL "https://suricata.io/our-story/deprecation-policy/" |
Typedefs | |
typedef struct SigDuplWrapper_ | SigDuplWrapper |
Registration table for file handlers. More... | |
typedef struct SignatureParser_ | SignatureParser |
Functions | |
void | DetectFileRegisterProto (AppProto alproto, int direction, int to_client_progress, int to_server_progress) |
void | DetectFileRegisterFileProtocols (DetectFileHandlerTableElmt *reg) |
const char * | DetectListToHumanString (int list) |
const char * | DetectListToString (int list) |
int | DetectEngineContentModifierBufferSetup (DetectEngineCtx *de_ctx, Signature *s, const char *arg, int sm_type, int sm_list, AppProto alproto) |
SigMatch * | SigMatchAlloc (void) |
void | SigMatchFree (DetectEngineCtx *de_ctx, SigMatch *sm) |
free a SigMatch More... | |
bool | SigMatchSilentErrorEnabled (const DetectEngineCtx *de_ctx, const enum DetectKeywordId id) |
bool | SigMatchStrictEnabled (const enum DetectKeywordId id) |
void | SigTableApplyStrictCommandLineOption (const char *str) |
SigMatch * | SigMatchAppendSMToList (DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list) |
Append a SigMatch to the list type. More... | |
void | SigMatchRemoveSMFromList (Signature *s, SigMatch *sm, int sm_list) |
SigMatch * | DetectGetLastSMFromMpmLists (const DetectEngineCtx *de_ctx, const Signature *s) |
get the last SigMatch from lists that support MPM. More... | |
SigMatch * | DetectGetLastSMFromLists (const Signature *s,...) |
Returns the sm with the largest index (added latest) from the lists passed to us. More... | |
SigMatch * | DetectGetLastSMByListPtr (const Signature *s, SigMatch *sm_list,...) |
Returns the sm with the largest index (added last) from the list passed to us as a pointer. More... | |
SigMatch * | DetectGetLastSMByListId (const Signature *s, int list_id,...) |
Returns the sm with the largest index (added last) from the list passed to us as an id. More... | |
SigMatch * | DetectGetLastSM (const Signature *s) |
Returns the sm with the largest index (added latest) from this sig. More... | |
int | SigMatchListSMBelongsTo (const Signature *s, const SigMatch *key_sm) |
void | DetectRegisterAppLayerHookLists (void) |
register app hooks as generic lists More... | |
int | SignatureInitDataBufferCheckExpand (Signature *s) |
check if buffers array still has space left, expand if not More... | |
Signature * | SigAlloc (void) |
void | SigFree (DetectEngineCtx *de_ctx, Signature *s) |
int | DetectSignatureAddTransform (Signature *s, int transform, void *options) |
int | DetectSignatureSetMultiAppProto (Signature *s, const AppProto *alprotos) |
this function is used to set multiple possible app-layer protos More... | |
int | DetectSignatureSetAppProto (Signature *s, AppProto alproto) |
SigMatchData * | SigMatchList2DataArray (SigMatch *head) |
convert SigMatch list to SigMatchData array More... | |
Signature * | SigInit (DetectEngineCtx *de_ctx, const char *sigstr) |
Parses a signature and adds it to the Detection Engine Context. More... | |
int | DetectParseDupSigHashInit (DetectEngineCtx *de_ctx) |
Initializes the hash table that is used to cull duplicate sigs. More... | |
void | DetectParseDupSigHashFree (DetectEngineCtx *de_ctx) |
Frees the hash table that is used to cull duplicate sigs. More... | |
Signature * | DetectFirewallRuleAppendNew (DetectEngineCtx *de_ctx, const char *sigstr) |
Parse and append a Signature into the Detection Engine Context signature list. More... | |
Signature * | DetectEngineAppendSig (DetectEngineCtx *de_ctx, const char *sigstr) |
Parse and append a Signature into the Detection Engine Context signature list. More... | |
int | DetectParsePcreExec (DetectParseRegex *parse_regex, pcre2_match_data **match, const char *str, int start_offset, int options) |
void | DetectParseFreeRegex (DetectParseRegex *r) |
void | DetectParseFreeRegexes (void) |
void | DetectParseRegexAddToFreeList (DetectParseRegex *detect_parse) |
add regex and/or study to at exit free list More... | |
bool | DetectSetupParseRegexesOpts (const char *parse_str, DetectParseRegex *detect_parse, int opts) |
DetectParseRegex * | DetectSetupPCRE2 (const char *parse_str, int opts) |
int | SC_Pcre2SubstringCopy (pcre2_match_data *match_data, uint32_t number, PCRE2_UCHAR *buffer, PCRE2_SIZE *bufflen) |
int | SC_Pcre2SubstringGet (pcre2_match_data *match_data, uint32_t number, PCRE2_UCHAR **bufferptr, PCRE2_SIZE *bufflen) |
void | DetectSetupParseRegexes (const char *parse_str, DetectParseRegex *detect_parse) |
int | DetectSetupDirection (Signature *s, const char *str) |
Parse and setup a direction. More... | |
void | DetectParseRegisterTests (void) |
this function registers unit tests for DetectParse More... | |
void | SigParseRegisterTests (void) |
signature parser
Definition in file detect-parse.c.
#define ALPROTO_WITHFILES_MAX 16 |
Definition at line 90 of file detect-parse.c.
#define CASE_CODE | ( | E | ) | case E: return #E |
Definition at line 206 of file detect-parse.c.
#define CASE_CODE_STRING | ( | E, | |
S | |||
) | case E: return S; break |
#define URL "https://suricata.io/our-story/deprecation-policy/" |
typedef struct SigDuplWrapper_ SigDuplWrapper |
Registration table for file handlers.
We use this as data to the hash table DetectEngineCtx->dup_sig_hash_table.
typedef struct SignatureParser_ SignatureParser |
helper structure for sig parsing
Signature* DetectEngineAppendSig | ( | DetectEngineCtx * | de_ctx, |
const char * | sigstr | ||
) |
Parse and append a Signature into the Detection Engine Context signature list.
If the signature is bidirectional it should append two signatures (with the addresses switched) into the list. Also handle duplicate signatures. In case of duplicate sigs, use the ones that have the latest revision. We use the sid and the msg to identify duplicate sigs. If 2 sigs have the same sid and gid, they are duplicates.
de_ctx | Pointer to the Detection Engine Context. |
sigstr | Pointer to a character string containing the signature to be parsed. |
sig_file | Pointer to a character string containing the filename from which signature is read |
lineno | Line number from where signature is read |
Pointer | to the head Signature in the detection engine ctx sig_list on success; NULL on failure. |
In DetectEngineAppendSig(), the signatures are prepended and we always return the first one so if the signature is bidirectional, the returned sig will point through "next" ptr to the cloned signatures with the switched addresses
Definition at line 3344 of file detect-parse.c.
References de_ctx, and SigInit().
Referenced by UTHAppendSigs(), and UTHParseSignature().
int DetectEngineContentModifierBufferSetup | ( | DetectEngineCtx * | de_ctx, |
Signature * | s, | ||
const char * | arg, | ||
int | sm_type, | ||
int | sm_list, | ||
AppProto | alproto | ||
) |
arg | NULL or empty string |
Definition at line 222 of file detect-parse.c.
References Signature_::alproto, ALPROTO_UNKNOWN, DETECT_SM_LIST_NOTSET, Signature_::init_data, SignatureInitData_::list, name, SCLogError, and sigmatch_table.
Referenced by DetectHttpUriSetup().
void DetectFileRegisterFileProtocols | ( | DetectFileHandlerTableElmt * | reg | ) |
Definition at line 127 of file detect-parse.c.
References al_protocols, DetectFileHandlerProtocol_t::alproto, ALPROTO_UNKNOWN, DetectFileHandlerTableElmt_::Callback, DetectAppLayerInspectEngineRegister(), DetectAppLayerMpmRegister(), DetectFileHandlerProtocol_t::direction, g_alproto_max, DetectFileHandlerTableElmt_::GetData, DetectFileHandlerTableElmt_::name, DetectFileHandlerTableElmt_::PrefilterFn, DetectFileHandlerTableElmt_::priority, SIG_FLAG_TOCLIENT, SIG_FLAG_TOSERVER, DetectFileHandlerProtocol_t::to_client_progress, and DetectFileHandlerProtocol_t::to_server_progress.
void DetectFileRegisterProto | ( | AppProto | alproto, |
int | direction, | ||
int | to_client_progress, | ||
int | to_server_progress | ||
) |
Signature* DetectFirewallRuleAppendNew | ( | DetectEngineCtx * | de_ctx, |
const char * | sigstr | ||
) |
Parse and append a Signature into the Detection Engine Context signature list.
If the signature is bidirectional it should append two signatures (with the addresses switched) into the list. Also handle duplicate signatures. In case of duplicate sigs, use the ones that have the latest revision. We use the sid and the msg to identify duplicate sigs. If 2 sigs have the same sid and gid, they are duplicates.
de_ctx | Pointer to the Detection Engine Context. |
sigstr | Pointer to a character string containing the signature to be parsed. |
sig_file | Pointer to a character string containing the filename from which signature is read |
lineno | Line number from where signature is read |
Pointer | to the head Signature in the detection engine ctx sig_list on success; NULL on failure. |
In DetectEngineAppendSig(), the signatures are prepended and we always return the first one so if the signature is bidirectional, the returned sig will point through "next" ptr to the cloned signatures with the switched addresses
Definition at line 3272 of file detect-parse.c.
Returns the sm with the largest index (added latest) from this sig.
sm_last | Pointer to last sm |
Definition at line 779 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, DETECT_SM_LIST_MAX, SigMatch_::idx, Signature_::init_data, SignatureInitData_::smlists_tail, and SignatureInitDataBuffer_::tail.
Returns the sm with the largest index (added last) from the list passed to us as an id.
list_id | id of the list to be searched |
va_args | list of keyword types terminated by -1 |
sm_last | to last sm. |
Definition at line 728 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, DETECT_SM_LIST_MAX, Signature_::init_data, and SignatureInitDataBuffer_::tail.
Returns the sm with the largest index (added last) from the list passed to us as a pointer.
sm_list | pointer to the SigMatch we should look before |
va_args | list of keyword types terminated by -1 |
sm_last | to last sm. |
Definition at line 696 of file detect-parse.c.
Referenced by DetectGetLastSMFromMpmLists().
Returns the sm with the largest index (added latest) from the lists passed to us.
Pointer | to Last sm. |
Definition at line 634 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, DETECT_SM_LIST_NOTSET, SignatureInitDataBuffer_::id, Signature_::init_data, SignatureInitData_::list, and SCLogDebug.
SigMatch* DetectGetLastSMFromMpmLists | ( | const DetectEngineCtx * | de_ctx, |
const Signature * | s | ||
) |
get the last SigMatch from lists that support MPM.
Definition at line 597 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, de_ctx, DETECT_CONTENT, DETECT_SM_LIST_MAX, DetectEngineBufferTypeSupportsMpmGetById(), DetectGetLastSMByListPtr(), SignatureInitDataBuffer_::id, SigMatch_::idx, Signature_::init_data, SignatureInitData_::smlists_tail, and SignatureInitDataBuffer_::tail.
const char* DetectListToHumanString | ( | int | list | ) |
Definition at line 188 of file detect-parse.c.
Referenced by DumpPatterns().
const char* DetectListToString | ( | int | list | ) |
Definition at line 206 of file detect-parse.c.
void DetectParseDupSigHashFree | ( | DetectEngineCtx * | de_ctx | ) |
Frees the hash table that is used to cull duplicate sigs.
de_ctx | Pointer to the detection engine context that holds this table. |
Definition at line 3094 of file detect-parse.c.
References de_ctx, DetectEngineCtx_::dup_sig_hash_table, and HashListTableFree().
Referenced by DetectEngineCtxFree().
int DetectParseDupSigHashInit | ( | DetectEngineCtx * | de_ctx | ) |
Initializes the hash table that is used to cull duplicate sigs.
de_ctx | Pointer to the detection engine context. |
0 | On success. |
-1 | On failure. |
Definition at line 3077 of file detect-parse.c.
References de_ctx, DetectEngineCtx_::dup_sig_hash_table, and HashListTableInit().
void DetectParseFreeRegex | ( | DetectParseRegex * | r | ) |
Definition at line 3408 of file detect-parse.c.
References DetectParseRegex::context, and DetectParseRegex::regex.
void DetectParseFreeRegexes | ( | void | ) |
Definition at line 3418 of file detect-parse.c.
Referenced by GlobalsDestroy().
int DetectParsePcreExec | ( | DetectParseRegex * | parse_regex, |
pcre2_match_data ** | match, | ||
const char * | str, | ||
int | start_offset, | ||
int | options | ||
) |
Definition at line 3398 of file detect-parse.c.
void DetectParseRegexAddToFreeList | ( | DetectParseRegex * | detect_parse | ) |
add regex and/or study to at exit free list
Definition at line 3434 of file detect-parse.c.
References FatalError, DetectParseRegex::next, DetectParseRegex::regex, and SCCalloc.
Referenced by DetectSetupParseRegexesOpts().
void DetectParseRegisterTests | ( | void | ) |
this function registers unit tests for DetectParse
Definition at line 146 of file detect-parse.c.
References UtRegisterTest().
Referenced by SigParseRegisterTests().
void DetectRegisterAppLayerHookLists | ( | void | ) |
register app hooks as generic lists
Register each hook in each app protocol as: <alproto>:<hook name>:generic These lists can be used by lua scripts to hook into.
Definition at line 1133 of file detect-parse.c.
References ALPROTO_FAILED, AppLayerParserGetStateNameById(), AppLayerParserGetStateProgressCompletionStatus(), AppProtoToString(), DetectAppLayerInspectEngineRegister(), DetectEngineInspectGenericList(), g_alproto_max, name, SCLogDebug, SIG_FLAG_TOCLIENT, and SIG_FLAG_TOSERVER.
Referenced by SigTableSetup().
int DetectSetupDirection | ( | Signature * | s, |
const char * | str | ||
) |
Parse and setup a direction.
s | siganture |
str | argument to the keyword |
0 | on success, -1 on failure |
Definition at line 3539 of file detect-parse.c.
References Signature_::flags, Signature_::init_data, SignatureInitData_::init_flags, SCLogError, SIG_FLAG_INIT_FORCE_TOCLIENT, SIG_FLAG_INIT_FORCE_TOSERVER, SIG_FLAG_TOCLIENT, SIG_FLAG_TOSERVER, SIG_FLAG_TXBOTHDIR, and str.
void DetectSetupParseRegexes | ( | const char * | parse_str, |
DetectParseRegex * | detect_parse | ||
) |
Definition at line 3524 of file detect-parse.c.
References DetectSetupParseRegexesOpts(), and FatalError.
bool DetectSetupParseRegexesOpts | ( | const char * | parse_str, |
DetectParseRegex * | detect_parse, | ||
int | opts | ||
) |
Definition at line 3445 of file detect-parse.c.
References DetectParseRegex::context, DetectParseRegexAddToFreeList(), DetectParseRegex::regex, SC_MATCH_LIMIT_DEFAULT, SC_MATCH_LIMIT_RECURSION_DEFAULT, and SCLogError.
Referenced by DetectSetupParseRegexes().
DetectParseRegex* DetectSetupPCRE2 | ( | const char * | parse_str, |
int | opts | ||
) |
Definition at line 3474 of file detect-parse.c.
References DetectParseRegex::next, DetectParseRegex::regex, SCCalloc, SCFree, and SCLogError.
int DetectSignatureAddTransform | ( | Signature * | s, |
int | transform, | ||
void * | options | ||
) |
Definition at line 2105 of file detect-parse.c.
References DetectEngineTransforms::cnt, DETECT_TRANSFORMS_MAX, Signature_::init_data, SignatureInitData_::list, SignatureInitData_::list_set, TransformData_::options, SCLogDebug, SCLogError, SCReturnInt, Signature_::sig_str, TransformData_::transform, DetectEngineTransforms::transforms, and SignatureInitData_::transforms.
Definition at line 2218 of file detect-parse.c.
Referenced by DetectSignatureSetMultiAppProto().
this function is used to set multiple possible app-layer protos
into the current signature (for example ja4 for both tls and quic)
s | pointer to the Current Signature |
alprotos | an array terminated by ALPROTO_UNKNOWN |
0 | on Success |
-1 | on Failure |
Definition at line 2140 of file detect-parse.c.
References Signature_::alproto, ALPROTO_UNKNOWN, SignatureInitData_::alprotos, DetectSignatureSetAppProto(), Signature_::init_data, and SIG_ALPROTO_MAX.
int SC_Pcre2SubstringCopy | ( | pcre2_match_data * | match_data, |
uint32_t | number, | ||
PCRE2_UCHAR * | buffer, | ||
PCRE2_SIZE * | bufflen | ||
) |
Definition at line 3500 of file detect-parse.c.
int SC_Pcre2SubstringGet | ( | pcre2_match_data * | match_data, |
uint32_t | number, | ||
PCRE2_UCHAR ** | bufferptr, | ||
PCRE2_SIZE * | bufflen | ||
) |
Definition at line 3512 of file detect-parse.c.
Signature* SigAlloc | ( | void | ) |
Definition at line 1901 of file detect-parse.c.
References SignatureInitData_::buffers, SignatureInitData_::buffers_size, DETECT_SM_LIST_NOTSET, Signature_::init_data, SignatureInitData_::is_rule_state_dependant, SignatureInitData_::list, SignatureInitData_::mpm_sm_list, Signature_::prio, SignatureInitData_::rule_state_dependant_sids_idx, SCCalloc, SCFree, and unlikely.
void SigFree | ( | DetectEngineCtx * | de_ctx, |
Signature * | s | ||
) |
Definition at line 2021 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, SignatureInitData_::cidr_dst, SignatureInitData_::cidr_src, DetectEngineTransforms::cnt, de_ctx, DETECT_SM_LIST_MAX, SigTableElmt_::Free, SignatureInitDataBuffer_::head, Signature_::init_data, IPOnlyCIDRListFree(), SigMatch_::next, TransformData_::options, SCFree, sigmatch_table, SigMatchFree(), SignatureInitData_::smlists, TransformData_::transform, DetectEngineTransforms::transforms, and SignatureInitData_::transforms.
Referenced by LLVMFuzzerTestOneInput(), and SigCleanSignatures().
Signature* SigInit | ( | DetectEngineCtx * | de_ctx, |
const char * | sigstr | ||
) |
Parses a signature and adds it to the Detection Engine Context.
de_ctx | Pointer to the Detection Engine Context. |
sigstr | Pointer to a character string containing the signature to be parsed. |
Pointer | to the Signature instance on success; NULL on failure. |
Definition at line 3002 of file detect-parse.c.
Referenced by DetectEngineAppendSig(), LLVMFuzzerTestOneInput(), UTHPacketMatchSig(), and UTHPacketMatchSigMpm().
SigMatch* SigMatchAlloc | ( | void | ) |
Definition at line 350 of file detect-parse.c.
References SigMatch_::next, SigMatch_::prev, SCCalloc, and unlikely.
SigMatch* SigMatchAppendSMToList | ( | DetectEngineCtx * | de_ctx, |
Signature * | s, | ||
uint16_t | type, | ||
SigMatchCtx * | ctx, | ||
const int | list | ||
) |
Append a SigMatch to the list type.
s | Signature. |
new | The sig match to append. |
list | The list to append to. |
Definition at line 464 of file detect-parse.c.
Referenced by DetectContentSetup(), and DetectFlowvarPostMatchSetup().
void SigMatchFree | ( | DetectEngineCtx * | de_ctx, |
SigMatch * | sm | ||
) |
free a SigMatch
sm | SigMatch to free. |
free the ctx, for that we call the Free func
Definition at line 364 of file detect-parse.c.
References SigMatch_::ctx, de_ctx, SigTableElmt_::Free, SCFree, sigmatch_table, and SigMatch_::type.
Referenced by DetectIPProtoRemoveAllSMs(), and SigFree().
SigMatchData* SigMatchList2DataArray | ( | SigMatch * | head | ) |
convert SigMatch list to SigMatchData array
Definition at line 2354 of file detect-parse.c.
References len.
Referenced by DetectEngineAppInspectionEngine2Signature().
Definition at line 833 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, SignatureInitDataBuffer_::head, SignatureInitDataBuffer_::id, Signature_::init_data, and SigMatch_::next.
Definition at line 557 of file detect-parse.c.
References Signature_::init_data, SigMatch_::next, SigMatch_::prev, SignatureInitData_::smlists, and SignatureInitData_::smlists_tail.
Referenced by DetectIPProtoRemoveAllSMs().
bool SigMatchSilentErrorEnabled | ( | const DetectEngineCtx * | de_ctx, |
const enum DetectKeywordId | id | ||
) |
Definition at line 406 of file detect-parse.c.
References de_ctx, id, and DetectEngineCtx_::sm_types_silent_error.
bool SigMatchStrictEnabled | ( | const enum DetectKeywordId | id | ) |
Definition at line 412 of file detect-parse.c.
References DETECT_TBLSIZE, flags, SIGMATCH_STRICT_PARSING, and sigmatch_table.
int SignatureInitDataBufferCheckExpand | ( | Signature * | s | ) |
check if buffers array still has space left, expand if not
Definition at line 1881 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, SignatureInitData_::buffers_size, Signature_::init_data, and SCRealloc.
Referenced by DetectBufferGetActiveList().
void SigParseRegisterTests | ( | void | ) |
Definition at line 5313 of file detect-parse.c.
References DetectParseRegisterTests(), and UtRegisterTest().
Referenced by SigRegisterTests().
void SigTableApplyStrictCommandLineOption | ( | const char * | str | ) |
Definition at line 420 of file detect-parse.c.
References DETECT_TBLSIZE, FatalError, SigTableElmt_::flags, SCStrdup, SIGMATCH_STRICT_PARSING, sigmatch_table, and str.
DetectFileHandlerProtocol_t al_protocols[ALPROTO_WITHFILES_MAX] |
Definition at line 92 of file detect-parse.c.
Referenced by DetectFileRegisterFileProtocols(), and DetectFileRegisterProto().
DetectFileHandlerTableElmt filehandler_table[DETECT_TBLSIZE_STATIC] |
Definition at line 87 of file detect-parse.c.
int g_skip_prefilter |
Definition at line 1072 of file detect-engine-mpm.c.
bool sc_set_caps |
set caps or not
Definition at line 188 of file suricata.c.
SigTableElmt* sigmatch_table = NULL |
Definition at line 155 of file detect-parse.c.
Referenced by DetectAckRegister(), DetectAppLayerEventRegister(), DetectAppLayerMpmRegisterByParentId(), DetectAppLayerProtocolRegister(), DetectAppLayerStateRegister(), DetectAsn1Register(), DetectBase64DataRegister(), DetectBase64DecodeRegister(), DetectBsizeRegister(), DetectBypassRegister(), DetectByteExtractRegister(), DetectBytejumpRegister(), DetectBytemathRegister(), DetectBytetestRegister(), DetectClasstypeRegister(), DetectConfigRegister(), DetectContentRegister(), DetectCsumRegister(), DetectDatarepRegister(), DetectDatasetRegister(), DetectDceIfaceRegister(), DetectDceOpnumRegister(), DetectDceStubDataRegister(), DetectDepthRegister(), DetectDetectionFilterRegister(), DetectDistanceRegister(), DetectDnsOpcodeRegister(), DetectDnsQueryRegister(), DetectDnsRcodeRegister(), DetectDnsResponseRegister(), DetectDnsRrtypeRegister(), DetectDsizeRegister(), DetectEngineAppInspectionEngineSignatureFree(), DetectEngineBufferTypeValidateTransform(), DetectEngineContentModifierBufferSetup(), DetectEngineEventRegister(), DetectEngineInspectGenericList(), DetectEntropyRegister(), DetectFastPatternRegister(), DetectFiledataRegister(), DetectFilemagicRegister(), DetectFileMd5Register(), DetectFilenameRegister(), DetectFileSha1Register(), DetectFileSha256Register(), DetectFilesizeRegister(), DetectFilestoreRegister(), DetectFlagsRegister(), DetectFlowAgeRegister(), DetectFlowbitsRegister(), DetectFlowBytesRegister(), DetectFlowBytesToClientRegister(), DetectFlowBytesToServerRegister(), DetectFlowintRegister(), DetectFlowPktsRegister(), DetectFlowPktsToClientRegister(), DetectFlowPktsToServerRegister(), DetectFlowRegister(), DetectFlowvarRegister(), DetectFragBitsRegister(), DetectFragOffsetRegister(), DetectFrameRegister(), DetectFtpbounceRegister(), DetectFtpCommandDataRegister(), DetectFtpCommandRegister(), DetectFtpdataRegister(), DetectFtpReplyRegister(), DetectGeoipRegister(), DetectGidRegister(), DetectHelperKeywordRegister(), DetectHelperTransformRegister(), DetectHostbitsRegister(), DetectHttp2Register(), DetectHttpClientBodyRegister(), DetectHttpCookieRegister(), DetectHttpHeaderNamesRegister(), DetectHttpHeaderRegister(), DetectHttpHHRegister(), DetectHttpMethodRegister(), DetectHttpProtocolRegister(), DetectHttpRawHeaderRegister(), DetectHttpRequestHeaderRegister(), DetectHttpRequestLineRegister(), DetectHttpResponseHeaderRegister(), DetectHttpResponseLineRegister(), DetectHttpServerBodyRegister(), DetectHttpStartRegister(), DetectHttpStatCodeRegister(), DetectHttpStatMsgRegister(), DetectHttpUARegister(), DetectHttpUriRegister(), DetectIcmpIdRegister(), DetectIcmpSeqRegister(), DetectIcmpv4HdrRegister(), DetectICMPv6hdrRegister(), DetectICMPv6mtuRegister(), DetectICodeRegister(), DetectIdRegister(), DetectIkeChosenSaRegister(), DetectIkeExchTypeRegister(), DetectIkeKeyExchangePayloadLengthRegister(), DetectIkeKeyExchangeRegister(), DetectIkeNoncePayloadLengthRegister(), DetectIkeNonceRegister(), DetectIkeSpiRegister(), DetectIkeVendorRegister(), DetectIPAddrBufferRegister(), DetectIpOptsRegister(), DetectIPProtoRegister(), DetectIPRepRegister(), DetectIpv4hdrRegister(), DetectIpv6hdrRegister(), DetectIsdataatRegister(), DetectITypeRegister(), DetectJa4HashRegister(), DetectKrb5CNameRegister(), DetectKrb5ErrCodeRegister(), DetectKrb5MsgTypeRegister(), DetectKrb5SNameRegister(), DetectKrb5TicketEncryptionRegister(), DetectL3ProtoRegister(), DetectLuaRegister(), DetectMarkRegister(), DetectMetadataRegister(), DetectModbusRegister(), DetectMsgRegister(), DetectNfsProcedureRegister(), DetectNfsVersionRegister(), DetectNoalertRegister(), DetectNocaseRegister(), DetectOffsetRegister(), DetectPcreRegister(), DetectPktDataRegister(), DetectPktvarRegister(), DetectPrefilterRegister(), DetectPriorityRegister(), DetectQuicCyuHashRegister(), DetectQuicCyuStringRegister(), DetectQuicSniRegister(), DetectQuicUaRegister(), DetectQuicVersionRegister(), DetectRawbytesRegister(), DetectReferenceRegister(), DetectReplaceRegister(), DetectRequiresRegister(), DetectRevRegister(), DetectRpcRegister(), DetectSameipRegister(), DetectSeqRegister(), DetectSidRegister(), DetectSipMethodRegister(), DetectSipUriRegister(), DetectSmbNamedPipeRegister(), DetectSmbNtlmsspDomainRegister(), DetectSmbNtlmsspUserRegister(), DetectSmbShareRegister(), DetectSmbVersionRegister(), DetectSshHasshRegister(), DetectSshHasshServerRegister(), DetectSshHasshServerStringRegister(), DetectSshHasshStringRegister(), DetectSshProtocolRegister(), DetectSshSoftwareRegister(), DetectSshSoftwareVersionRegister(), DetectSshVersionRegister(), DetectSslStateRegister(), DetectSslVersionRegister(), DetectStreamSizeRegister(), DetectTagRegister(), DetectTargetRegister(), DetectTcphdrRegister(), DetectTcpmssRegister(), DetectTemplate2Register(), DetectTemplateRegister(), DetectThresholdRegister(), DetectTlsAlpnRegister(), DetectTlsCertChainLenRegister(), DetectTlsCertsRegister(), DetectTlsFingerprintRegister(), DetectTlsIssuerRegister(), DetectTlsJa3HashRegister(), DetectTlsJa3SHashRegister(), DetectTlsJa3SStringRegister(), DetectTlsJa3StringRegister(), DetectTlsRandomBytesRegister(), DetectTlsRandomRegister(), DetectTlsRandomTimeRegister(), DetectTlsRegister(), DetectTlsSerialRegister(), DetectTlsSniRegister(), DetectTlsSubjectAltNameRegister(), DetectTlsSubjectRegister(), DetectTlsValidityRegister(), DetectTlsVersionRegister(), DetectTosRegister(), DetectTransformFromBase64DecodeRegister(), DetectTransformPcrexformRegister(), DetectTtlRegister(), DetectUdphdrRegister(), DetectUricontentRegister(), DetectUrilenRegister(), DetectVlanIdRegister(), DetectVlanLayersRegister(), DetectWindowRegister(), DetectWithinRegister(), DetectXbitsRegister(), EngineAnalysisFP(), EngineAnalysisRules2(), PrefilterSetupRuleGroup(), SCDetectHelperNewKeywordId(), SigFree(), SigMatchFree(), SigMatchStrictEnabled(), SigTableApplyStrictCommandLineOption(), SigTableCleanup(), SigTableHasKeyword(), SigTableInit(), SigTableList(), and SigTableRegisterTests().