suricata
|
#include "suricata-common.h"
#include "decode.h"
#include "flow.h"
#include "app-layer-events.h"
#include "app-layer-parser.h"
#include "util-enum.h"
Go to the source code of this file.
Macros | |
#define | DECODER_EVENTS_BUFFER_STEPS 8 |
Functions | |
int | AppLayerGetEventInfoById (int event_id, const char **event_name, AppLayerEventType *event_type) |
int | AppLayerGetPktEventInfo (const char *event_name, int *event_id) |
void | AppLayerDecoderEventsSetEventRaw (AppLayerDecoderEvents **sevents, uint8_t event) |
Set an app layer decoder event. More... | |
void | AppLayerDecoderEventsResetEvents (AppLayerDecoderEvents *events) |
void | AppLayerDecoderEventsFreeEvents (AppLayerDecoderEvents **events) |
Variables | |
SCEnumCharMap | app_layer_event_pkt_table [] |
Definition in file app-layer-events.c.
#define DECODER_EVENTS_BUFFER_STEPS 8 |
Definition at line 81 of file app-layer-events.c.
void AppLayerDecoderEventsFreeEvents | ( | AppLayerDecoderEvents ** | events | ) |
Definition at line 130 of file app-layer-events.c.
References SCFree.
Referenced by AppLayerParserStateFree(), and InitGlobal().
void AppLayerDecoderEventsResetEvents | ( | AppLayerDecoderEvents * | events | ) |
Definition at line 123 of file app-layer-events.c.
References AppLayerDecoderEvents_::cnt.
void AppLayerDecoderEventsSetEventRaw | ( | AppLayerDecoderEvents ** | sevents, |
uint8_t | event | ||
) |
Set an app layer decoder event.
sevents | Pointer to a AppLayerDecoderEvents pointer. If *sevents is NULL memory will be allocated. |
event | The event to be stored. |
Definition at line 89 of file app-layer-events.c.
References DECODER_EVENTS_BUFFER_STEPS, SCMalloc, and SCRealloc.
Referenced by DetectEngineSetEvent(), InitGlobal(), and SSLSetEvent().
int AppLayerGetEventInfoById | ( | int | event_id, |
const char ** | event_name, | ||
AppLayerEventType * | event_type | ||
) |
Definition at line 51 of file app-layer-events.c.
References app_layer_event_pkt_table, APP_LAYER_EVENT_TYPE_PACKET, SC_ERR_INVALID_ENUM_MAP, SCLogError, and SCMapEnumValueToName().
int AppLayerGetPktEventInfo | ( | const char * | event_name, |
int * | event_id | ||
) |
Definition at line 67 of file app-layer-events.c.
References app_layer_event_pkt_table, SC_ERR_INVALID_ENUM_MAP, SCLogError, and SCMapEnumNameToValue().
SCEnumCharMap app_layer_event_pkt_table[] |
Definition at line 34 of file app-layer-events.c.
Referenced by AppLayerGetEventInfoById(), and AppLayerGetPktEventInfo().