Go to the documentation of this file.
34 #include "rust-bindings.h"
40 static void DetectIkeKeyExchangePayloadLengthFree(
DetectEngineCtx *,
void *);
41 static int g_ike_key_exch_payload_length_buffer_id = 0;
52 "ike.key_exchange_payload_length";
54 "match IKE key exchange payload length";
56 "/rules/ike-keywords.html#ike-key-exchange-payload-length";
58 DetectIkeKeyExchangePayloadLengthMatch;
60 DetectIkeKeyExchangePayloadLengthSetup;
62 DetectIkeKeyExchangePayloadLengthFree;
70 g_ike_key_exch_payload_length_buffer_id =
95 if (!rs_ike_state_get_key_exchange_payload_length(txv, &length))
112 static int DetectIkeKeyExchangePayloadLengthSetup(
119 if (key_exchange_payload_length == NULL)
127 g_ike_key_exch_payload_length_buffer_id) == NULL) {
133 DetectIkeKeyExchangePayloadLengthFree(
de_ctx, key_exchange_payload_length);
145 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 *)
#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...
@ DETECT_AL_IKE_KEY_EXCHANGE_PAYLOAD_LENGTH
DetectUintData_u32 DetectU32Data
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.
void DetectIkeKeyExchangePayloadLengthRegister(void)
Registration function for ike.key_exchange_payload_length keyword.