suricata
app-layer-events.h File Reference
#include "decode.h"
#include "rust.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, int *event_id)
 
int AppLayerGetEventInfoById (int 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, int *event_id, AppLayerEventType *event_type)
 

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 47 of file app-layer-events.h.

Function Documentation

◆ AppLayerDecoderEventsFreeEvents()

void AppLayerDecoderEventsFreeEvents ( AppLayerDecoderEvents **  events)

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

◆ AppLayerDecoderEventsResetEvents()

void AppLayerDecoderEventsResetEvents ( AppLayerDecoderEvents events)

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

◆ 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 91 of file app-layer-events.c.

References DECODER_EVENTS_BUFFER_STEPS, SCCalloc, and SCRealloc.

Referenced by DetectEngineSetEvent().

Here is the caller graph for this function:

◆ AppLayerGetEventInfoById()

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, SCLogError, and SCMapEnumValueToName().

Here is the call graph for this function:

◆ AppLayerGetPktEventInfo()

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

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

References app_layer_event_pkt_table, SCLogError, and SCMapEnumNameToValue().

Here is the call graph for this function:

◆ DetectEngineGetEventInfo()

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

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

References det_ctx_event_table, SCLogError, and SCMapEnumNameToValue().

Here is the call graph for this function: