suricata
|
main detection engine ctx More...
#include <detect.h>
HashListTable* DetectEngineCtx_::address_table |
table for storing the string representation with the parsers result
Definition at line 1072 of file detect.h.
Referenced by DetectAddressMapFree(), and DetectAddressMapInit().
DetectEngineAppInspectionEngine* DetectEngineCtx_::app_inspect_engines |
Definition at line 1087 of file detect.h.
Referenced by DetectBufferToClient(), and DetectEngineAppInspectionEngine2Signature().
DetectBufferMpmRegistry* DetectEngineCtx_::app_mpms_list |
Definition at line 1084 of file detect.h.
Referenced by DetectAppLayerMpmRegisterByParentId(), DetectMpmInitializeAppMpms(), DetectMpmPrepareAppMpms(), and MpmStoreReportStats().
uint32_t DetectEngineCtx_::app_mpms_list_cnt |
Definition at line 1083 of file detect.h.
Referenced by DetectAppLayerMpmRegisterByParentId(), and DetectMpmInitializeAppMpms().
HashListTable* DetectEngineCtx_::buffer_type_hash_id |
Definition at line 1080 of file detect.h.
Referenced by DetectEngineBufferTypeGetById(), and DetectEngineBufferTypeGetByIdTransforms().
HashListTable* DetectEngineCtx_::buffer_type_hash_name |
Definition at line 1079 of file detect.h.
Referenced by DetectEngineBufferTypeGetByIdTransforms().
uint32_t DetectEngineCtx_::buffer_type_id |
Definition at line 1081 of file detect.h.
Referenced by DetectEngineBufferTypeGetByIdTransforms(), DumpPatterns(), MpmStoreReportStats(), SCProfilingKeywordDestroyCtx(), SCProfilingKeywordInitCounters(), SCProfilingKeywordThreadCleanup(), and SCProfilingKeywordThreadSetup().
HashTable* DetectEngineCtx_::class_conf_ht |
Definition at line 1117 of file detect.h.
Referenced by SCClassConfAddClasstype(), SCClassConfDeInitContext(), and SCClassConfGetClasstype().
pcre2_code* DetectEngineCtx_::class_conf_regex |
Definition at line 1118 of file detect.h.
Referenced by SCClassConfAddClasstype(), SCClassConfDeinit(), and SCClassSCConfInit().
pcre2_match_data* DetectEngineCtx_::class_conf_regex_match |
Definition at line 1119 of file detect.h.
Referenced by SCClassConfAddClasstype(), SCClassConfDeinit(), and SCClassSCConfInit().
char DetectEngineCtx_::config_prefix[64] |
Definition at line 1051 of file detect.h.
Referenced by DetectEngineCtxFree(), SCRuleVarsGetConfVar(), SCThresholdConfParseFile(), SetupEngineAnalysis(), SigLoadSignatures(), and SigPrepareStage1().
struct SigGroupHead_* DetectEngineCtx_::decoder_event_sgh |
sgh for signatures that match against invalid packets. In those cases we can't lookup by proto, address, port as we don't have these
Definition at line 1017 of file detect.h.
Referenced by SigAddressCleanupStage1(), SigMatchSignaturesGetSgh(), and SigPrepareStage4().
HashListTable* DetectEngineCtx_::dport_hash_table |
Definition at line 1066 of file detect.h.
Referenced by DetectPortHashAdd(), DetectPortHashFree(), DetectPortHashInit(), and DetectPortHashLookup().
HashListTable* DetectEngineCtx_::dup_sig_hash_table |
Definition at line 968 of file detect.h.
Referenced by DetectParseDupSigHashFree(), and DetectParseDupSigHashInit().
struct EngineAnalysisCtx_* DetectEngineCtx_::ea |
Definition at line 1129 of file detect.h.
Referenced by CleanupEngineAnalysis(), DumpPatterns(), EngineAnalysisFP(), EngineAnalysisRules(), EngineAnalysisRules2(), EngineAnalysisRulesFailure(), and SetupEngineAnalysis().
bool DetectEngineCtx_::failure_fatal |
Definition at line 933 of file detect.h.
Referenced by SigLoadSignatures(), and SRepInit().
DetectFileDataCfg* DetectEngineCtx_::filedata_config |
Definition at line 1039 of file detect.h.
Referenced by DetectEngineCtxFree().
const char* DetectEngineCtx_::firewall_rule_file_exclusive |
Definition at line 1144 of file detect.h.
Referenced by SigLoadSignatures().
uint8_t DetectEngineCtx_::flags |
only DE_QUIET
Definition at line 934 of file detect.h.
Referenced by LLVMFuzzerTestOneInput(), MpmStoreReportStats(), SignatureIsIPOnly(), SigPrepareStage1(), UTHGenericTest(), UTHPacketMatchSig(), UTHPacketMatchSigMpm(), and UTHParseSignature().
DetectEngineLookupFlow DetectEngineCtx_::flow_gh[FLOW_STATES] |
Definition at line 959 of file detect.h.
Referenced by SigAddressCleanupStage1(), SigMatchSignaturesGetSgh(), and SigPrepareStage2().
SCFPSupportSMList* DetectEngineCtx_::fp_support_smlist_list |
Definition at line 1106 of file detect.h.
Referenced by DetectEngineFreeFastPatternList(), DetectEngineInitializeFastPatternList(), DetectEngineRegisterFastPatternForId(), FastPatternSupportEnabledForSigMatchList(), and RetrieveFPForSig().
DetectEngineFrameInspectionEngine* DetectEngineCtx_::frame_inspect_engines |
Definition at line 1091 of file detect.h.
Referenced by DetectEngineAppInspectionEngine2Signature(), and DetectEngineFrameInspectEngineRegister().
DetectBufferMpmRegistry* DetectEngineCtx_::frame_mpms_list |
Definition at line 1092 of file detect.h.
Referenced by DetectEngineFrameMpmRegister(), DetectFrameMpmRegisterByParentId(), DetectMpmInitializeFrameMpms(), DetectMpmPrepareFrameMpms(), and MpmStoreReportStats().
uint32_t DetectEngineCtx_::frame_mpms_list_cnt |
Definition at line 1093 of file detect.h.
Referenced by DetectEngineFrameMpmRegister(), DetectFrameMpmRegisterByParentId(), and DetectMpmInitializeFrameMpms().
int DetectEngineCtx_::inspection_recursion_limit |
Definition at line 973 of file detect.h.
Referenced by DetectEngineContentInspection(), and DetectEngineContentInspectionBuffer().
DetectEngineIPOnlyCtx DetectEngineCtx_::io_ctx |
Definition at line 970 of file detect.h.
Referenced by IPOnlyPrepare(), SigAddressCleanupStage1(), and SigPrepareStage2().
HashListTable* DetectEngineCtx_::keyword_hash |
hash list of keywords that need thread local ctxs
Definition at line 1037 of file detect.h.
Referenced by DetectRegisterThreadCtxFuncs(), and DetectUnregisterThreadCtxFuncs().
int DetectEngineCtx_::keyword_id |
Definition at line 1035 of file detect.h.
Referenced by DetectRegisterThreadCtxFuncs().
struct timeval DetectEngineCtx_::last_reload |
time of last ruleset reload
Definition at line 1099 of file detect.h.
Referenced by PostConfLoadedDetectSetup(), and SigLoadSignatures().
int DetectEngineCtx_::loader_id |
uint32_t DetectEngineCtx_::max_fb_id |
Definition at line 994 of file detect.h.
Referenced by DetectFlowbitsAnalyze().
HashTable* DetectEngineCtx_::metadata_table |
table to store metadata keys and values
Definition at line 1075 of file detect.h.
Referenced by DetectMetadataHashFree(), and DetectMetadataHashInit().
MpmConfig* DetectEngineCtx_::mpm_cfg |
Definition at line 936 of file detect.h.
Referenced by DetectEngineCtxFree(), DetectMpmPrepareAppMpms(), DetectMpmPrepareBuiltinMpms(), DetectMpmPrepareFrameMpms(), DetectMpmPreparePktMpms(), and SigLoadSignatures().
MpmCtxFactoryContainer* DetectEngineCtx_::mpm_ctx_factory_container |
Definition at line 996 of file detect.h.
Referenced by MpmFactoryDeRegisterAllMpmCtxProfiles(), MpmFactoryGetMpmCtxForProfile(), MpmFactoryIsMpmCtxAvailable(), and MpmFactoryRegisterMpmCtxProfile().
HashListTable* DetectEngineCtx_::mpm_hash_table |
Definition at line 964 of file detect.h.
Referenced by MpmStoreFree(), MpmStoreInit(), and MpmStoreReportStats().
uint8_t DetectEngineCtx_::mpm_matcher |
mpm matcher this ctx uses
Definition at line 935 of file detect.h.
Referenced by DetectEngineCtxFree(), DetectMpmPrepareAppMpms(), DetectMpmPrepareBuiltinMpms(), DetectMpmPrepareFrameMpms(), DetectMpmPreparePktMpms(), SigLoadSignatures(), and UTHPacketMatchSigMpm().
struct DetectEngineCtx_* DetectEngineCtx_::next |
list in master: either active or freelist
Definition at line 1058 of file detect.h.
Referenced by DetectEngineClearMaster(), DetectEngineGetByTenantId(), DetectEngineGetCurrent(), DetectEngineMTApply(), and DetectEnginePruneFreeList().
HashTable* DetectEngineCtx_::non_pf_engine_names |
Definition at line 1142 of file detect.h.
Referenced by DetectEngineCtxFree().
HashListTable* DetectEngineCtx_::pattern_hash_table |
Definition at line 965 of file detect.h.
Referenced by DumpPatterns(), and EngineAnalysisAddAllRulePatterns().
DetectEnginePktInspectionEngine* DetectEngineCtx_::pkt_inspect_engines |
Definition at line 1088 of file detect.h.
Referenced by DetectEngineAppInspectionEngine2Signature().
DetectBufferMpmRegistry* DetectEngineCtx_::pkt_mpms_list |
Definition at line 1089 of file detect.h.
Referenced by DetectMpmInitializePktMpms(), DetectMpmPreparePktMpms(), DetectPktMpmRegisterByParentId(), and MpmStoreReportStats().
uint32_t DetectEngineCtx_::pkt_mpms_list_cnt |
Definition at line 1090 of file detect.h.
Referenced by DetectMpmInitializePktMpms(), and DetectPktMpmRegisterByParentId().
struct SigGroupHead_* DetectEngineCtx_::pre_flow_sgh |
pre_flow hook rule groups. Before flow we don't know a direction yet.
Definition at line 1160 of file detect.h.
Referenced by DetectPreFlow(), and SigAddressCleanupStage1().
struct SigGroupHead_* DetectEngineCtx_::pre_stream_sgh[2] |
TCP pre_stream hook rule groups. One per direction.
Definition at line 1155 of file detect.h.
Referenced by DetectPreStream(), and SigAddressCleanupStage1().
HashListTable* DetectEngineCtx_::prefilter_hash_table |
Definition at line 1096 of file detect.h.
Referenced by PrefilterDeinit(), PrefilterInit(), and SCProfilingPrefilterInitCounters().
uint32_t DetectEngineCtx_::prefilter_id |
Definition at line 1095 of file detect.h.
Referenced by SCProfilingPrefilterInitCounters(), SCProfilingPrefilterThreadSetup(), and SCProfilingPrefilterUpdateCounter().
enum DetectEnginePrefilterSetting DetectEngineCtx_::prefilter_setting |
are we using just mpm or also other prefilters
Definition at line 1064 of file detect.h.
Referenced by PrefilterSetupRuleGroup().
DetectPacketHookFunc DetectEngineCtx_::PreFlowHook |
DetectPacketHookFunc DetectEngineCtx_::PreStreamHook |
struct SCProfileKeywordDetectCtx_* DetectEngineCtx_::profile_keyword_ctx |
Definition at line 1045 of file detect.h.
Referenced by DetectEngineCtxFree(), SCProfilingKeywordDestroyCtx(), SCProfilingKeywordInitCounters(), and SCProfilingKeywordThreadCleanup().
struct SCProfileKeywordDetectCtx_** DetectEngineCtx_::profile_keyword_ctx_per_list |
Definition at line 1047 of file detect.h.
Referenced by SCProfilingKeywordDestroyCtx(), and SCProfilingKeywordInitCounters().
uint32_t DetectEngineCtx_::profile_match_logging_threshold |
Definition at line 1049 of file detect.h.
Referenced by SigGroupBuild().
struct SCProfilePrefilterDetectCtx_* DetectEngineCtx_::profile_prefilter_ctx |
Definition at line 1046 of file detect.h.
Referenced by SCProfilingPrefilterDestroyCtx(), SCProfilingPrefilterInitCounters(), and SCProfilingPrefilterThreadCleanup().
struct SCProfileSghDetectCtx_* DetectEngineCtx_::profile_sgh_ctx |
Definition at line 1048 of file detect.h.
Referenced by DetectEngineCtxFree(), SCProfilingSghDestroyCtx(), SCProfilingSghInitCounters(), and SCProfilingSghThreadCleanup().
void* DetectEngineCtx_::rate_filter_callback_arg |
Definition at line 1150 of file detect.h.
Referenced by DetectEngineReload(), and SCDetectEngineRegisterRateFilterCallback().
SCDetectRateFilterFunc DetectEngineCtx_::RateFilterCallback |
Definition at line 1147 of file detect.h.
Referenced by DetectEngineReload(), and SCDetectEngineRegisterRateFilterCallback().
uint32_t DetectEngineCtx_::ref_cnt |
how many de_ctx' are referencing this
Definition at line 1056 of file detect.h.
Referenced by DetectEngineClearMaster(), DetectEngineGetByTenantId(), DetectEngineGetCurrent(), DetectEnginePruneFreeList(), DetectEngineReference(), and LLVMFuzzerTestOneInput().
HashTable* DetectEngineCtx_::reference_conf_ht |
Definition at line 1124 of file detect.h.
Referenced by SCRConfAddReference(), SCRConfDeInitContext(), and SCRConfGetReference().
pcre2_code* DetectEngineCtx_::reference_conf_regex |
Definition at line 1125 of file detect.h.
Referenced by SCRConfAddReference(), SCReferenceConfDeinit(), and SCReferenceSCConfInit().
pcre2_match_data* DetectEngineCtx_::reference_conf_regex_match |
Definition at line 1126 of file detect.h.
Referenced by SCRConfAddReference(), SCReferenceConfDeinit(), and SCReferenceSCConfInit().
SCDetectRequiresStatus* DetectEngineCtx_::requirements |
Definition at line 1135 of file detect.h.
Referenced by DetectEngineCtxFree(), and SigLoadSignatures().
const char* DetectEngineCtx_::rule_file |
Definition at line 1024 of file detect.h.
Referenced by LLVMFuzzerTestOneInput().
int DetectEngineCtx_::rule_line |
struct SCSigOrderFunc_* DetectEngineCtx_::sc_sig_order_funcs |
Definition at line 956 of file detect.h.
Referenced by SCSigOrderSignatures(), and SCSigSignatureOrderingModuleCleanup().
struct SigGroupHead_** DetectEngineCtx_::sgh_array |
Definition at line 1000 of file detect.h.
Referenced by SigAddressCleanupStage1(), SigGroupHeadStore(), and SigPrepareStage4().
uint32_t DetectEngineCtx_::sgh_array_cnt |
Definition at line 1001 of file detect.h.
Referenced by SCProfilingSghInitCounters(), SCProfilingSghThreadSetup(), SCProfilingSghUpdateCounter(), SigAddressCleanupStage1(), SigGroupHeadStore(), and SigPrepareStage4().
uint32_t DetectEngineCtx_::sgh_array_size |
Definition at line 1002 of file detect.h.
Referenced by SigAddressCleanupStage1(), and SigGroupHeadStore().
HashListTable* DetectEngineCtx_::sgh_hash_table |
Definition at line 962 of file detect.h.
Referenced by DetectPortHashFree(), SigGroupHeadHashAdd(), SigGroupHeadHashFree(), SigGroupHeadHashInit(), and SigGroupHeadHashLookup().
int32_t DetectEngineCtx_::sgh_mpm_context_proto_other_packet |
Definition at line 1006 of file detect.h.
Referenced by DetectMpmInitializeBuiltinMpms(), DetectMpmPrepareBuiltinMpms(), and MpmStorePrepareBuffer().
int32_t DetectEngineCtx_::sgh_mpm_context_proto_tcp_packet |
Definition at line 1004 of file detect.h.
Referenced by DetectMpmInitializeBuiltinMpms(), DetectMpmPrepareBuiltinMpms(), and MpmStorePrepareBuffer().
int32_t DetectEngineCtx_::sgh_mpm_context_proto_udp_packet |
Definition at line 1005 of file detect.h.
Referenced by DetectMpmInitializeBuiltinMpms(), DetectMpmPrepareBuiltinMpms(), and MpmStorePrepareBuffer().
int32_t DetectEngineCtx_::sgh_mpm_context_stream |
Definition at line 1007 of file detect.h.
Referenced by DetectMpmInitializeBuiltinMpms(), DetectMpmPrepareBuiltinMpms(), and MpmStorePrepareBuffer().
uint8_t DetectEngineCtx_::sgh_mpm_ctx_cnf |
Definition at line 1033 of file detect.h.
Referenced by DetectEngineFrameMpmRegister(), DetectMpmInitializeAppMpms(), DetectMpmInitializeFrameMpms(), and DetectMpmInitializePktMpms().
Signature** DetectEngineCtx_::sig_array |
Definition at line 950 of file detect.h.
Referenced by DetectEngineCtxFree(), DetectFlowbitsAnalyze(), IPOnlyMatchPacket(), RulesDumpTxMatchArray(), SigGroupHeadBuildMatchArray(), SigGroupHeadContainsSigId(), and SigPrepareStage1().
uint32_t DetectEngineCtx_::sig_array_len |
Definition at line 951 of file detect.h.
Referenced by DetectFlowbitsAnalyze(), IPOnlyInit(), and SigPrepareStage1().
uint32_t DetectEngineCtx_::sig_cnt |
Definition at line 942 of file detect.h.
Referenced by SigPrepareStage1().
Signature* DetectEngineCtx_::sig_list |
Definition at line 941 of file detect.h.
Referenced by DetectEngineAppendSig(), DetectFirewallRuleAppendNew(), DetectSetFastPatternAndItsId(), FirewallAnalyzer(), SCSigOrderSignatures(), SigCleanSignatures(), SigFindSignatureBySidGid(), SigGroupBuild(), SigPrepareStage1(), SigPrepareStage2(), UTHPacketMatchSig(), and UTHPacketMatchSigMpm().
SigFileLoaderStat DetectEngineCtx_::sig_stat |
bool DetectEngineCtx_::sigerror_requires |
uint32_t DetectEngineCtx_::signum |
Definition at line 953 of file detect.h.
Referenced by DetectEngineResetMaxSigId(), and SigGroupBuild().
bool* DetectEngineCtx_::sm_types_prefilter |
per keyword flag indicating if a prefilter has been set for it. If true, the setup function will have to run.
Definition at line 1111 of file detect.h.
Referenced by DetectEngineCtxFree(), and PrefilterSetupRuleGroup().
bool* DetectEngineCtx_::sm_types_silent_error |
Definition at line 1112 of file detect.h.
Referenced by DetectEngineCtxFree(), and SigMatchSilentErrorEnabled().
SpmGlobalThreadCtx* DetectEngineCtx_::spm_global_thread_ctx |
Definition at line 986 of file detect.h.
Referenced by DetectContentConvertToNocase(), DetectContentSetup(), and DetectEngineCtxFree().
uint8_t DetectEngineCtx_::spm_matcher |
uint32_t DetectEngineCtx_::srep_version |
Definition at line 945 of file detect.h.
Referenced by SRepInit().
SRepCIDRTree* DetectEngineCtx_::srepCIDR_ctx |
Definition at line 948 of file detect.h.
Referenced by SRepDestroy(), and SRepInit().
DetectPort* DetectEngineCtx_::tcp_priorityports |
Definition at line 1068 of file detect.h.
Referenced by DetectEngineCtxFree().
uint32_t DetectEngineCtx_::tenant_id |
Definition at line 939 of file detect.h.
Referenced by DetectEngineGetByTenantId(), DetectEngineMTApply(), DetectEngineReload(), DetectEngineThreadCtxInitForReload(), SCThresholdConfParseFile(), SigLoadSignatures(), and SigPrepareStage1().
char* DetectEngineCtx_::tenant_path |
Definition at line 1132 of file detect.h.
Referenced by DetectEngineCtxFree().
enum DetectEngineType DetectEngineCtx_::type |
Definition at line 1053 of file detect.h.
Referenced by DetectEngineGetByTenantId(), DetectEngineGetCurrent(), DetectEngineMTApply(), DetectEngineReload(), DetectEngineThreadCtxInit(), DetectEngineThreadCtxInitForReload(), and PostConfLoadedDetectSetup().
DetectPort* DetectEngineCtx_::udp_priorityports |
Definition at line 1069 of file detect.h.
Referenced by DetectEngineCtxFree().
uint32_t DetectEngineCtx_::version |