Go to the documentation of this file.
51 #include "rust-bindings.h"
53 #define KEYWORD_NAME_KEY_EXCHANGE "ike.key_exchange_payload"
54 #define KEYWORD_DOC_KEY_EXCHANGE "ike-keywords.html#ike-key_exchange_payload";
55 #define BUFFER_NAME_KEY_EXCHANGE "ike.key_exchange_payload"
56 #define BUFFER_DESC_KEY_EXCHANGE "ike key_exchange payload"
58 static int g_buffer_key_exchange_id = 0;
77 const uint8_t *b = NULL;
80 if (rs_ike_state_get_key_exchange(txv, &b, &b_len) != 1)
82 if (b == NULL || b_len == 0)
98 "sticky buffer to match on the IKE key_exchange_payload";
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
#define SIGMATCH_INFO_STICKY_BUFFER
SigTableElmt * sigmatch_table
uint8_t DetectEngineInspectBufferGeneric(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const 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.
int DetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
main detection engine ctx
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
InspectionBuffer * InspectionBufferGet(DetectEngineThreadCtx *det_ctx, const int list_id)
int DetectBufferTypeGetByName(const char *name)
#define SIG_FLAG_TOSERVER
void DetectIkeKeyExchangeRegister(void)
int PrefilterGenericMpmRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistry *mpm_reg, int list_id)
void DetectAppLayerMpmRegister(const char *name, int direction, int priority, PrefilterRegisterFunc PrefilterRegister, InspectionBufferGetDataPtr GetData, AppProto alproto, int tx_min_progress)
register an app layer keyword for mpm
#define BUFFER_DESC_KEY_EXCHANGE
void InspectionBufferApplyTransforms(InspectionBuffer *buffer, const DetectEngineTransforms *transforms)
#define KEYWORD_DOC_KEY_EXCHANGE
#define KEYWORD_NAME_KEY_EXCHANGE
void InspectionBufferSetup(DetectEngineThreadCtx *det_ctx, const int list_id, InspectionBuffer *buffer, const uint8_t *data, const uint32_t data_len)
setup the buffer with our initial data
void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)
@ DETECT_AL_IKE_KEY_EXCHANGE
#define BUFFER_NAME_KEY_EXCHANGE