Go to the documentation of this file.
56 #define KEYWORD_NAME "sip.uri"
57 #define KEYWORD_DOC "sip-keywords.html#sip-uri"
58 #define BUFFER_NAME "sip.uri"
59 #define BUFFER_DESC "sip request uri"
60 static int g_buffer_id = 0;
62 static bool DetectSipUriValidateCallback(
const Signature *s,
const char **sigerror)
87 const uint8_t _flow_flags,
void *txv,
const int list_id)
91 const uint8_t *b = NULL;
94 if (rs_sip_tx_get_uri(txv, &b, &b_len) != 1)
96 if (b == NULL || b_len == 0)
123 DetectSipUriSetupCallback);
126 DetectSipUriValidateCallback);
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
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)
void DetectBufferTypeRegisterSetupCallback(const char *name, void(*SetupCallback)(const DetectEngineCtx *, Signature *))
main detection engine ctx
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
void DetectUrilenApplyToContent(Signature *s, int list)
set prefilter dsize pair
InspectionBuffer * InspectionBufferGet(DetectEngineThreadCtx *det_ctx, const int list_id)
int DetectBufferTypeGetByName(const char *name)
#define SIG_FLAG_TOSERVER
void DetectBufferTypeRegisterValidateCallback(const char *name, bool(*ValidateCallback)(const Signature *, const char **sigerror))
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
void DetectSipUriRegister(void)
void InspectionBufferApplyTransforms(InspectionBuffer *buffer, const DetectEngineTransforms *transforms)
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)
bool DetectUrilenValidateContent(const Signature *s, int list, const char **sigerror)