suricata
app-layer-dns-tcp.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "debug.h"
#include "decode.h"
#include "flow-util.h"
#include "threads.h"
#include "util-print.h"
#include "util-pool.h"
#include "util-debug.h"
#include "stream-tcp-private.h"
#include "stream-tcp-reassemble.h"
#include "stream-tcp.h"
#include "stream.h"
#include "app-layer-protos.h"
#include "app-layer-parser.h"
#include "util-spm.h"
#include "util-unittest.h"
#include "app-layer-dns-tcp.h"
#include "util-unittest-helper.h"
Include dependency graph for app-layer-dns-tcp.c:

Go to the source code of this file.

Data Structures

struct  DNSTcpHeader_
 

Typedefs

typedef struct DNSTcpHeader_ DNSTcpHeader
 

Functions

struct DNSTcpHeader_ __attribute__ ((__packed__))
 DNP3 link header. More...
 
void RegisterDNSTCPParsers (void)
 
void DNSTCPParserRegisterTests (void)
 

Variables

uint16_t len
 
uint16_t tx_id
 
uint16_t flags
 
uint16_t questions
 
uint16_t answer_rr
 
uint16_t authority_rr
 
uint16_t additional_rr
 

Detailed Description

Typedef Documentation

typedef struct DNSTcpHeader_ DNSTcpHeader

Definition at line 64 of file app-layer-dns-tcp.c.

Function Documentation

struct DNSTcpHeader_ __attribute__ ( (__packed__)  )

DNP3 link header.

DNS packet header.

Unified2 Extra Data Header Unified2 Extra Data (currently used only for XFF)

DNS packet header.

DNP3 internal indicators.

DNP3 application header.

Part of the application header for responses only.

Unified2 Extra Data Header Unified2 Extra Data (currently used only for XFF)

Definition at line 92 of file alert-unified2-alert.c.

void DNSTCPParserRegisterTests ( void  )

Definition at line 896 of file app-layer-dns-tcp.c.

References UtRegisterTest().

Referenced by RegisterDNSTCPParsers().

Here is the call graph for this function:

Here is the caller graph for this function:

void RegisterDNSTCPParsers ( void  )

DNS

Definition at line 698 of file app-layer-dns-tcp.c.

References Flow_::alproto, ALPROTO_DNS, Flow_::alstate, APP_LAYER_PARSER_OPT_ACCEPT_GAPS, AppLayerParserConfParserEnabled(), AppLayerParserRegisterDetectFlagsFuncs(), AppLayerParserRegisterDetectStateFuncs(), AppLayerParserRegisterGetEventsFunc(), AppLayerParserRegisterGetStateProgressCompletionStatus(), AppLayerParserRegisterGetStateProgressFunc(), AppLayerParserRegisterGetTx(), AppLayerParserRegisterGetTxCnt(), AppLayerParserRegisterLoggerFuncs(), AppLayerParserRegisterOptionFlags(), AppLayerParserRegisterParser(), AppLayerParserRegisterProtocolUnittests(), AppLayerParserRegisterStateFuncs(), AppLayerParserRegisterTxFreeFunc(), AppLayerProtoDetectConfProtoDetectionEnabled(), AppLayerProtoDetectPPParseConfPorts(), AppLayerProtoDetectPPRegister(), AppLayerProtoDetectRegisterProtocol(), DNSAppLayerRegisterGetEventInfo(), DNSGetAlstateProgress(), DNSGetAlstateProgressCompletionStatus(), DNSGetEvents(), DNSGetTx(), DNSGetTxCnt(), DNSGetTxDetectFlags(), DNSGetTxDetectState(), DNSGetTxLogged(), DNSSetTxDetectFlags(), DNSSetTxDetectState(), DNSSetTxLogged(), DNSStateAlloc(), DNSStateFree(), DNSStateTransactionFree(), DNSTCPParserRegisterTests(), FAIL_IF, FAIL_IF_NOT, FAIL_IF_NULL, PASS, Flow_::proto, RegisterRustDNSTCPParsers(), RunmodeIsUnittests(), SC_ERR_DNS_CONFIG, SCLogInfo, SCLogWarning, STREAM_START, STREAM_TOCLIENT, STREAM_TOSERVER, DNSState_::transaction_max, UTHBuildFlow(), and UTHFreeFlow().

Referenced by AppLayerParserRegisterProtocolParsers(), and RegisterAllModules().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

uint16_t additional_rr

Definition at line 28 of file app-layer-dns-tcp.c.

uint16_t answer_rr

Definition at line 26 of file app-layer-dns-tcp.c.

uint16_t authority_rr

Definition at line 27 of file app-layer-dns-tcp.c.

uint16_t flags

Definition at line 24 of file app-layer-dns-tcp.c.

uint16_t len

Definition at line 22 of file app-layer-dns-tcp.c.

uint16_t questions

Definition at line 25 of file app-layer-dns-tcp.c.

uint16_t tx_id

Definition at line 23 of file app-layer-dns-tcp.c.