suricata
app-layer-events.h File Reference
#include "decode.h"
#include "rust.h"
#include "util-enum.h"
Include dependency graph for app-layer-events.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AppLayerDecoderEvents_
 Data structure to store app layer decoder events. More...
 

Enumerations

enum  {
  APPLAYER_MISMATCH_PROTOCOL_BOTH_DIRECTIONS, APPLAYER_WRONG_DIRECTION_FIRST_DATA, APPLAYER_DETECT_PROTOCOL_ONLY_ONE_DIRECTION, APPLAYER_PROTO_DETECTION_SKIPPED,
  APPLAYER_NO_TLS_AFTER_STARTTLS, APPLAYER_UNEXPECTED_PROTOCOL
}
 

Functions

int AppLayerGetPktEventInfo (const char *event_name, uint8_t *event_id)
 
int AppLayerGetEventInfoById (uint8_t event_id, const char **event_name, AppLayerEventType *event_type)
 
void AppLayerDecoderEventsSetEventRaw (AppLayerDecoderEvents **sevents, uint8_t event)
 Set an app layer decoder event. More...
 
void AppLayerDecoderEventsResetEvents (AppLayerDecoderEvents *events)
 
void AppLayerDecoderEventsFreeEvents (AppLayerDecoderEvents **events)
 
int DetectEngineGetEventInfo (const char *event_name, uint8_t *event_id, AppLayerEventType *event_type)
 
int SCAppLayerGetEventIdByName (const char *event_name, SCEnumCharMap *table, uint8_t *event_id)
 

Detailed Description

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
APPLAYER_MISMATCH_PROTOCOL_BOTH_DIRECTIONS 
APPLAYER_WRONG_DIRECTION_FIRST_DATA 
APPLAYER_DETECT_PROTOCOL_ONLY_ONE_DIRECTION 
APPLAYER_PROTO_DETECTION_SKIPPED 
APPLAYER_NO_TLS_AFTER_STARTTLS 
APPLAYER_UNEXPECTED_PROTOCOL 

Definition at line 48 of file app-layer-events.h.

Function Documentation

◆ AppLayerDecoderEventsFreeEvents()

void AppLayerDecoderEventsFreeEvents ( AppLayerDecoderEvents **  events)

Definition at line 136 of file app-layer-events.c.

References SCFree.

Referenced by AppLayerParserStateFree(), and PacketDestructor().

Here is the caller graph for this function:

◆ AppLayerDecoderEventsResetEvents()

void AppLayerDecoderEventsResetEvents ( AppLayerDecoderEvents events)

◆ AppLayerDecoderEventsSetEventRaw()

void AppLayerDecoderEventsSetEventRaw ( AppLayerDecoderEvents **  sevents,
uint8_t  event 
)

Set an app layer decoder event.

Parameters
seventsPointer to a AppLayerDecoderEvents pointer. If *sevents is NULL memory will be allocated.
eventThe event to be stored.

Definition at line 94 of file app-layer-events.c.

References DECODER_EVENTS_BUFFER_STEPS, SCCalloc, and SCRealloc.

Referenced by AppLayerHandleUdp(), and DetectEngineSetEvent().

Here is the caller graph for this function:

◆ AppLayerGetEventInfoById()

int AppLayerGetEventInfoById ( uint8_t  event_id,
const char **  event_name,
AppLayerEventType *  event_type 
)

Definition at line 63 of file app-layer-events.c.

References app_layer_event_pkt_table, SCLogError, and SCMapEnumValueToName().

Here is the call graph for this function:

◆ AppLayerGetPktEventInfo()

int AppLayerGetPktEventInfo ( const char *  event_name,
uint8_t *  event_id 
)

Definition at line 80 of file app-layer-events.c.

References app_layer_event_pkt_table, and SCAppLayerGetEventIdByName().

Here is the call graph for this function:

◆ DetectEngineGetEventInfo()

int DetectEngineGetEventInfo ( const char *  event_name,
uint8_t *  event_id,
AppLayerEventType *  event_type 
)

Definition at line 167 of file app-layer-events.c.

References det_ctx_event_table, and SCAppLayerGetEventIdByName().

Here is the call graph for this function:

◆ SCAppLayerGetEventIdByName()

int SCAppLayerGetEventIdByName ( const char *  event_name,
SCEnumCharMap table,
uint8_t *  event_id 
)

Definition at line 28 of file app-layer-events.c.

References SCLogError, and SCMapEnumNameToValue().

Referenced by AppLayerGetPktEventInfo(), and DetectEngineGetEventInfo().

Here is the call graph for this function:
Here is the caller graph for this function: