suricata
app-layer-dns-common.c File Reference
Include dependency graph for app-layer-dns-common.c:

Go to the source code of this file.

Functions

int DNSStateGetEventInfo (const char *event_name, int *event_id, AppLayerEventType *event_type)
 
int DNSStateGetEventInfoById (int event_id, const char **event_name, AppLayerEventType *event_type)
 
void DNSAppLayerRegisterGetEventInfo (uint8_t ipproto, AppProto alproto)
 
void DNSAppLayerRegisterGetEventInfoById (uint8_t ipproto, AppProto alproto)
 
void DNSCreateTypeString (uint16_t type, char *str, size_t str_size)
 
void DNSCreateRcodeString (uint8_t rcode, char *str, size_t str_size)
 

Variables

SCEnumCharMap dns_decoder_event_table []
 

Detailed Description

Function Documentation

void DNSAppLayerRegisterGetEventInfo ( uint8_t  ipproto,
AppProto  alproto 
)

Definition at line 71 of file app-layer-dns-common.c.

References AppLayerParserRegisterGetEventInfo(), and DNSStateGetEventInfo().

Referenced by RegisterDNSTCPParsers(), and RegisterDNSUDPParsers().

Here is the call graph for this function:

Here is the caller graph for this function:

void DNSAppLayerRegisterGetEventInfoById ( uint8_t  ipproto,
AppProto  alproto 
)

Definition at line 78 of file app-layer-dns-common.c.

References AppLayerParserRegisterGetEventInfoById(), and DNSStateGetEventInfoById().

Referenced by RegisterDNSTCPParsers(), and RegisterDNSUDPParsers().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 39 of file app-layer-dns-common.c.

References APP_LAYER_EVENT_TYPE_TRANSACTION, SC_ERR_INVALID_ENUM_MAP, SCLogError, and SCMapEnumNameToValue().

Referenced by DNSAppLayerRegisterGetEventInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 55 of file app-layer-dns-common.c.

References APP_LAYER_EVENT_TYPE_TRANSACTION, SC_ERR_INVALID_ENUM_MAP, SCLogError, and SCMapEnumValueToName().

Referenced by DNSAppLayerRegisterGetEventInfoById().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation