Go to the documentation of this file.
51 #include "rust-bindings.h"
53 #define KEYWORD_NAME_INITIATOR "ike.init_spi"
54 #define KEYWORD_DOC_INITIATOR "ike-keywords.html#ike-init_spi";
55 #define BUFFER_NAME_INITIATOR "ike.init_spi"
56 #define BUFFER_DESC_INITIATOR "ike init spi"
58 #define KEYWORD_NAME_RESPONDER "ike.resp_spi"
59 #define KEYWORD_DOC_RESPONDER "ike-keywords.html#ike-resp_spi";
60 #define BUFFER_NAME_RESPONDER "ike.resp_spi"
61 #define BUFFER_DESC_RESPONDER "ike resp spi"
63 static int g_buffer_initiator_id = 0;
64 static int g_buffer_responder_id = 0;
94 const uint8_t *b = NULL;
97 if (rs_ike_state_get_spi_initiator(txv, &b, &b_len) != 1)
99 if (b == NULL || b_len == 0)
115 const uint8_t *b = NULL;
118 if (rs_ike_state_get_spi_responder(txv, &b, &b_len) != 1)
120 if (b == NULL || b_len == 0)
136 "sticky buffer to match on the IKE spi initiator";
156 "sticky buffer to match on the IKE spi responder";
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.
#define BUFFER_DESC_RESPONDER
int DetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
main detection engine ctx
#define KEYWORD_DOC_RESPONDER
#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
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 KEYWORD_NAME_RESPONDER
#define BUFFER_NAME_INITIATOR
@ DETECT_AL_IKE_SPI_INITIATOR
#define BUFFER_DESC_INITIATOR
void InspectionBufferApplyTransforms(InspectionBuffer *buffer, const DetectEngineTransforms *transforms)
void DetectIkeSpiRegister(void)
#define KEYWORD_NAME_INITIATOR
#define BUFFER_NAME_RESPONDER
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.
#define KEYWORD_DOC_INITIATOR
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)
@ DETECT_AL_IKE_SPI_RESPONDER