Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

spo_plugbase.h File Reference

#include "event.h"
#include "decode.h"

Go to the source code of this file.

Defines

#define NT_OUTPUT_ALERT   0x1
#define NT_OUTPUT_LOG   0x2
#define NT_OUTPUT_SPECIAL   0x4

Typedefs

typedef _OutputKeywordNode OutputKeywordNode
typedef _OutputKeywordList OutputKeywordList
typedef _OutputFuncNode OutputFuncNode

Functions

void InitOutputPlugins ()
int ActivateOutputPlugin (char *plugin_name, char *plugin_options)
void RegisterOutputPlugin (char *, int, void(*func)(u_char *))
OutputKeywordNodeGetOutputPlugin (char *plugin_name)
void DumpOutputPlugins ()
void AddFuncToOutputList (void(*func)(Packet *, char *, void *, Event *), char node_type, void *arg)
void SetOutputList (void(*func)(Packet *, char *, void *, Event *), char node_type, void *arg)


Define Documentation

#define NT_OUTPUT_ALERT   0x1
 

Definition at line 30 of file spo_plugbase.h.

#define NT_OUTPUT_LOG   0x2
 

Definition at line 31 of file spo_plugbase.h.

#define NT_OUTPUT_SPECIAL   0x4
 

Definition at line 32 of file spo_plugbase.h.


Typedef Documentation

typedef struct _OutputFuncNode OutputFuncNode
 

typedef struct _OutputKeywordList OutputKeywordList
 

typedef struct _OutputKeywordNode OutputKeywordNode
 


Function Documentation

int ActivateOutputPlugin char *  plugin_name,
char *  plugin_options
 

Definition at line 627 of file plugbase.c.

References _OutputKeywordNode::func, GetOutputPlugin(), LogMessage(), _OutputKeywordNode::node_type, NT_OUTPUT_ALERT, NT_OUTPUT_LOG, NT_OUTPUT_SPECIAL, and NULL.

Referenced by ProcessAlertCommandLine(), and ProcessLogCommandLine().

void AddFuncToOutputList void(*)(Packet *, char *, void *, Event *)  func,
char  node_type,
void *  arg
 

Definition at line 821 of file plugbase.c.

References _ListHead::AlertList, AppendOutputFuncList(), FatalError(), _ListHead::LogList, NT_OUTPUT_ALERT, NT_OUTPUT_LOG, and NULL.

Referenced by AlertCSVInit(), AlertFastInit(), AlertFullInit(), AlertSyslogInit(), AlertUnixSockInit(), DatabaseInit(), LogAsciiInit(), LogNullInit(), LogTcpdumpInit(), SetOutputList(), UnifiedAlertInit(), UnifiedInit(), and UnifiedLogInit().

void DumpOutputPlugins  ) 
 

Definition at line 799 of file plugbase.c.

References _OutputKeywordList::entry, _OutputKeywordNode::func, _OutputKeywordNode::keyword, _OutputKeywordList::next, NULL, pv, and _progvars::quiet_flag.

Referenced by SnortMain().

OutputKeywordNode* GetOutputPlugin char *  plugin_name  ) 
 

Definition at line 699 of file plugbase.c.

References _OutputKeywordList::entry, FatalError(), _OutputKeywordNode::keyword, _OutputKeywordList::next, NULL, and strcasecmp.

Referenced by ActivateOutputPlugin(), and ParseOutputPlugin().

void InitOutputPlugins  ) 
 

Definition at line 593 of file plugbase.c.

References AlertCSVSetup(), AlertFastSetup(), AlertFullSetup(), AlertPreludeSetup(), AlertSFSocket_Setup(), AlertSyslogSetup(), AlertUnixSockSetup(), DatabaseSetup(), LogAsciiSetup(), LogMessage(), LogNullSetup(), LogTcpdumpSetup(), pv, _progvars::quiet_flag, and UnifiedSetup().

Referenced by SnortMain().

void RegisterOutputPlugin char *  ,
int  ,
void(*)(u_char *)  func
 

Definition at line 735 of file plugbase.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OutputKeywordList::entry, FatalError(), file_line, file_name, _OutputKeywordNode::func, _OutputKeywordNode::keyword, _OutputKeywordList::next, _OutputKeywordNode::node_type, NULL, and strcasecmp.

Referenced by AlertCSVSetup(), AlertFastSetup(), AlertFullSetup(), AlertSyslogSetup(), AlertUnixSockSetup(), DatabaseSetup(), LogAsciiSetup(), LogNullSetup(), LogTcpdumpSetup(), and UnifiedSetup().

void SetOutputList void(*)(Packet *, char *, void *, Event *)  func,
char  node_type,
void *  arg
 

Definition at line 886 of file plugbase.c.

References AddFuncToOutputList(), _OutputFuncNode::next, NT_OUTPUT_ALERT, NT_OUTPUT_LOG, and NULL.

Referenced by ProcessAlertCommandLine(), and ProcessLogCommandLine().


Generated on Sun May 14 14:51:27 2006 by  doxygen 1.4.2