Go to the documentation of this file.
34 #include "rust-bindings.h"
41 static int g_ike_nonce_payload_length_buffer_id = 0;
54 "/rules/ike-keywords.html#ike-nonce-payload-length";
56 DetectIkeNoncePayloadLengthMatch;
90 if (!rs_ike_state_get_nonce_payload_length(txv, &length))
106 static int DetectIkeNoncePayloadLengthSetup(
113 if (nonce_payload_length == NULL)
121 g_ike_nonce_payload_length_buffer_id) == NULL) {
127 DetectIkeNoncePayloadLengthFree(
de_ctx, nonce_payload_length);
139 rs_detect_u32_free(ptr);
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
int DetectU32Match(const uint32_t parg, const DetectUintData_u32 *du32)
SigTableElmt * sigmatch_table
void(* Free)(DetectEngineCtx *, void *)
DetectUintData_u32 * DetectU32Parse(const char *u32str)
This function is used to parse u32 options passed via some u32 keyword.
main detection engine ctx
int(* AppLayerTxMatch)(DetectEngineThreadCtx *, Flow *, uint8_t flags, void *alstate, void *txv, const Signature *, const SigMatchCtx *)
@ DETECT_AL_IKE_NONCE_PAYLOAD_LENGTH
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int DetectBufferTypeGetByName(const char *name)
#define SIG_FLAG_TOSERVER
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
DetectUintData_u32 DetectU32Data
void DetectIkeNoncePayloadLengthRegister(void)
Registration function for ike.nonce_payload_length keyword.
uint8_t DetectEngineInspectGenericList(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const struct DetectEngineAppInspectionEngine_ *engine, const Signature *s, Flow *f, uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
Do the content inspection & validation for a signature.
void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
SigMatch * SigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.