suricata
app-layer-ftp.h File Reference
#include "rust.h"
Include dependency graph for app-layer-ftp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FtpLineState_
 
struct  FTPString_
 
struct  FtpCommandInfo_
 
struct  FTPTransaction_
 
struct  FtpState_
 
struct  FtpDataState_
 

Typedefs

typedef uint32_t FtpRequestCommandArgOfs
 
typedef struct FtpLineState_ FtpLineState
 
typedef struct FTPString_ FTPString
 
typedef struct FtpCommandInfo_ FtpCommandInfo
 
typedef struct FTPTransaction_ FTPTransaction
 
typedef struct FtpState_ FtpState
 
typedef struct FtpDataState_ FtpDataState
 

Functions

void RegisterFTPParsers (void)
 
void FTPParserRegisterTests (void)
 
void FTPParserCleanup (void)
 Free memory allocated for global FTP parser state. More...
 
int FTPSetMemcap (uint64_t size)
 
uint64_t FTPMemuseGlobalCounter (void)
 
uint64_t FTPMemcapGlobalCounter (void)
 
uint16_t JsonGetNextLineFromBuffer (const char *buffer, const uint16_t len)
 
bool EveFTPDataAddMetadata (void *vtx, JsonBuilder *jb)
 

Detailed Description

Typedef Documentation

◆ FtpCommandInfo

◆ FtpDataState

typedef struct FtpDataState_ FtpDataState

FTP Data State for app layer parser

◆ FtpLineState

typedef struct FtpLineState_ FtpLineState

used to hold the line state when we have fragmentation.

◆ FtpRequestCommandArgOfs

typedef uint32_t FtpRequestCommandArgOfs

Definition at line 32 of file app-layer-ftp.h.

◆ FtpState

typedef struct FtpState_ FtpState

FTP State for app layer parser

◆ FTPString

typedef struct FTPString_ FTPString

◆ FTPTransaction

Function Documentation

◆ EveFTPDataAddMetadata()

bool EveFTPDataAddMetadata ( void *  vtx,
JsonBuilder *  jb 
)

◆ FTPMemcapGlobalCounter()

uint64_t FTPMemcapGlobalCounter ( void  )

Definition at line 83 of file app-layer-ftp.c.

References SC_ATOMIC_GET.

Referenced by AppLayerRegisterGlobalCounters().

Here is the caller graph for this function:

◆ FTPMemuseGlobalCounter()

uint64_t FTPMemuseGlobalCounter ( void  )

Definition at line 77 of file app-layer-ftp.c.

References SC_ATOMIC_GET.

Referenced by AppLayerRegisterGlobalCounters().

Here is the caller graph for this function:

◆ FTPParserCleanup()

void FTPParserCleanup ( void  )

Free memory allocated for global FTP parser state.

Definition at line 1393 of file app-layer-ftp.c.

◆ FTPParserRegisterTests()

void FTPParserRegisterTests ( void  )

Definition at line 1528 of file app-layer-ftp.c.

References UtRegisterTest().

Here is the call graph for this function:

◆ FTPSetMemcap()

int FTPSetMemcap ( uint64_t  size)

Definition at line 89 of file app-layer-ftp.c.

References SC_ATOMIC_GET, and SC_ATOMIC_SET.

◆ JsonGetNextLineFromBuffer()

uint16_t JsonGetNextLineFromBuffer ( const char *  buffer,
const uint16_t  len 
)

Definition at line 1358 of file app-layer-ftp.c.

References len.

Referenced by EveFTPLogCommand().

Here is the caller graph for this function:

◆ RegisterFTPParsers()

void RegisterFTPParsers ( void  )

FTP

Definition at line 1259 of file app-layer-ftp.c.

References ALPROTO_FTP, AppLayerProtoDetectConfProtoDetectionEnabled(), and AppLayerProtoDetectRegisterProtocol().

Here is the call graph for this function: