HTP  0.3
Data Fields
htp_connp_t Struct Reference

#include <htp.h>

Collaboration diagram for htp_connp_t:
Collaboration graph
[legend]

Data Fields

htp_cfg_tcfg
int is_cfg_private
htp_conn_tconn
void * user_data
htp_log_tlast_error
unsigned int in_status
unsigned int out_status
unsigned int out_data_other_at_tx_end
htp_time_t in_timestamp
unsigned char * in_current_data
int64_t in_current_len
int64_t in_current_offset
size_t in_chunk_count
size_t in_chunk_request_index
int64_t in_stream_offset
int in_next_byte
unsigned char * in_line
size_t in_line_size
size_t in_line_len
htp_tx_tin_tx
htp_header_line_tin_header_line
int in_header_line_index
int in_header_line_counter
int64_t in_content_length
int64_t in_body_data_left
int in_chunked_length
int(* in_state )(htp_connp_t *)
size_t out_next_tx_index
htp_time_t out_timestamp
unsigned char * out_current_data
int64_t out_current_len
int64_t out_current_offset
int64_t out_stream_offset
int out_next_byte
unsigned char * out_line
size_t out_line_size
size_t out_line_len
htp_tx_tout_tx
htp_header_line_tout_header_line
int out_header_line_index
int out_header_line_counter
int64_t out_content_length
int64_t out_body_data_left
int out_chunked_length
int(* out_state )(htp_connp_t *)
htp_decompressor_tout_decompressor
htp_file_tput_file

Field Documentation

Current parser configuration structure.

The connection structure associated with this parser.

Holds the remaining request body length that we expect to read. This field will be available only when the length of a request body is known in advance, i.e. when request headers contain a Content-Length header.

How many data chunks does the inbound connection stream consist of?

The index of the first chunk used in the current request.

Holds the amount of data that needs to be read from the current data chunk. Only used with chunked request bodies.

The request body length declared in a valid request headers. The key here is "valid". This field will not be populated if a request contains both a Transfer-Encoding header and a Content-Length header.

Pointer to the current request data chunk.

The length of the current request data chunk.

The offset of the next byte in the request data chunk to consume.

The request header line currently being processed.

How many lines are there in the current request header?

The index, in the structure holding all request header lines, of the line with which the current header begins. The header lines are kept in the transaction structure.

unsigned char* htp_connp_t::in_line

Pointer to the request line buffer.

Length of the current request line.

Size of the request line buffer.

The value of the request byte currently being processed.

Current request parser state.

unsigned int htp_connp_t::in_status

Parser inbound status. Starts as HTP_OK, but may turn into HTP_ERROR.

The offset, in the entire connection stream, of the next request byte.

The time when the last request data chunk was received.

Ongoing inbound transaction.

Is the configuration structure only used with this connection parser? If it is, then it can be changed as parsing goes on, and destroyed along with the parser in the end.

On parser failure, this field will contain the error information. Do note, however, that the value in this field will only be valid immediately after an error condition, but it is not guaranteed to remain valid if the parser is invoked again.

The remaining length of the current response body, if known.

Holds the amount of data that needs to be read from the current response data chunk. Only used with chunked response bodies.

The length of the current response body as presented in the Content-Length response header.

Pointer to the current response data chunk.

The length of the current response data chunk.

The offset of the next byte in the response data chunk to consume.

Response decompressor used to decompress response body data.

The response header line currently being processed.

How many lines are there in the current response header?

The index, in the structure holding all response header lines, of the line with which the current header begins. The header lines are kept in the transaction structure.

unsigned char* htp_connp_t::out_line

Pointer to the response line buffer.

Length of the current response line.

Size of the response line buffer.

The value of the response byte currently being processed.

Response counter, incremented with every new response. This field is used to match responses to requests. The expectation is that for every response there will already be a transaction (request) waiting.

Current response parser state.

Parser output status. Starts as HTP_OK, but may turn into HTP_ERROR.

The offset, in the entire connection stream, of the next response byte.

The time when the last response data chunk was received.

Ongoing outbound transaction

Opaque user data associated with this parser.


The documentation for this struct was generated from the following file: