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

event_wrapper.c File Reference

generate a snort event More...

#include "util.h"
#include "event_wrapper.h"

Go to the source code of this file.

Functions

u_int32_t GenerateSnortEvent (Packet *p, u_int32_t gen_id, u_int32_t sig_id, u_int32_t sig_rev, u_int32_t classification, u_int32_t priority, char *msg)
int LogTagData (Packet *p, u_int32_t gen_id, u_int32_t sig_id, u_int32_t sig_rev, u_int32_t classification, u_int32_t priority, u_int32_t event_ref, time_t ref_sec, char *msg)


Detailed Description

generate a snort event

Author:
Chris Green <cmg@sourcefire.com>
Date:
Wed Jun 18 10:49:59 2003
This is a wrapper around SetEvent,CallLogFuncs,CallEventFuncs

Definition in file event_wrapper.c.


Function Documentation

u_int32_t GenerateSnortEvent Packet p,
u_int32_t  gen_id,
u_int32_t  sig_id,
u_int32_t  sig_rev,
u_int32_t  classification,
u_int32_t  priority,
char *  msg
 

Definition at line 18 of file event_wrapper.c.

References CallAlertFuncs(), CallLogFuncs(), _Event::event_id, NULL, and SetEvent().

Referenced by flowps_generate_flow_event(), GeneratePSSnortEvent(), and LogSnortEvents().

int LogTagData Packet p,
u_int32_t  gen_id,
u_int32_t  sig_id,
u_int32_t  sig_rev,
u_int32_t  classification,
u_int32_t  priority,
u_int32_t  event_ref,
time_t  ref_sec,
char *  msg
 

Log additional packet data using the same kinda mechanism tagging does.

Parameters:
p Packet to log
gen_id generator id
sig_id signature id
sig_rev revision is
classification classification id
priority priority level
event_ref reference of a previous event
ref_sec the tv_sec of that previous event
msg The message data txt
Returns:
1 on success, 0 on FAILURE ( note this is to stay the same as GenerateSnortEvent() )

Definition at line 81 of file event_wrapper.c.

References CallLogFuncs(), NULL, _Event::ref_time, and SetEvent().


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