Go to the documentation of this file.
39 static int HTTP2RegisterPatternsForProtocolDetection(
void)
46 16, 0, STREAM_TOSERVER) < 0)
58 const char *proto_name =
"http2";
62 if (HTTP2RegisterPatternsForProtocolDetection() < 0)
66 rs_http2_register_parser();
77 if (h2s == NULL || h1tx == NULL) {
94 for (
size_t i = 0; i < nbheaders; i++) {
#define htp_header_value_len(h)
int AppLayerProtoDetectPMRegisterPatternCI(uint8_t ipproto, AppProto alproto, const char *pattern, uint16_t depth, uint16_t offset, uint8_t direction)
Registers a case-insensitive pattern for protocol detection.
#define htp_tx_request_uri(tx)
#define STREAMING_BUFFER_CONFIG_INITIALIZER
void * HtpGetTxForH2(void *alstate)
#define htp_tx_request_header_index(tx, i)
#define htp_tx_request_method(tx)
#define htp_header_value_ptr(h)
void AppLayerProtoDetectRegisterProtocol(AppProto alproto, const char *alproto_name)
Registers a protocol for protocol detection phase.
#define htp_header_name_len(h)
#define htp_tx_request_headers_size(tx)
void HTTP2MimicHttp1Request(void *alstate_orig, void *h2s)
void RegisterHTTP2Parsers(void)
#define htp_header_name_ptr(h)
int AppLayerProtoDetectConfProtoDetectionEnabledDefault(const char *ipproto, const char *alproto, bool default_enabled)
Given a protocol name, checks if proto detection is enabled in the conf file.