#include "decode.h"
Go to the source code of this file.
Defines | |
#define | SNORT_EVENTQ_PRIORITY 1 |
#define | SNORT_EVENTQ_CONTENT_LEN 2 |
Typedefs | |
typedef s_SNORT_EVENTQ_USER | SNORT_EVENTQ_USER |
typedef s_SNORT_EVENT_QUEUE | SNORT_EVENT_QUEUE |
typedef _EventNode | EventNode |
Functions | |
int | SnortEventqInit (void) |
void | SnortEventqReset (void) |
int | SnortEventqLog (Packet *) |
int | SnortEventqAdd (unsigned int gid, unsigned int sid, unsigned int rev, unsigned int classification, unsigned int pri, char *msg, void *rule_info) |
|
Definition at line 7 of file event_queue.h. Referenced by ProcessEventQueue(), and SnortEventqInit(). |
|
Definition at line 6 of file event_queue.h. Referenced by ProcessEventQueue(), and SnortEventqInit(). |
|
|
|
|
|
|
|
|
Definition at line 127 of file event_queue.c. References FatalError(), int(), s_SNORT_EVENT_QUEUE::log_events, s_SNORT_EVENT_QUEUE::max_events, NULL, s_SNORT_EVENT_QUEUE::order, OrderContentLength(), OrderPriority(), sfeventq_init(), SNORT_EVENTQ_CONTENT_LEN, and SNORT_EVENTQ_PRIORITY. Referenced by SnortMain(). |
|
We return whether we logged events or not. We've add a eventq user structure so we can track whether the events logged we're rule events or preprocessor/decoder events. The reason being that we don't want to flush a TCP stream for preprocessor/decoder events, and cause early flushing of the stream.
Definition at line 205 of file event_queue.c. References LogSnortEvents(), s_SNORT_EVENTQ_USER::pkt, s_SNORT_EVENTQ_USER::rule_alert, and sfeventq_action(). Referenced by Preprocess(). |
|
Definition at line 221 of file event_queue.c. References sfeventq_reset(). Referenced by PcapProcessPacket(), and Preprocess(). |