mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Move DNS_MAX_RETRIES option from dns.c to opt.h
This commit is contained in:
parent
2c1a152880
commit
1fdc7571e0
@ -110,11 +110,6 @@ static u16_t dns_txid;
|
|||||||
#define DNS_PORT_ALLOWED(port) ((port) >= 1024)
|
#define DNS_PORT_ALLOWED(port) ((port) >= 1024)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** DNS maximum number of retries when asking for a name, before "timeout". */
|
|
||||||
#ifndef DNS_MAX_RETRIES
|
|
||||||
#define DNS_MAX_RETRIES 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** DNS resource record max. TTL (one week as default) */
|
/** DNS resource record max. TTL (one week as default) */
|
||||||
#ifndef DNS_MAX_TTL
|
#ifndef DNS_MAX_TTL
|
||||||
#define DNS_MAX_TTL 604800
|
#define DNS_MAX_TTL 604800
|
||||||
|
@ -1085,6 +1085,11 @@
|
|||||||
#define DNS_MAX_SERVERS 2
|
#define DNS_MAX_SERVERS 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** DNS maximum number of retries when asking for a name, before "timeout". */
|
||||||
|
#ifndef DNS_MAX_RETRIES || defined __DOXYGEN__
|
||||||
|
#define DNS_MAX_RETRIES 4
|
||||||
|
#endif
|
||||||
|
|
||||||
/** DNS do a name checking between the query and the response. */
|
/** DNS do a name checking between the query and the response. */
|
||||||
#if !defined DNS_DOES_NAME_CHECK || defined __DOXYGEN__
|
#if !defined DNS_DOES_NAME_CHECK || defined __DOXYGEN__
|
||||||
#define DNS_DOES_NAME_CHECK 1
|
#define DNS_DOES_NAME_CHECK 1
|
||||||
|
Loading…
Reference in New Issue
Block a user