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 108 of file app-layer-smtp.h.

Member Function Documentation

SMTPState_::TAILQ_HEAD ( SMTPTransaction_  )

transaction list

Field Documentation

uint32_t SMTPState_::bdat_chunk_idx

bdat chunk idx

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

uint32_t SMTPState_::bdat_chunk_len

bdat chunk len

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

uint8_t* SMTPState_::cmds

the command buffer

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

Referenced by SMTPParserCleanup(), SMTPProcessDataChunk(), and SMTPStateAlloc().

uint16_t SMTPState_::cmds_buffer_len

the buffer length

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

Referenced by SMTPProcessDataChunk(), and SMTPStateAlloc().

uint16_t SMTPState_::cmds_cnt

no of commands stored in the above buffer

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

uint16_t SMTPState_::cmds_idx

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

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

SMTPTransaction* SMTPState_::curr_tx

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

Referenced by SMTPParserCleanup(), SMTPProcessDataChunk(), and SMTPStateAlloc().

uint8_t SMTPState_::current_command

current command in progress

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

Referenced by SMTPProcessDataChunk().

const uint8_t* SMTPState_::current_line

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

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

uint8_t SMTPState_::current_line_delimiter_len

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

Referenced by SMTPProcessDataChunk().

int32_t SMTPState_::current_line_len

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

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

uint8_t SMTPState_::direction

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

Referenced by SMTPProcessDataChunk().

uint32_t SMTPState_::file_track_id

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

Referenced by SMTPProcessDataChunk().

FileContainer* SMTPState_::files_ts

the list of files sent to the server

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

Referenced by SMTPParserCleanup(), SMTPProcessDataChunk(), and SMTPStateAlloc().

uint8_t* SMTPState_::helo

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

Referenced by SMTPParserCleanup(), SMTPProcessDataChunk(), and SMTPStateAlloc().

uint16_t SMTPState_::helo_len

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

const uint8_t* SMTPState_::input

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

Referenced by SMTPProcessDataChunk().

int32_t SMTPState_::input_len

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

uint8_t SMTPState_::parser_state

var to indicate parser state

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

uint8_t SMTPState_::tc_current_line_db

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

Referenced by SMTPProcessDataChunk(), and SMTPStateAlloc().

uint8_t SMTPState_::tc_current_line_lf_seen

we have see LF for the currently parsed line

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

Referenced by SMTPProcessDataChunk().

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 129 of file app-layer-smtp.h.

Referenced by SMTPProcessDataChunk(), and SMTPStateAlloc().

int32_t SMTPState_::tc_db_len

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

Referenced by SMTPProcessDataChunk().

uint64_t SMTPState_::toserver_data_count

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

Referenced by SMTPProcessDataChunk().

uint64_t SMTPState_::toserver_last_data_stamp

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

Referenced by SMTPProcessDataChunk().

uint8_t SMTPState_::ts_current_line_db

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

Referenced by SMTPParserCleanup(), SMTPProcessDataChunk(), and SMTPStateAlloc().

uint8_t SMTPState_::ts_current_line_lf_seen

we have see LF for the currently parsed line

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

Referenced by SMTPProcessDataChunk().

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 137 of file app-layer-smtp.h.

Referenced by SMTPParserCleanup(), SMTPProcessDataChunk(), and SMTPStateAlloc().

int32_t SMTPState_::ts_db_len

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

Referenced by SMTPParserCleanup(), and SMTPProcessDataChunk().

uint64_t SMTPState_::tx_cnt

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

Referenced by SMTPProcessDataChunk(), and SMTPStateAlloc().


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