Go to the documentation of this file.
96 static int g_http2_match_buffer_id = 0;
97 static int g_http2_complete_buffer_id = 0;
98 static int g_http2_header_name_buffer_id = 0;
187 HTTP2StateOpen, SCHttp2TxGetHeaderName, 2);
189 HTTP2StateOpen, SCHttp2TxGetHeaderName, 2);
193 "HTTP2 header name");
222 return SCHttp2TxHasFrametype(txv,
flags,
ctx);
240 void *dua8 = SCHttp2ParseFrametype(
str);
247 g_http2_match_buffer_id) == NULL) {
262 SCDetectU8ArrayFree(ptr);
276 return SCHttp2TxHasErrorCode(txv,
flags,
ctx);
294 void *dua32 = SCHttp2ParseErrorCode(
str);
301 g_http2_match_buffer_id) == NULL) {
316 SCDetectU32ArrayFree(ptr);
330 return SCHttp2PriorityMatch(txv,
flags,
ctx);
353 g_http2_match_buffer_id) == NULL) {
354 SCDetectU8Free(prio);
368 SCDetectU8ArrayFree(ptr);
382 return SCHttp2WindowMatch(txv,
flags,
ctx);
406 g_http2_complete_buffer_id) == NULL) {
421 SCDetectU32ArrayFree(ptr);
435 return SCHttp2DetectSizeUpdateCtxMatch(
ctx, txv,
flags);
453 void *su = SCDetectU64Parse(
str);
458 g_http2_match_buffer_id) == NULL) {
473 SCDetectU64Free(ptr);
487 return SCHttp2DetectSettingsCtxMatch(
ctx, txv,
flags);
505 void *http2set = SCHttp2DetectSettingsCtxParse(
str);
506 if (http2set == NULL)
510 g_http2_match_buffer_id) == NULL) {
525 SCHttp2DetectSettingsCtxFree(ptr);
#define SIGMATCH_INFO_STICKY_BUFFER
void DetectHTTP2priorityRegisterTests(void)
SigTableElmt * sigmatch_table
void(* Free)(DetectEngineCtx *, void *)
void DetectHTTP2RegisterTests(void)
void DetectHTTP2priorityFree(DetectEngineCtx *, void *)
this function will free memory associated with uint32_t
main detection engine ctx
@ DETECT_HTTP2_SIZEUPDATE
void DetectBufferTypeSupportsMultiInstance(const char *name)
int(* AppLayerTxMatch)(DetectEngineThreadCtx *, Flow *, uint8_t flags, void *alstate, void *txv, const Signature *, const SigMatchCtx *)
void DetectHTTP2sizeUpdateFree(DetectEngineCtx *, void *)
this function will free memory associated with uint32_t
@ DETECT_HTTP2_HEADERNAME
int SCDetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
int SCDetectSignatureSetAppProto(Signature *s, AppProto alproto)
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int DetectBufferTypeGetByName(const char *name)
#define SIGMATCH_INFO_UINT32
#define SIG_FLAG_TOSERVER
#define SIGMATCH_INFO_MULTI_UINT
SigMatch * SCSigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.
void DetectHTTP2sizeUpdateRegisterTests(void)
void DetectHTTP2settingsFree(DetectEngineCtx *, void *)
this function will free memory associated with rust signature context
DetectUintData_u8 DetectU8Data
void DetectHTTP2settingsRegisterTests(void)
int(* Match)(DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
void DetectHTTP2windowRegisterTests(void)
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
int DetectBufferTypeRegister(const char *name)
void DetectHTTP2windowFree(DetectEngineCtx *, void *)
this function will free memory associated with uint32_t
DetectUintData_u32 DetectU32Data
#define SIGMATCH_INFO_UINT64
void DetectHttp2Register(void)
Registration function for HTTP2 keywords.
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.
#define SIGMATCH_INFO_MULTI_BUFFER
#define SCLogError(...)
Macro used to log ERROR messages.
void DetectHTTP2errorCodeRegisterTests(void)
#define SIGMATCH_INFO_UINT8
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)
void DetectHTTP2frameTypeRegisterTests(void)
this function registers unit tests for DetectHTTP2frameType
void DetectHTTP2errorcodeFree(DetectEngineCtx *, void *)
this function will free memory associated with uint32_t
void DetectAppLayerMultiRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectionMultiBufferGetDataPtr GetData, int priority)
void DetectHTTP2frametypeFree(DetectEngineCtx *, void *)
this function will free memory associated with uint8_t
#define SIGMATCH_INFO_ENUM_UINT
void(* RegisterTests)(void)