|
suricata
|

Go to the source code of this file.
Macros | |
| #define | DECODER_EVENTS_BUFFER_STEPS 8 |
Functions | |
| int | SCAppLayerGetEventIdByName (const char *event_name, SCEnumCharMap *table, uint8_t *event_id) |
| int | AppLayerGetEventInfoById (uint8_t event_id, const char **event_name, AppLayerEventType *event_type) |
| int | AppLayerGetPktEventInfo (const char *event_name, uint8_t *event_id) |
| void | SCAppLayerDecoderEventsSetEventRaw (AppLayerDecoderEvents **sevents, uint8_t event) |
| Set an app layer decoder event. More... | |
| void | AppLayerDecoderEventsResetEvents (AppLayerDecoderEvents *events) |
| void | SCAppLayerDecoderEventsFreeEvents (AppLayerDecoderEvents **events) |
| int | DetectEngineGetEventInfo (const char *event_name, uint8_t *event_id, AppLayerEventType *event_type) |
Variables | |
| SCEnumCharMap | app_layer_event_pkt_table [] |
| SCEnumCharMap | det_ctx_event_table [] |
Definition in file app-layer-events.c.
| #define DECODER_EVENTS_BUFFER_STEPS 8 |
Definition at line 88 of file app-layer-events.c.
| void AppLayerDecoderEventsResetEvents | ( | AppLayerDecoderEvents * | events | ) |
Definition at line 129 of file app-layer-events.c.
References AppLayerDecoderEvents_::cnt, and AppLayerDecoderEvents_::event_last_logged.
| int AppLayerGetEventInfoById | ( | uint8_t | event_id, |
| const char ** | event_name, | ||
| AppLayerEventType * | event_type | ||
| ) |
Definition at line 65 of file app-layer-events.c.
References app_layer_event_pkt_table, SCLogError, and SCMapEnumValueToName().

| int AppLayerGetPktEventInfo | ( | const char * | event_name, |
| uint8_t * | event_id | ||
| ) |
Definition at line 82 of file app-layer-events.c.
References app_layer_event_pkt_table, and SCAppLayerGetEventIdByName().

| int DetectEngineGetEventInfo | ( | const char * | event_name, |
| uint8_t * | event_id, | ||
| AppLayerEventType * | event_type | ||
| ) |
Definition at line 172 of file app-layer-events.c.
References det_ctx_event_table, and SCAppLayerGetEventIdByName().

| void SCAppLayerDecoderEventsFreeEvents | ( | AppLayerDecoderEvents ** | events | ) |
Definition at line 137 of file app-layer-events.c.
References SCFree.
Referenced by AppLayerParserStateFree(), and PacketDestructor().

| void SCAppLayerDecoderEventsSetEventRaw | ( | 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 96 of file app-layer-events.c.
References DECODER_EVENTS_BUFFER_STEPS, SCCalloc, and SCRealloc.
Referenced by AppLayerHandleUdp(), and DetectEngineSetEvent().

| int SCAppLayerGetEventIdByName | ( | const char * | event_name, |
| SCEnumCharMap * | table, | ||
| uint8_t * | event_id | ||
| ) |
Definition at line 30 of file app-layer-events.c.
References SCLogError, and SCMapEnumNameToValue().
Referenced by AppLayerGetPktEventInfo(), and DetectEngineGetEventInfo().


| SCEnumCharMap app_layer_event_pkt_table[] |
Definition at line 48 of file app-layer-events.c.
Referenced by AppLayerGetEventInfoById(), and AppLayerGetPktEventInfo().
| SCEnumCharMap det_ctx_event_table[] |
Definition at line 147 of file app-layer-events.c.
Referenced by DetectEngineGetEventInfo().