suricata
DNSState_ Struct Reference

Per flow DNS state container. More...

#include <app-layer-dns-common.h>

Collaboration diagram for DNSState_:

Public Member Functions

 TAILQ_HEAD (, DNSTransaction_) tx_list
 

Data Fields

DNSTransactioncurr
 
DNSTransactioniter
 
uint64_t transaction_max
 
uint32_t unreplied_cnt
 
uint32_t memuse
 
struct timeval last_req
 
struct timeval last_resp
 
uint16_t window
 
uint16_t events
 
uint16_t givenup
 
uint16_t offset
 
uint16_t record_len
 
uint8_t gap_ts
 
uint8_t gap_tc
 
uint8_t * buffer
 

Detailed Description

Per flow DNS state container.

Definition at line 220 of file app-layer-dns-common.h.

Member Function Documentation

DNSState_::TAILQ_HEAD ( DNSTransaction_  )

transaction list

Field Documentation

uint8_t* DNSState_::buffer

Definition at line 243 of file app-layer-dns-common.h.

Referenced by DNSStateFree().

uint16_t DNSState_::events

Definition at line 235 of file app-layer-dns-common.h.

Referenced by DNSSetEvent(), and DNSStateTransactionFree().

uint8_t DNSState_::gap_tc

Flag set when a gap has occurred.

Definition at line 242 of file app-layer-dns-common.h.

uint8_t DNSState_::gap_ts

Flag set when a gap has occurred.

Definition at line 241 of file app-layer-dns-common.h.

uint16_t DNSState_::givenup

Definition at line 236 of file app-layer-dns-common.h.

Referenced by DNSStoreQueryInState(), and RegisterDNSUDPParsers().

DNSTransaction* DNSState_::iter

Definition at line 223 of file app-layer-dns-common.h.

Referenced by DNSGetTx(), and DNSSetEvent().

struct timeval DNSState_::last_req

Timestamp of last request.

Definition at line 228 of file app-layer-dns-common.h.

struct timeval DNSState_::last_resp

Timestamp of last response.

Definition at line 229 of file app-layer-dns-common.h.

uint32_t DNSState_::memuse

state memuse, for comparing with state-memcap settings

Definition at line 226 of file app-layer-dns-common.h.

Referenced by DNSCheckMemcap(), DNSDecrMemcap(), DNSIncrMemcap(), and DNSStateFree().

uint16_t DNSState_::offset

Definition at line 239 of file app-layer-dns-common.h.

uint16_t DNSState_::record_len

Definition at line 240 of file app-layer-dns-common.h.

uint32_t DNSState_::unreplied_cnt

number of unreplied requests in a row

Definition at line 225 of file app-layer-dns-common.h.

Referenced by DNSStoreQueryInState(), and RegisterDNSUDPParsers().

uint16_t DNSState_::window

Window of allowed unreplied requests. Set by the maximum number of subsequent requests without a response.

Definition at line 231 of file app-layer-dns-common.h.

Referenced by DNSTransactionFindByTxId(), and RegisterDNSUDPParsers().


The documentation for this struct was generated from the following file: