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

spo_alert_fast.c File Reference

#include "event.h"
#include "decode.h"
#include "debug.h"
#include "plugbase.h"
#include "spo_plugbase.h"
#include "parser.h"
#include "util.h"
#include "log.h"
#include "mstring.h"
#include "snort.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>

Go to the source code of this file.

Typedefs

typedef _SpoAlertFastData SpoAlertFastData

Functions

void AlertFastInit (u_char *)
SpoAlertFastDataParseAlertFastArgs (char *)
void AlertFastCleanExitFunc (int, void *)
void AlertFastRestartFunc (int, void *)
void AlertFast (Packet *, char *, void *, Event *)
void AlertFastSetup (void)


Typedef Documentation

typedef struct _SpoAlertFastData SpoAlertFastData
 


Function Documentation

void AlertFast Packet ,
char *  ,
void *  ,
Event
 

Definition at line 134 of file spo_alert_fast.c.

References _Packet::ah, _progvars::alert_interface_flag, bzero, _Packet::dp, _SpoAlertFastData::file, _Packet::frag_flag, _progvars::interface, _IPHdr::ip_dst, _IPHdr::ip_proto, _IPHdr::ip_src, _Packet::iph, NULL, _SpoAlertFastData::packet_flag, _Packet::pkth, PRINT_INTERFACE, PrintArpHeader(), PrintIPPkt(), PrintPriorityData(), protocol_names, pv, _Event::sig_generator, _Event::sig_id, _Event::sig_rev, _Packet::sp, TIMEBUF_SIZE, pcap_pkthdr::ts, and ts_print().

Referenced by AlertFastInit().

void AlertFastCleanExitFunc int  ,
void * 
 

Definition at line 280 of file spo_alert_fast.c.

References DEBUG_LOG, DEBUG_WRAP, and _SpoAlertFastData::file.

Referenced by AlertFastInit().

void AlertFastInit u_char *   ) 
 

Definition at line 115 of file spo_alert_fast.c.

References AddFuncToCleanExitList(), AddFuncToOutputList(), AddFuncToRestartList(), _progvars::alert_plugin_active, AlertFast(), AlertFastCleanExitFunc(), AlertFastRestartFunc(), DEBUG_INIT, DEBUG_WRAP, NT_OUTPUT_ALERT, ParseAlertFastArgs(), and pv.

Referenced by AlertFastSetup().

void AlertFastRestartFunc int  ,
void * 
 

Definition at line 290 of file spo_alert_fast.c.

References DEBUG_LOG, DEBUG_WRAP, and _SpoAlertFastData::file.

Referenced by AlertFastInit().

void AlertFastSetup void   ) 
 

Definition at line 95 of file spo_alert_fast.c.

References AlertFastInit(), DEBUG_INIT, DEBUG_WRAP, NT_OUTPUT_ALERT, and RegisterOutputPlugin().

Referenced by InitOutputPlugins().

SpoAlertFastData * ParseAlertFastArgs char *   ) 
 

Definition at line 237 of file spo_alert_fast.c.

References DEBUG_LOG, DEBUG_WRAP, FatalError(), _SpoAlertFastData::file, mSplit(), mSplitFree(), NULL, OpenAlertFile(), _SpoAlertFastData::packet_flag, ProcessFileOption(), SnortAlloc(), and strcasecmp.

Referenced by AlertFastInit().


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