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

htp_cfg_t* htp_connp_t::cfg

Current parser configuration structure.

htp_conn_t* htp_connp_t::conn

The connection structure associated with this parser.

int64_t htp_connp_t::in_body_data_left

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.

size_t htp_connp_t::in_chunk_count

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

size_t htp_connp_t::in_chunk_request_index

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

int htp_connp_t::in_chunked_length

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

int64_t htp_connp_t::in_content_length

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.

unsigned char* htp_connp_t::in_current_data

Pointer to the current request data chunk.

int64_t htp_connp_t::in_current_len

The length of the current request data chunk.

int64_t htp_connp_t::in_current_offset

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

htp_header_line_t* htp_connp_t::in_header_line

The request header line currently being processed.

int htp_connp_t::in_header_line_counter

How many lines are there in the current request header?

int htp_connp_t::in_header_line_index

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.

size_t htp_connp_t::in_line_len

Length of the current request line.

size_t htp_connp_t::in_line_size

Size of the request line buffer.

int htp_connp_t::in_next_byte

The value of the request byte currently being processed.

int(* htp_connp_t::in_state)(htp_connp_t *)

Current request parser state.

unsigned int htp_connp_t::in_status

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

int64_t htp_connp_t::in_stream_offset

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

htp_time_t htp_connp_t::in_timestamp

The time when the last request data chunk was received.

htp_tx_t* htp_connp_t::in_tx

Ongoing inbound transaction.

int htp_connp_t::is_cfg_private

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.

htp_log_t* htp_connp_t::last_error

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.

int64_t htp_connp_t::out_body_data_left

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

int htp_connp_t::out_chunked_length

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

int64_t htp_connp_t::out_content_length

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

unsigned char* htp_connp_t::out_current_data

Pointer to the current response data chunk.

int64_t htp_connp_t::out_current_len

The length of the current response data chunk.

int64_t htp_connp_t::out_current_offset

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

unsigned int htp_connp_t::out_data_other_at_tx_end
htp_decompressor_t* htp_connp_t::out_decompressor

Response decompressor used to decompress response body data.

htp_header_line_t* htp_connp_t::out_header_line

The response header line currently being processed.

int htp_connp_t::out_header_line_counter

How many lines are there in the current response header?

int htp_connp_t::out_header_line_index

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.

size_t htp_connp_t::out_line_len

Length of the current response line.

size_t htp_connp_t::out_line_size

Size of the response line buffer.

int htp_connp_t::out_next_byte

The value of the response byte currently being processed.

size_t htp_connp_t::out_next_tx_index

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.

int(* htp_connp_t::out_state)(htp_connp_t *)

Current response parser state.

unsigned int htp_connp_t::out_status

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

int64_t htp_connp_t::out_stream_offset

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

htp_time_t htp_connp_t::out_timestamp

The time when the last response data chunk was received.

htp_tx_t* htp_connp_t::out_tx

Ongoing outbound transaction

htp_file_t* htp_connp_t::put_file
void* htp_connp_t::user_data

Opaque user data associated with this parser.


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