34#include "rust-bindings.h"
41static int g_ike_nonce_payload_length_buffer_id = 0;
54 "/rules/ike-keywords.html#ike-nonce-payload-length";
56 DetectIkeNoncePayloadLengthMatch;
90 if (!SCIkeStateGetNoncePayloadLength(txv, &length))
106static 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 SCDetectU32Free(ptr);
@ DETECT_IKE_NONCE_PAYLOAD_LENGTH
DetectUintData_u32 * DetectU32Parse(const char *u32str)
This function is used to parse u32 options passed via some u32 keyword.
int DetectU32Match(const uint32_t parg, const DetectUintData_u32 *du32)
DetectUintData_u32 DetectU32Data
void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
int DetectBufferTypeGetByName(const char *name)
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 DetectIkeNoncePayloadLengthRegister(void)
Registration function for ike.nonce_payload_length keyword.
int SCDetectSignatureSetAppProto(Signature *s, AppProto alproto)
SigMatch * SCSigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.
SigTableElmt * sigmatch_table
#define SIG_FLAG_TOCLIENT
#define SIG_FLAG_TOSERVER
main detection engine ctx
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
void(* Free)(DetectEngineCtx *, void *)
int(* AppLayerTxMatch)(DetectEngineThreadCtx *, Flow *, uint8_t flags, void *alstate, void *txv, const Signature *, const SigMatchCtx *)