Go to the documentation of this file.
44 static int g_buffer_id = 0;
46 #ifdef KEYWORD_TOSERVER
49 const uint8_t _flow_flags,
void *txv,
const int list_id)
55 htp_tx_t *tx = (htp_tx_t *)txv;
62 SCLogDebug(
"HTTP %s header not present in this request",
86 const uint8_t *b = NULL;
88 if (rs_http2_tx_get_header_value(txv, STREAM_TOSERVER,
HEADER_NAME, &b, &b_len) != 1)
90 if (b == NULL || b_len == 0)
101 #ifdef KEYWORD_TOCLIENT
104 const uint8_t _flow_flags,
void *txv,
const int list_id)
110 htp_tx_t *tx = (htp_tx_t *)txv;
117 SCLogDebug(
"HTTP %s header not present in this request",
141 const uint8_t *b = NULL;
143 if (rs_http2_tx_get_header_value(txv, STREAM_TOCLIENT,
HEADER_NAME, &b, &b_len) != 1)
145 if (b == NULL || b_len == 0)
176 static void DetectHttpHeadersRegisterStub(
void)
179 #ifdef KEYWORD_NAME_LEGACY
187 #ifdef KEYWORD_TOSERVER
193 #ifdef KEYWORD_TOCLIENT
199 #ifdef KEYWORD_TOSERVER
205 #ifdef KEYWORD_TOCLIENT
#define htp_header_value_len(h)
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 HTP_RESPONSE_PROGRESS_HEADERS
int DetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
main detection engine ctx
#define htp_tx_response_headers(tx)
#define htp_tx_response_header(tx, header)
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
InspectionBuffer * InspectionBufferGet(DetectEngineThreadCtx *det_ctx, const int list_id)
#define htp_header_value(h)
int DetectBufferTypeGetByName(const char *name)
#define htp_tx_request_headers(tx)
#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 htp_header_value_ptr(h)
#define KEYWORD_NAME_LEGACY
void InspectionBufferApplyTransforms(InspectionBuffer *buffer, const DetectEngineTransforms *transforms)
#define HTP_REQUEST_PROGRESS_HEADERS
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)
#define htp_tx_request_header(tx, header)