/dports/security/suricata/suricata-6.0.4/src/ |
H A D | detect-mqtt-unsubscribe-topic.c | 93 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, in DetectEngineInspectMQTTUnsubscribeTopic() argument 116 const int match = DetectEngineContentInspection(de_ctx, det_ctx, s, engine->smd, in DetectEngineInspectMQTTUnsubscribeTopic() 178 static int PrefilterMpmMQTTUnsubscribeTopicRegister(DetectEngineCtx *de_ctx, in PrefilterMpmMQTTUnsubscribeTopicRegister() argument 189 return PrefilterAppendTxEngine(de_ctx, sgh, PrefilterTxMQTTUnsubscribeTopic, in PrefilterMpmMQTTUnsubscribeTopicRegister() 242 static int DetectMQTTUnsubscribeTopicSetup(DetectEngineCtx *de_ctx, Signature *s, const char *str) in DetectMQTTUnsubscribeTopicSetup() argument
|
H A D | detect-rfb-secresult.c | 51 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, 84 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, in DetectEngineInspectRfbSecresultGeneric() argument 89 return DetectEngineInspectGenericList(tv, de_ctx, det_ctx, s, smd, in DetectEngineInspectRfbSecresultGeneric() 224 static int DetectRfbSecresultSetup (DetectEngineCtx *de_ctx, Signature *s, const char *rawstr) in DetectRfbSecresultSetup() argument 259 void DetectRfbSecresultFree(DetectEngineCtx *de_ctx, void *de_ptr) in DetectRfbSecresultFree() argument
|
H A D | detect-id.c | 60 static int PrefilterSetupId(DetectEngineCtx *de_ctx, SigGroupHead *sgh); 185 int DetectIdSetup (DetectEngineCtx *de_ctx, Signature *s, const char *idstr) in DetectIdSetup() argument 198 DetectIdFree(de_ctx, id_d); in DetectIdSetup() 215 void DetectIdFree(DetectEngineCtx *de_ctx, void *ptr) in DetectIdFree() argument 258 static int PrefilterSetupId(DetectEngineCtx *de_ctx, SigGroupHead *sgh) in PrefilterSetupId() argument 260 return PrefilterSetupPacketHeader(de_ctx, sgh, DETECT_ID, in PrefilterSetupId()
|
H A D | detect-ssl-state.c | 70 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, 108 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, in InspectTlsGeneric() argument 113 return DetectEngineInspectGenericList(tv, de_ctx, det_ctx, s, smd, in InspectTlsGeneric() 300 static int DetectSslStateSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg) in DetectSslStateSetup() argument 324 DetectSslStateFree(de_ctx, ssd); in DetectSslStateSetup() 335 static void DetectSslStateFree(DetectEngineCtx *de_ctx, void *ptr) in DetectSslStateFree() argument
|
H A D | detect-http-host.c | 76 static int DetectHttpHostRawSetupSticky(DetectEngineCtx *de_ctx, Signature *s, const char *str); 178 static int DetectHttpHHSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg) in DetectHttpHHSetup() argument 180 return DetectEngineContentModifierBufferSetup(de_ctx, s, arg, in DetectHttpHHSetup() 231 static int DetectHttpHostSetup(DetectEngineCtx *de_ctx, Signature *s, const char *str) in DetectHttpHostSetup() argument 316 int DetectHttpHRHSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg) in DetectHttpHRHSetup() argument 318 return DetectEngineContentModifierBufferSetup(de_ctx, s, arg, in DetectHttpHRHSetup() 333 static int DetectHttpHostRawSetupSticky(DetectEngineCtx *de_ctx, Signature *s, const char *str) in DetectHttpHostRawSetupSticky() argument
|
H A D | detect-engine-alert.c | 69 static int PacketAlertHandle(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, in PacketAlertHandle() argument 93 ret = PacketAlertThreshold(de_ctx, det_ctx, td, p, s, pa); in PacketAlertHandle() 116 ret = PacketAlertThreshold(de_ctx, det_ctx, td, p, s, pa); in PacketAlertHandle() 284 void PacketAlertFinalize(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, Packet *p) in PacketAlertFinalize() argument 290 const Signature *s = de_ctx->sig_array[p->alerts.alerts[i].num]; in PacketAlertFinalize() 293 int res = PacketAlertHandle(de_ctx, det_ctx, s, p, &p->alerts.alerts[i]); in PacketAlertFinalize() 351 TagHandlePacket(de_ctx, det_ctx, p); in PacketAlertFinalize()
|
H A D | output-json-stats.c | 77 static json_t *EngineStats2Json(const DetectEngineCtx *de_ctx, in EngineStats2Json() argument 90 last_reload = de_ctx->last_reload; in EngineStats2Json() 95 sig_stat = &de_ctx->sig_stat; in EngineStats2Json() 110 DetectEngineCtx *de_ctx = DetectEngineGetCurrent(); in OutputEngineStats2Json() local 111 if (de_ctx == NULL) { in OutputEngineStats2Json() 115 DetectEngineCtx *list = de_ctx; in OutputEngineStats2Json() 141 DetectEngineDeReference(&de_ctx); in OutputEngineStats2Json() 154 DetectEngineDeReference(&de_ctx); in OutputEngineStats2Json()
|
H A D | detect-mqtt-connect-flags.c | 46 void DetectMQTTConnectFlagsFree(DetectEngineCtx *de_ctx, void *); 49 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, 87 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, in DetectEngineInspectMQTTConnectFlagsGeneric() argument 92 return DetectEngineInspectGenericList(tv, de_ctx, det_ctx, s, smd, in DetectEngineInspectMQTTConnectFlagsGeneric() 228 static int DetectMQTTConnectFlagsSetup(DetectEngineCtx *de_ctx, Signature *s, const char *rawstr) in DetectMQTTConnectFlagsSetup() argument 265 void DetectMQTTConnectFlagsFree(DetectEngineCtx *de_ctx, void *de_ptr) in DetectMQTTConnectFlagsFree() argument
|
H A D | detect-http-stat-code.c | 67 static int DetectHttpStatCodeSetupSticky(DetectEngineCtx *de_ctx, Signature *s, const char *str); 133 static int DetectHttpStatCodeSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg) in DetectHttpStatCodeSetup() argument 135 return DetectEngineContentModifierBufferSetup(de_ctx, s, arg, in DetectHttpStatCodeSetup() 150 static int DetectHttpStatCodeSetupSticky(DetectEngineCtx *de_ctx, Signature *s, const char *str) in DetectHttpStatCodeSetupSticky() argument
|
H A D | detect-ssh-hassh-server.c | 98 static int DetectSshHasshServerSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg) in DetectSshHasshServerSetup() argument 111 if (!SigMatchSilentErrorEnabled(de_ctx, DETECT_AL_SSH_HASSH_SERVER)) { in DetectSshHasshServerSetup() 163 static void DetectSshHasshServerHashSetupCallback(const DetectEngineCtx *de_ctx, in DetectSshHasshServerHashSetupCallback() argument 184 de_ctx->spm_global_thread_ctx); in DetectSshHasshServerHashSetupCallback()
|
H A D | detect-ssh-hassh.c | 98 static int DetectSshHasshSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg) in DetectSshHasshSetup() argument 111 if (!SigMatchSilentErrorEnabled(de_ctx, DETECT_AL_SSH_HASSH)) { in DetectSshHasshSetup() 163 static void DetectSshHasshHashSetupCallback(const DetectEngineCtx *de_ctx, in DetectSshHasshHashSetupCallback() argument 184 de_ctx->spm_global_thread_ctx); in DetectSshHasshHashSetupCallback()
|
H A D | detect-ttl.c | 53 static int PrefilterSetupTtl(DetectEngineCtx *de_ctx, SigGroupHead *sgh); 277 static int DetectTtlSetup (DetectEngineCtx *de_ctx, Signature *s, const char *ttlstr) in DetectTtlSetup() argument 285 DetectTtlFree(de_ctx, ttld); in DetectTtlSetup() 302 void DetectTtlFree(DetectEngineCtx *de_ctx, void *ptr) in DetectTtlFree() argument 358 static int PrefilterSetupTtl(DetectEngineCtx *de_ctx, SigGroupHead *sgh) in PrefilterSetupTtl() argument 360 return PrefilterSetupPacketHeader(de_ctx, sgh, DETECT_TTL, in PrefilterSetupTtl()
|
H A D | detect-tls-cert-serial.c | 65 static void DetectTlsSerialSetupCallback(const DetectEngineCtx *de_ctx, 117 static int DetectTlsSerialSetup(DetectEngineCtx *de_ctx, Signature *s, const char *str) in DetectTlsSerialSetup() argument 188 static void DetectTlsSerialSetupCallback(const DetectEngineCtx *de_ctx, in DetectTlsSerialSetupCallback() argument 213 de_ctx->spm_global_thread_ctx); in DetectTlsSerialSetupCallback()
|
H A D | app-layer-detect-proto.c | 3321 s = de_ctx->sig_list = SigInit(de_ctx, "alert http any any -> any any " in AppLayerProtoDetectTest16() 3360 if (de_ctx != NULL) in AppLayerProtoDetectTest16() 3362 if (de_ctx != NULL) in AppLayerProtoDetectTest16() 3415 s = de_ctx->sig_list = SigInit(de_ctx, "alert http any !80 -> any any " in AppLayerProtoDetectTest17() 3456 if (de_ctx != NULL) in AppLayerProtoDetectTest17() 3458 if (de_ctx != NULL) in AppLayerProtoDetectTest17() 3511 s = de_ctx->sig_list = SigInit(de_ctx, "alert ftp any any -> any any " in AppLayerProtoDetectTest18() 3551 if (de_ctx != NULL) in AppLayerProtoDetectTest18() 3553 if (de_ctx != NULL) in AppLayerProtoDetectTest18() 3603 s = de_ctx->sig_list = SigInit(de_ctx, "alert http any !80 -> any any " in AppLayerProtoDetectTest19() [all …]
|
H A D | detect-template2.c | 49 static int PrefilterSetupTemplate2(DetectEngineCtx *de_ctx, SigGroupHead *sgh); 293 static int DetectTemplate2Setup (DetectEngineCtx *de_ctx, Signature *s, const char *template2str) in DetectTemplate2Setup() argument 301 DetectTemplate2Free(de_ctx, template2d); in DetectTemplate2Setup() 319 void DetectTemplate2Free(DetectEngineCtx *de_ctx, void *ptr) in DetectTemplate2Free() argument 380 static int PrefilterSetupTemplate2(DetectEngineCtx *de_ctx, SigGroupHead *sgh) in PrefilterSetupTemplate2() argument 382 return PrefilterSetupPacketHeader(de_ctx, sgh, DETECT_TEMPLATE2, in PrefilterSetupTemplate2()
|
H A D | detect-tcpmss.c | 49 static int PrefilterSetupTcpmss(DetectEngineCtx *de_ctx, SigGroupHead *sgh); 280 static int DetectTcpmssSetup (DetectEngineCtx *de_ctx, Signature *s, const char *tcpmssstr) in DetectTcpmssSetup() argument 288 DetectTcpmssFree(de_ctx, tcpmssd); in DetectTcpmssSetup() 306 void DetectTcpmssFree(DetectEngineCtx *de_ctx, void *ptr) in DetectTcpmssFree() argument 360 static int PrefilterSetupTcpmss(DetectEngineCtx *de_ctx, SigGroupHead *sgh) in PrefilterSetupTcpmss() argument 362 return PrefilterSetupPacketHeader(de_ctx, sgh, DETECT_TCPMSS, in PrefilterSetupTcpmss()
|
H A D | detect-tls-cert-fingerprint.c | 65 static void DetectTlsFingerprintSetupCallback(const DetectEngineCtx *de_ctx, 117 static int DetectTlsFingerprintSetup(DetectEngineCtx *de_ctx, Signature *s, in DetectTlsFingerprintSetup() argument 198 static void DetectTlsFingerprintSetupCallback(const DetectEngineCtx *de_ctx, in DetectTlsFingerprintSetupCallback() argument 223 de_ctx->spm_global_thread_ctx); in DetectTlsFingerprintSetupCallback()
|
H A D | detect-http-start.c | 214 static int PrefilterTxHttpRequestStartRegister(DetectEngineCtx *de_ctx, in PrefilterTxHttpRequestStartRegister() argument 227 int r = PrefilterAppendTxEngine(de_ctx, sgh, PrefilterTxHttpRequestStart, in PrefilterTxHttpRequestStartRegister() 283 static int PrefilterTxHttpResponseStartRegister(DetectEngineCtx *de_ctx, in PrefilterTxHttpResponseStartRegister() argument 296 int r = PrefilterAppendTxEngine(de_ctx, sgh, PrefilterTxHttpResponseStart, in PrefilterTxHttpResponseStartRegister() 308 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, in InspectEngineHttpStart() argument 343 int r = DetectEngineContentInspection(de_ctx, det_ctx, s, engine->smd, in InspectEngineHttpStart() 361 static int DetectHttpStartSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg) in DetectHttpStartSetup() argument
|
H A D | detect-stream_size.c | 50 void DetectStreamSizeFree(DetectEngineCtx *de_ctx, void *); 185 static DetectStreamSizeData *DetectStreamSizeParse (DetectEngineCtx *de_ctx, const char *streamstr) in DetectStreamSizeParse() argument 279 DetectStreamSizeFree(de_ctx, sd); in DetectStreamSizeParse() 293 static int DetectStreamSizeSetup (DetectEngineCtx *de_ctx, Signature *s, const char *streamstr) in DetectStreamSizeSetup() argument 295 DetectStreamSizeData *sd = DetectStreamSizeParse(de_ctx, streamstr); in DetectStreamSizeSetup() 301 DetectStreamSizeFree(de_ctx, sd); in DetectStreamSizeSetup() 317 void DetectStreamSizeFree(DetectEngineCtx *de_ctx, void *ptr) in DetectStreamSizeFree() argument
|
H A D | detect-http-header-names.c | 234 static int PrefilterTxHttpRequestHeaderNamesRegister(DetectEngineCtx *de_ctx, in PrefilterTxHttpRequestHeaderNamesRegister() argument 247 int r = PrefilterAppendTxEngine(de_ctx, sgh, PrefilterTxHttpRequestHeaderNames, in PrefilterTxHttpRequestHeaderNamesRegister() 307 static int PrefilterTxHttpResponseHeaderNamesRegister(DetectEngineCtx *de_ctx, in PrefilterTxHttpResponseHeaderNamesRegister() argument 320 int r = PrefilterAppendTxEngine(de_ctx, sgh, PrefilterTxHttpResponseHeaderNames, in PrefilterTxHttpResponseHeaderNamesRegister() 332 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, in InspectEngineHttpHeaderNames() argument 367 int r = DetectEngineContentInspection(de_ctx, det_ctx, s, engine->smd, in InspectEngineHttpHeaderNames() 398 static int DetectHttpHeaderNamesSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg) in DetectHttpHeaderNamesSetup() argument
|
H A D | detect-nfs-version.c | 73 static void DetectNfsVersionFree(DetectEngineCtx *de_ctx, void *); 80 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, 116 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, in DetectEngineInspectNfsRequestGeneric() argument 121 return DetectEngineInspectGenericList(tv, de_ctx, det_ctx, s, smd, in DetectEngineInspectNfsRequestGeneric() 328 static int DetectNfsVersionSetup (DetectEngineCtx *de_ctx, Signature *s, in DetectNfsVersionSetup() argument 356 DetectNfsVersionFree(de_ctx, dd); in DetectNfsVersionSetup() 366 void DetectNfsVersionFree(DetectEngineCtx *de_ctx, void *ptr) in DetectNfsVersionFree() argument
|
H A D | detect-http-method.c | 64 static int DetectHttpMethodSetupSticky(DetectEngineCtx *de_ctx, Signature *s, const char *str); 137 static int DetectHttpMethodSetup(DetectEngineCtx *de_ctx, Signature *s, const char *str) in DetectHttpMethodSetup() argument 139 return DetectEngineContentModifierBufferSetup(de_ctx, s, str, in DetectHttpMethodSetup() 154 static int DetectHttpMethodSetupSticky(DetectEngineCtx *de_ctx, Signature *s, const char *str) in DetectHttpMethodSetupSticky() argument
|
H A D | detect-engine-enip.h | 27 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *, 32 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *,
|
H A D | detect-bsize.c | 279 static int DetectBsizeSetup (DetectEngineCtx *de_ctx, Signature *s, const char *sizestr) in DetectBsizeSetup() argument 284 if (DetectBufferGetActiveList(de_ctx, s) == -1) in DetectBsizeSetup() 305 DetectBsizeFree(de_ctx, bsz); in DetectBsizeSetup() 314 void DetectBsizeFree(DetectEngineCtx *de_ctx, void *ptr) in DetectBsizeFree() argument
|
H A D | detect.h | 391 struct DetectEngineCtx_ *de_ctx, struct DetectEngineThreadCtx_ *det_ctx, 399 struct DetectEngineCtx_ *de_ctx, struct DetectEngineThreadCtx_ *det_ctx, 626 int (*PrefilterRegisterWithListId)(struct DetectEngineCtx_ *de_ctx, 641 int (*PrefilterRegisterWithListId)(struct DetectEngineCtx_ *de_ctx, 1142 DetectEngineCtx *de_ctx; member 1205 int (*SetupPrefilter)(DetectEngineCtx *de_ctx, struct SigGroupHead_ *sgh); 1490 void SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, 1493 int SignatureIsIPOnly(DetectEngineCtx *de_ctx, const Signature *s); 1506 int DetectFlowbitsAnalyze(DetectEngineCtx *de_ctx); 1508 int DetectMetadataHashInit(DetectEngineCtx *de_ctx); [all …]
|