Home
last modified time | relevance | path

Searched refs:de_ctx (Results 201 – 225 of 316) sorted by relevance

12345678910>>...13

/dports/security/suricata/suricata-6.0.4/src/
H A Ddetect-mqtt-unsubscribe-topic.c93 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 Ddetect-rfb-secresult.c51 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 Ddetect-id.c60 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 Ddetect-ssl-state.c70 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 Ddetect-http-host.c76 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 Ddetect-engine-alert.c69 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 Doutput-json-stats.c77 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 Ddetect-mqtt-connect-flags.c46 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 Ddetect-http-stat-code.c67 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 Ddetect-ssh-hassh-server.c98 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 Ddetect-ssh-hassh.c98 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 Ddetect-ttl.c53 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 Ddetect-tls-cert-serial.c65 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 Dapp-layer-detect-proto.c3321 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 Ddetect-template2.c49 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 Ddetect-tcpmss.c49 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 Ddetect-tls-cert-fingerprint.c65 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 Ddetect-http-start.c214 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 Ddetect-stream_size.c50 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 Ddetect-http-header-names.c234 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 Ddetect-nfs-version.c73 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 Ddetect-http-method.c64 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 Ddetect-engine-enip.h27 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *,
32 DetectEngineCtx *de_ctx, DetectEngineThreadCtx *,
H A Ddetect-bsize.c279 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 Ddetect.h391 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 …]

12345678910>>...13