Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
const  DNSc_CFG  DNSc_Cfg = {
    /* ---------------- MEMORY ALLOCATION ---------------- */
    DEF_NULL,                       /* .MemSegPtr          */
 
    /* ----------------- DEFAULT SERVER ------------------ */
   "8.8.8.8",                       /* .ServerDfltPtr      */
 
    /* --------------- CACHE CONFIGURATION --------------- */
    255,                            /* .HostNameLenMax     */
    2,                              /* .CacheEntriesMaxNbr */
    1,                              /* .AddrIPv4MaxPerHost */
    1,                              /* .AddrIPv6MaxPerHost */
 
    /* -------------- REQUEST CONFIGURATION -------------- */
    DNSc_DFLT_TASK_DLY_MS,          /* .TaskDly_ms         */
    DNSc_DFLT_REQ_RETRY_NBR_MAX,    /* .ReqRetryNbrMax     */
    DNSc_DFLT_REQ_RETRY_TIMEOUT_MS, /* .ReqRetryTimeout_ms */
};

Configuration Fields Description 

Testtest
testtest
test
  
 
tes


Memory allocation configuration

 

Structure Field

Type

Description

Possible Values

MemSegPtr

MEM_SEG

 

DEF_NULL to allocate the memory from the HEAP

Pointer to a memory segment to allocate from (see µC/LIB - Memory Segments)

Default DNS server configuration

Structure Field

Type

Description

Possible Values

ServerDfltPtr

CPU_CHAR

 

Pointer to a string that contains the IP address.

Cache configuration

Structure Field

Type

Description

Possible Values

HostNameLenMax

CPU_INT16U

 

MUST be >= 2

CacheEntriesMaxNbr

CPU_INT08U

 

MUST be >= 1

AddrIPv4MaxPerHost

CPU_INT08U

 

MUST be >= 0

AddrIPv6MaxPerHost

CPU_INT08U

 

MUST be >= 0

Request configuration

Structure Field

Type

Description

Possible Values

TaskDly_ms

CPU_INT08U

 

Default value: [DNSc_DFLT_TASK_DLY_MS] = 50ms

MUST be >= 1

ReqRetryNbrMax

CPU_INT08U

 

Default value: [DNSc_DFLT_REQ_RETRY_NBR_MAX] = 2 

MUST be >= 1

ReqRetryTimeout_ms

CPU_INT16U

 

Default value: [DNSc_DFLT_REQ_RETRY_TIMEOUT_MS] = 1000ms

MUST be >= 100