suricata
|
Go to the source code of this file.
Data Structures | |
struct | SMTPString_ |
struct | SMTPTransaction_ |
struct | SMTPConfig |
struct | SMTPState_ |
Macros | |
#define | SMTP_LINE_BUFFER_LIMIT 4096 |
Typedefs | |
typedef struct SMTPString_ | SMTPString |
typedef struct SMTPTransaction_ | SMTPTransaction |
typedef struct SMTPConfig | SMTPConfig |
typedef struct SMTPState_ | SMTPState |
Functions | |
int | SMTPProcessDataChunk (const uint8_t *chunk, uint32_t len, MimeDecParseState *state) |
void * | SMTPStateAlloc (void *orig_state, AppProto proto_orig) |
void | RegisterSMTPParsers (void) |
Register the SMTP Protocol parser. More... | |
void | SMTPParserCleanup (void) |
Free memory allocated for global SMTP parser state. More... | |
void | SMTPParserRegisterTests (void) |
Variables | |
SMTPConfig | smtp_config |
Definition in file app-layer-smtp.h.
#define SMTP_LINE_BUFFER_LIMIT 4096 |
Definition at line 33 of file app-layer-smtp.h.
typedef struct SMTPConfig SMTPConfig |
typedef struct SMTPState_ SMTPState |
typedef struct SMTPString_ SMTPString |
typedef struct SMTPTransaction_ SMTPTransaction |
anonymous enum |
Definition at line 34 of file app-layer-smtp.h.
void RegisterSMTPParsers | ( | void | ) |
Register the SMTP Protocol parser.
Definition at line 1865 of file app-layer-smtp.c.
References ALPROTO_SMTP, AppLayerProtoDetectConfProtoDetectionEnabled(), and AppLayerProtoDetectRegisterProtocol().
void SMTPParserCleanup | ( | void | ) |
Free memory allocated for global SMTP parser state.
Definition at line 1920 of file app-layer-smtp.c.
Referenced by AppLayerParserDeSetup().
void SMTPParserRegisterTests | ( | void | ) |
Definition at line 4253 of file app-layer-smtp.c.
References UtRegisterTest().
int SMTPProcessDataChunk | ( | const uint8_t * | chunk, |
uint32_t | len, | ||
MimeDecParseState * | state | ||
) |
Definition at line 485 of file app-layer-smtp.c.
References Flow_::alstate, MimeDecParseState::body_begin, SMTPConfig::content_inspect_min_size, MimeDecEntity::ctnt_flags, CTNT_IS_ATTACHMENT, MimeDecStackNode::data, MimeDecParseState::data, DEBUG_VALIDATE_BUG_ON, FILE_STORE, FileFlowToFlags(), MimeDecEntity::filename, MimeDecEntity::filename_len, SMTPTransaction_::files_ts, flags, len, MIME_DEC_OK, Flow_::protoctx, SC_FILENAME_MAX, SCEnter, SCLogDebug, SCLogDebugEnabled(), smtp_config, MimeDecParseState::stack, StreamTcpReassemblySetMinInspectDepth(), and MimeDecStack::top.
void* SMTPStateAlloc | ( | void * | orig_state, |
AppProto | proto_orig | ||
) |
Definition at line 1522 of file app-layer-smtp.c.
References SMTPState_::cmds, SMTPState_::cmds_buffer_len, SCFree, SCMalloc, SMTP_COMMAND_BUFFER_STEPS, TAILQ_INIT, and unlikely.
SMTPConfig smtp_config |
Definition at line 244 of file app-layer-smtp.c.
Referenced by SMTPProcessDataChunk().