ReactOS 0.4.16-dev-297-gc569aee
Collaboration diagram for DNS:

Macros

#define LWIP_DNS   0
 
#define DNS_TABLE_SIZE   4
 
#define DNS_MAX_NAME_LENGTH   256
 
#define DNS_MAX_SERVERS   2
 
#define DNS_MAX_RETRIES   4
 
#define DNS_DOES_NAME_CHECK   1
 
#define LWIP_DNS_SECURE   (LWIP_DNS_SECURE_RAND_XID | LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING | LWIP_DNS_SECURE_RAND_SRC_PORT)
 
#define LWIP_DNS_SECURE_RAND_XID   1
 
#define LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING   2
 
#define LWIP_DNS_SECURE_RAND_SRC_PORT   4
 
#define DNS_LOCAL_HOSTLIST   0
 
#define DNS_LOCAL_HOSTLIST_IS_DYNAMIC   0
 
#define LWIP_DNS_SUPPORT_MDNS_QUERIES   0
 

Detailed Description

Macro Definition Documentation

◆ DNS_DOES_NAME_CHECK

#define DNS_DOES_NAME_CHECK   1

DNS do a name checking between the query and the response.

Definition at line 1163 of file opt.h.

◆ DNS_LOCAL_HOSTLIST

#define DNS_LOCAL_HOSTLIST   0

DNS_LOCAL_HOSTLIST: Implements a local host-to-address list. If enabled, you have to define an initializer: #define DNS_LOCAL_HOSTLIST_INIT {DNS_LOCAL_HOSTLIST_ELEM("host_ip4", IPADDR4_INIT_BYTES(1,2,3,4)), \ DNS_LOCAL_HOSTLIST_ELEM("host_ip6", IPADDR6_INIT_HOST(123, 234, 345, 456)}

Instead, you can also use an external function: #define DNS_LOOKUP_LOCAL_EXTERN(name, namelen, addr, dns_addrtype) my_lookup_function(name, namelen, addr, dns_addrtype) with function signature: extern err_t my_lookup_function(const char *name, size_t namelen, ip_addr_t *addr, u8_t dns_addrtype) that looks up the IP address and returns ERR_OK if found (LWIP_DNS_ADDRTYPE_xxx is passed in dns_addrtype).

Definition at line 1190 of file opt.h.

◆ DNS_LOCAL_HOSTLIST_IS_DYNAMIC

#define DNS_LOCAL_HOSTLIST_IS_DYNAMIC   0

If this is turned on, the local host-list can be dynamically changed at runtime.

Definition at line 1196 of file opt.h.

◆ DNS_MAX_NAME_LENGTH

#define DNS_MAX_NAME_LENGTH   256

DNS maximum host name length supported in the name table.

Definition at line 1145 of file opt.h.

◆ DNS_MAX_RETRIES

#define DNS_MAX_RETRIES   4

DNS maximum number of retries when asking for a name, before "timeout".

Definition at line 1158 of file opt.h.

◆ DNS_MAX_SERVERS

#define DNS_MAX_SERVERS   2

The maximum of DNS servers The first server can be initialized automatically by defining DNS_SERVER_ADDRESS(ipaddr), where 'ipaddr' is an 'ip_addr_t*'

Definition at line 1153 of file opt.h.

◆ DNS_TABLE_SIZE

#define DNS_TABLE_SIZE   4

DNS maximum number of entries to maintain locally.

Definition at line 1140 of file opt.h.

◆ LWIP_DNS

#define LWIP_DNS   0

LWIP_DNS==1: Turn on DNS module. UDP must be available for DNS transport.

Definition at line 1135 of file opt.h.

◆ LWIP_DNS_SECURE

LWIP_DNS_SECURE: controls the security level of the DNS implementation Use all DNS security features by default. This is overridable but should only be needed by very small targets or when using against non standard DNS servers.

Definition at line 1171 of file opt.h.

◆ LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING

#define LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING   2

Definition at line 1176 of file opt.h.

◆ LWIP_DNS_SECURE_RAND_SRC_PORT

#define LWIP_DNS_SECURE_RAND_SRC_PORT   4

Definition at line 1177 of file opt.h.

◆ LWIP_DNS_SECURE_RAND_XID

#define LWIP_DNS_SECURE_RAND_XID   1

Definition at line 1175 of file opt.h.

◆ LWIP_DNS_SUPPORT_MDNS_QUERIES

#define LWIP_DNS_SUPPORT_MDNS_QUERIES   0

Set this to 1 to enable querying ".local" names via mDNS using a One-Shot Multicast DNS Query

Definition at line 1202 of file opt.h.