|
suricata
|
#include "suricata-common.h"#include "app-layer-ftp.h"#include "app-layer.h"#include "app-layer-parser.h"#include "app-layer-expectation.h"#include "app-layer-detect-proto.h"#include "app-layer-events.h"#include "rust.h"#include "util-misc.h"#include "util-mpm.h"#include "util-validate.h"#include "util-print.h"#include "flow-util.h"#include "stream-tcp.h"
Go to the source code of this file.
Data Structures | |
| struct | FTPThreadCtx_ |
| struct | FtpInput_ |
Macros | |
| #define | FTP_MPM mpm_default_matcher |
Typedefs | |
| typedef struct FTPThreadCtx_ | FTPThreadCtx |
| typedef struct FtpInput_ | FtpInput |
Functions | |
| SC_ATOMIC_DECLARE (uint64_t, ftp_memuse) | |
| SC_ATOMIC_DECLARE (uint64_t, ftp_memcap) | |
| uint64_t | FTPMemuseGlobalCounter (void) |
| uint64_t | FTPMemcapGlobalCounter (void) |
| int | FTPSetMemcap (uint64_t size) |
| void | RegisterFTPParsers (void) |
| uint16_t | JsonGetNextLineFromBuffer (const char *buffer, const uint16_t len) |
| bool | EveFTPDataAddMetadata (void *vtx, SCJsonBuilder *jb) |
| void | FTPParserCleanup (void) |
| Free memory allocated for global FTP parser state. More... | |
| void | FTPParserRegisterTests (void) |
Variables | |
| uint64_t | ftp_config_memcap = 0 |
| uint32_t | ftp_config_maxtx = 1024 |
| uint32_t | ftp_max_line_len = 4096 |
App Layer Parser for FTP
Definition in file app-layer-ftp.c.
| #define FTP_MPM mpm_default_matcher |
Definition at line 49 of file app-layer-ftp.c.
| typedef struct FTPThreadCtx_ FTPThreadCtx |
| bool EveFTPDataAddMetadata | ( | void * | vtx, |
| SCJsonBuilder * | jb | ||
| ) |
Definition at line 1383 of file app-layer-ftp.c.
References FtpDataState_::command, FtpDataState_::file_len, FtpDataState_::file_name, and JB_SET_STRING.
| uint64_t FTPMemcapGlobalCounter | ( | void | ) |
Definition at line 85 of file app-layer-ftp.c.
References SC_ATOMIC_GET.
Referenced by AppLayerRegisterGlobalCounters().

| uint64_t FTPMemuseGlobalCounter | ( | void | ) |
Definition at line 79 of file app-layer-ftp.c.
References SC_ATOMIC_GET.
Referenced by AppLayerRegisterGlobalCounters().

| void FTPParserCleanup | ( | void | ) |
Free memory allocated for global FTP parser state.
Definition at line 1408 of file app-layer-ftp.c.
| void FTPParserRegisterTests | ( | void | ) |
Definition at line 1547 of file app-layer-ftp.c.
References UtRegisterTest().

| int FTPSetMemcap | ( | uint64_t | size | ) |
Definition at line 91 of file app-layer-ftp.c.
References SC_ATOMIC_GET, and SC_ATOMIC_SET.
| uint16_t JsonGetNextLineFromBuffer | ( | const char * | buffer, |
| const uint16_t | len | ||
| ) |
Definition at line 1373 of file app-layer-ftp.c.
References len.
| void RegisterFTPParsers | ( | void | ) |
FTP
Definition at line 1272 of file app-layer-ftp.c.
References ALPROTO_FTP, AppLayerProtoDetectRegisterProtocol(), and SCAppLayerProtoDetectConfProtoDetectionEnabled().

| SC_ATOMIC_DECLARE | ( | uint64_t | , |
| ftp_memcap | |||
| ) |
| SC_ATOMIC_DECLARE | ( | uint64_t | , |
| ftp_memuse | |||
| ) |
| uint32_t ftp_config_maxtx = 1024 |
Definition at line 53 of file app-layer-ftp.c.
| uint64_t ftp_config_memcap = 0 |
Definition at line 52 of file app-layer-ftp.c.
| uint32_t ftp_max_line_len = 4096 |
Definition at line 54 of file app-layer-ftp.c.