suricata
File_ Struct Reference

#include <util-file.h>

Collaboration diagram for File_:

Data Fields

uint16_t flags
 
uint16_t name_len
 
FileState state
 
StreamingBuffersb
 
uint64_t txid
 
uint32_t file_track_id
 
uint32_t file_store_id
 
int fd
 
uint8_t * name
 
struct File_next
 
uint64_t content_inspected
 
uint64_t content_stored
 
uint64_t size
 
uint64_t start
 
uint64_t end
 
uint32_t * sid
 
uint32_t sid_cnt
 
uint32_t sid_max
 

Detailed Description

Definition at line 64 of file util-file.h.

Field Documentation

uint64_t File_::content_inspected

used in pruning if FILE_USE_DETECT flag is set

Definition at line 88 of file util-file.h.

Referenced by FileTrackedSize().

uint64_t File_::content_stored

Definition at line 90 of file util-file.h.

Referenced by FileTrackedSize(), and OutputRegisterFiledataLogger().

uint64_t File_::end

Definition at line 93 of file util-file.h.

Referenced by FileSetRange(), and JsonBuildFileInfoRecord().

int File_::fd

file descriptor for filestore, not open if equal to -1

Definition at line 73 of file util-file.h.

Referenced by FileSetRange().

uint32_t File_::file_store_id

id used in store file name file.<id>

Definition at line 72 of file util-file.h.

Referenced by JsonBuildFileInfoRecord(), and OutputRegisterFiledataLogger().

uint32_t File_::file_track_id

id used by protocol parser. Optional only used if FILE_USE_TRACKID flag set

Definition at line 70 of file util-file.h.

Referenced by DetectFilestoreRegister(), FileAppendDataById(), FileAppendGAPById(), FileCloseFileById(), FileOpenFileWithId(), and FileStoreFileById().

uint16_t File_::name_len
uint32_t* File_::sid

Definition at line 95 of file util-file.h.

Referenced by DetectFilestoreRegister(), FileContainerFree(), and JsonBuildFileInfoRecord().

uint32_t File_::sid_cnt

Definition at line 96 of file util-file.h.

Referenced by DetectFilestoreRegister(), and JsonBuildFileInfoRecord().

uint32_t File_::sid_max

Definition at line 97 of file util-file.h.

Referenced by DetectFilestoreRegister().

uint64_t File_::size

Definition at line 91 of file util-file.h.

Referenced by FileCloseFilePtr(), FileContainerSetTx(), FileSetRange(), and FileTrackedSize().

uint64_t File_::start

Definition at line 92 of file util-file.h.

Referenced by FileSetRange(), and JsonBuildFileInfoRecord().

uint64_t File_::txid

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