Versions Compared

Key

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

...

DNSc Run-time Configuration Structure

 

Configuration Fields Description 

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