suricata
|
Go to the source code of this file.
Data Structures | |
struct | PendingFile_ |
struct | PcapFileDirectoryVars_ |
Typedefs | |
typedef struct PendingFile_ | PendingFile |
typedef struct PcapFileDirectoryVars_ | PcapFileDirectoryVars |
Functions | |
void | CleanupPendingFile (PendingFile *pending) |
void | CleanupPcapFileDirectoryVars (PcapFileDirectoryVars *ptv) |
TmEcode | PcapDetermineDirectoryOrFile (char *filename, DIR **directory) |
TmEcode | PcapDirectoryDispatch (PcapFileDirectoryVars *ptv) |
Definition in file source-pcap-file-directory-helper.h.
typedef struct PcapFileDirectoryVars_ PcapFileDirectoryVars |
Data specific to a directory of pcap files
typedef struct PendingFile_ PendingFile |
void CleanupPcapFileDirectoryVars | ( | PcapFileDirectoryVars * | ptv | ) |
Cleanup resources associated with a PcapFileDirectoryVars object
ptv | Object to be cleaned up |
Definition at line 109 of file source-pcap-file-directory-helper.c.
References CleanupPcapFileFileVars(), CleanupPendingFile(), PcapFileDirectoryVars_::current_file, PcapFileDirectoryVars_::directory, PcapFileDirectoryVars_::filename, next, SCFree, PcapFileDirectoryVars_::shared, TAILQ_EMPTY, TAILQ_FIRST, and TAILQ_REMOVE.
void CleanupPendingFile | ( | PendingFile * | pending | ) |
Cleanup resources associated with a PendingFile object
pending | Object to be cleaned up |
Definition at line 100 of file source-pcap-file-directory-helper.c.
References PendingFile_::filename, and SCFree.
Referenced by CleanupPcapFileDirectoryVars().
TmEcode PcapDetermineDirectoryOrFile | ( | char * | filename, |
DIR ** | directory | ||
) |
Determine if a given string represents a file or directory. If a directory, populate the directory object.
filename | String to check |
directory | Directory point to populate if directory |
Definition at line 174 of file source-pcap-file-directory-helper.c.
References SCLogDebug, SCLogError, TM_ECODE_FAILED, and TM_ECODE_OK.
TmEcode PcapDirectoryDispatch | ( | PcapFileDirectoryVars * | ptv | ) |
Dispatch a directory for processing, where information for processing the directory is contained in a PcapFileDirectoryVars object
ptv | PcapFileDirectoryVars object containing information for processing the directory |
Definition at line 480 of file source-pcap-file-directory-helper.c.
References PcapFileDirectoryVars_::poll_interval, SCEnter, and PcapFileDirectoryVars_::should_loop.