source-pcap-file-directory-helper.h File Reference
#include "suricata-common.h"
#include "source-pcap-file-helper.h"
#include "queue.h"
Include dependency graph for source-pcap-file-directory-helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PendingFile_
struct  PcapFileDirectoryVars_


typedef struct PendingFile_ PendingFile
typedef struct PcapFileDirectoryVars_ PcapFileDirectoryVars


void CleanupPendingFile (PendingFile *pending)
void CleanupPcapFileDirectoryVars (PcapFileDirectoryVars *ptv)
TmEcode PcapDetermineDirectoryOrFile (char *filename, DIR **directory)
TmEcode PcapDirectoryDispatch (PcapFileDirectoryVars *ptv)

Detailed Description

Typedef Documentation

Data specific to a directory of pcap files

typedef struct PendingFile_ PendingFile

Function Documentation

void CleanupPcapFileDirectoryVars ( PcapFileDirectoryVars ptv)
void CleanupPendingFile ( PendingFile pending)

Cleanup resources associated with a PendingFile object

pendingObject to be cleaned up

Definition at line 95 of file source-pcap-file-directory-helper.c.

References PendingFile_::filename, and SCFree.

Referenced by CleanupPcapFileDirectoryVars(), and PcapDetermineDirectoryOrFile().

Here is the caller graph for this function:

TmEcode PcapDetermineDirectoryOrFile ( char *  filename,
DIR **  directory 
TmEcode PcapDirectoryDispatch ( PcapFileDirectoryVars ptv)

Dispatch a directory for processing, where information for processing the directory is contained in a PcapFileDirectoryVars object

ptvPcapFileDirectoryVars object containing information for processing the directory

Definition at line 496 of file source-pcap-file-directory-helper.c.

References PcapFileDirectoryVars_::delay, PcapFileDirectoryVars_::filename, PcapFileSharedVars_::last_processed, PcapDetermineDirectoryOrFile(), PcapFileDirectoryVars_::poll_interval, SC_ERR_PCAP_DISPATCH, SCEnter, SCLogDebug, SCLogError, SCLogInfo, SCReturnInt, SCTimespecAsEpochMillis(), PcapFileDirectoryVars_::shared, PcapFileDirectoryVars_::should_loop, StatsSyncCountersIfSignalled, TM_ECODE_DONE, TM_ECODE_FAILED, TM_ECODE_OK, and PcapFileSharedVars_::tv.

Referenced by PcapFileGlobalInit().

Here is the call graph for this function:

Here is the caller graph for this function: