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",
71 det_ctx, list_id, buffer, data, data_len, transforms);
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)
100 #ifdef KEYWORD_TOCLIENT
103 const uint8_t _flow_flags,
void *txv,
const int list_id)
109 htp_tx_t *tx = (htp_tx_t *)txv;
116 SCLogDebug(
"HTTP %s header not present in this request",
125 det_ctx, list_id, buffer, data, data_len, transforms);
140 const uint8_t *b = NULL;
142 if (rs_http2_tx_get_header_value(txv, STREAM_TOCLIENT,
HEADER_NAME, &b, &b_len) != 1)
144 if (b == NULL || b_len == 0)
174 static void DetectHttpHeadersRegisterStub(
void)
177 #ifdef KEYWORD_NAME_LEGACY
185 #ifdef KEYWORD_TOSERVER
191 #ifdef KEYWORD_TOCLIENT
197 #ifdef KEYWORD_TOSERVER
203 #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.
void InspectionBufferSetupAndApplyTransforms(DetectEngineThreadCtx *det_ctx, const int list_id, InspectionBuffer *buffer, const uint8_t *data, const uint32_t data_len, const DetectEngineTransforms *transforms)
setup the buffer with our initial data
#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
#define HTP_REQUEST_PROGRESS_HEADERS
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)