suricata
SMTPState_ Struct Reference

#include <app-layer-smtp.h>

Collaboration diagram for SMTPState_:

Public Member Functions

 TAILQ_HEAD (, SMTPTransaction_) tx_list
 

Data Fields

SMTPTransactioncurr_tx
 
uint64_t tx_cnt
 
uint64_t toserver_data_count
 
uint64_t toserver_last_data_stamp
 
const uint8_t * input
 
int32_t input_len
 
uint8_t direction
 
const uint8_t * current_line
 
int32_t current_line_len
 
uint8_t current_line_delimiter_len
 
uint8_t * tc_db
 
int32_t tc_db_len
 
uint8_t tc_current_line_db
 
uint8_t tc_current_line_lf_seen
 
uint8_t * ts_db
 
int32_t ts_db_len
 
uint8_t ts_current_line_db
 
uint8_t ts_current_line_lf_seen
 
uint8_t parser_state
 
uint8_t current_command
 
uint32_t bdat_chunk_len
 
uint32_t bdat_chunk_idx
 
uint8_t * cmds
 
uint16_t cmds_buffer_len
 
uint16_t cmds_cnt
 
uint16_t cmds_idx
 
uint16_t helo_len
 
uint8_t * helo
 
FileContainerfiles_ts
 
uint32_t file_track_id
 

Detailed Description

Definition at line 109 of file app-layer-smtp.h.

Member Function Documentation

◆ TAILQ_HEAD()

SMTPState_::TAILQ_HEAD ( SMTPTransaction_  )

transaction list

Field Documentation

◆ bdat_chunk_idx

uint32_t SMTPState_::bdat_chunk_idx

bdat chunk idx

Definition at line 151 of file app-layer-smtp.h.

◆ bdat_chunk_len

uint32_t SMTPState_::bdat_chunk_len

bdat chunk len

Definition at line 149 of file app-layer-smtp.h.

◆ cmds

uint8_t* SMTPState_::cmds

the command buffer

Definition at line 156 of file app-layer-smtp.h.

Referenced by SMTPStateAlloc().

◆ cmds_buffer_len

uint16_t SMTPState_::cmds_buffer_len

the buffer length

Definition at line 158 of file app-layer-smtp.h.

Referenced by SMTPStateAlloc().

◆ cmds_cnt

uint16_t SMTPState_::cmds_cnt

no of commands stored in the above buffer

Definition at line 160 of file app-layer-smtp.h.

◆ cmds_idx

uint16_t SMTPState_::cmds_idx

index of the command in the buffer, currently in inspection by reply handler

Definition at line 163 of file app-layer-smtp.h.

◆ curr_tx

SMTPTransaction* SMTPState_::curr_tx

Definition at line 110 of file app-layer-smtp.h.

◆ current_command

uint8_t SMTPState_::current_command

current command in progress

Definition at line 147 of file app-layer-smtp.h.

◆ current_line

const uint8_t* SMTPState_::current_line

current line extracted by the parser from the call to SMTPGetline()

Definition at line 123 of file app-layer-smtp.h.

◆ current_line_delimiter_len

uint8_t SMTPState_::current_line_delimiter_len

Definition at line 126 of file app-layer-smtp.h.

◆ current_line_len

int32_t SMTPState_::current_line_len

length of the line in current_line. Doesn't include the delimiter

Definition at line 125 of file app-layer-smtp.h.

◆ direction

uint8_t SMTPState_::direction

Definition at line 119 of file app-layer-smtp.h.

◆ file_track_id

uint32_t SMTPState_::file_track_id

Definition at line 172 of file app-layer-smtp.h.

◆ files_ts

FileContainer* SMTPState_::files_ts

the list of files sent to the server

Definition at line 171 of file app-layer-smtp.h.

◆ helo

uint8_t* SMTPState_::helo

Definition at line 167 of file app-layer-smtp.h.

◆ helo_len

uint16_t SMTPState_::helo_len

Definition at line 166 of file app-layer-smtp.h.

◆ input

const uint8_t* SMTPState_::input

Definition at line 117 of file app-layer-smtp.h.

◆ input_len

int32_t SMTPState_::input_len

Definition at line 118 of file app-layer-smtp.h.

◆ parser_state

uint8_t SMTPState_::parser_state

var to indicate parser state

Definition at line 145 of file app-layer-smtp.h.

◆ tc_current_line_db

uint8_t SMTPState_::tc_current_line_db

Definition at line 132 of file app-layer-smtp.h.

◆ tc_current_line_lf_seen

uint8_t SMTPState_::tc_current_line_lf_seen

we have see LF for the currently parsed line

Definition at line 134 of file app-layer-smtp.h.

◆ tc_db

uint8_t* SMTPState_::tc_db

used to indicate if the current_line buffer is a malloced buffer. We use a malloced buffer, if a line is fragmented

Definition at line 130 of file app-layer-smtp.h.

◆ tc_db_len

int32_t SMTPState_::tc_db_len

Definition at line 131 of file app-layer-smtp.h.

◆ toserver_data_count

uint64_t SMTPState_::toserver_data_count

Definition at line 113 of file app-layer-smtp.h.

◆ toserver_last_data_stamp

uint64_t SMTPState_::toserver_last_data_stamp

Definition at line 114 of file app-layer-smtp.h.

◆ ts_current_line_db

uint8_t SMTPState_::ts_current_line_db

Definition at line 140 of file app-layer-smtp.h.

◆ ts_current_line_lf_seen

uint8_t SMTPState_::ts_current_line_lf_seen

we have see LF for the currently parsed line

Definition at line 142 of file app-layer-smtp.h.

◆ ts_db

uint8_t* SMTPState_::ts_db

used to indicate if the current_line buffer is a malloced buffer. We use a malloced buffer, if a line is fragmented

Definition at line 138 of file app-layer-smtp.h.

◆ ts_db_len

int32_t SMTPState_::ts_db_len

Definition at line 139 of file app-layer-smtp.h.

◆ tx_cnt

uint64_t SMTPState_::tx_cnt

Definition at line 112 of file app-layer-smtp.h.


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