Move DNS_MAX_RETRIES option from dns.c to opt.h

This commit is contained in:
Dirk Ziegelmeier 2017-11-13 22:52:39 +01:00
parent 2c1a152880
commit 1fdc7571e0
2 changed files with 5 additions and 5 deletions

View File

@ -110,11 +110,6 @@ static u16_t dns_txid;
#define DNS_PORT_ALLOWED(port) ((port) >= 1024)
#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) */
#ifndef DNS_MAX_TTL
#define DNS_MAX_TTL 604800

View File

@ -1085,6 +1085,11 @@
#define DNS_MAX_SERVERS 2
#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. */
#if !defined DNS_DOES_NAME_CHECK || defined __DOXYGEN__
#define DNS_DOES_NAME_CHECK 1