mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-30 21:32:46 +00:00
dns.h, dns.c, opt.h: move DNS options to the "right" place. Most visibles are the ones which have ram usage.
This commit is contained in:
parent
1dd1064051
commit
de11e7fd75
@ -19,6 +19,10 @@ HISTORY
|
|||||||
|
|
||||||
++ New features:
|
++ New features:
|
||||||
|
|
||||||
|
2007-12-12 Frédéric Bernon
|
||||||
|
* dns.h, dns.c, opt.h: move DNS options to the "right" place. Most visibles
|
||||||
|
are the one which have ram usage.
|
||||||
|
|
||||||
2007-12-05 Frédéric Bernon
|
2007-12-05 Frédéric Bernon
|
||||||
* netdb.c: add a LWIP_DNS_API_HOSTENT_STORAGE option to decide to use a static
|
* netdb.c: add a LWIP_DNS_API_HOSTENT_STORAGE option to decide to use a static
|
||||||
set of variables (=0) or a local one (=1). In this last case, your port should
|
set of variables (=0) or a local one (=1). In this last case, your port should
|
||||||
|
@ -92,31 +92,18 @@
|
|||||||
#define DNS_SERVER_PORT 53
|
#define DNS_SERVER_PORT 53
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* DNS maximum number of entries to maintain locally. */
|
|
||||||
#ifndef DNS_TABLE_SIZE
|
|
||||||
#define DNS_TABLE_SIZE 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** DNS maximum host name length supported in the name table. */
|
|
||||||
#ifndef DNS_MAX_NAME_LENGTH
|
|
||||||
#define DNS_MAX_NAME_LENGTH 256
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** DNS maximum number of retries when asking for a name, before "timeout". */
|
/** DNS maximum number of retries when asking for a name, before "timeout". */
|
||||||
#ifndef DNS_MAX_RETRIES
|
#ifndef DNS_MAX_RETRIES
|
||||||
#define DNS_MAX_RETRIES 4
|
#define DNS_MAX_RETRIES 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** DNS do a name checking between the query and the response. */
|
/** DNS resource record max. TTL (one week as default) */
|
||||||
#ifndef DNS_DOES_NAME_CHECK
|
#ifndef DNS_MAX_TTL
|
||||||
#define DNS_DOES_NAME_CHECK 1
|
#define DNS_MAX_TTL 604800
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** DNS use a local buffer if DNS_USES_STATIC_BUF=0, a static one if
|
/** DNS message max. size */
|
||||||
DNS_USES_STATIC_BUF=1, or a dynamic one if DNS_USES_STATIC_BUF=2. */
|
#define DNS_MSG_SIZE 512
|
||||||
#ifndef DNS_USES_STATIC_BUF
|
|
||||||
#define DNS_USES_STATIC_BUF 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* DNS protocol flags */
|
/* DNS protocol flags */
|
||||||
#define DNS_FLAG1_RESPONSE 0x80
|
#define DNS_FLAG1_RESPONSE 0x80
|
||||||
|
@ -38,22 +38,9 @@
|
|||||||
|
|
||||||
#if LWIP_DNS /* don't build if not configured for use in lwipopts.h */
|
#if LWIP_DNS /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
/** The maximum of DNS servers */
|
|
||||||
#ifndef DNS_MAX_SERVERS
|
|
||||||
#define DNS_MAX_SERVERS 2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** DNS resource record max. TTL (one week as default) */
|
|
||||||
#ifndef DNS_MAX_TTL
|
|
||||||
#define DNS_MAX_TTL 604800
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** DNS timer period */
|
/** DNS timer period */
|
||||||
#define DNS_TMR_INTERVAL 1000
|
#define DNS_TMR_INTERVAL 1000
|
||||||
|
|
||||||
/** DNS message max. size */
|
|
||||||
#define DNS_MSG_SIZE 512
|
|
||||||
|
|
||||||
/** DNS field TYPE used for "Resource Records" */
|
/** DNS field TYPE used for "Resource Records" */
|
||||||
#define DNS_RRTYPE_A 1 /* a host address */
|
#define DNS_RRTYPE_A 1 /* a host address */
|
||||||
#define DNS_RRTYPE_NS 2 /* an authoritative name server */
|
#define DNS_RRTYPE_NS 2 /* an authoritative name server */
|
||||||
|
@ -559,6 +559,32 @@
|
|||||||
#define LWIP_DNS 0
|
#define LWIP_DNS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** DNS maximum number of entries to maintain locally. */
|
||||||
|
#ifndef DNS_TABLE_SIZE
|
||||||
|
#define DNS_TABLE_SIZE 4
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** DNS maximum host name length supported in the name table. */
|
||||||
|
#ifndef DNS_MAX_NAME_LENGTH
|
||||||
|
#define DNS_MAX_NAME_LENGTH 256
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** The maximum of DNS servers */
|
||||||
|
#ifndef DNS_MAX_SERVERS
|
||||||
|
#define DNS_MAX_SERVERS 2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** DNS do a name checking between the query and the response. */
|
||||||
|
#ifndef DNS_DOES_NAME_CHECK
|
||||||
|
#define DNS_DOES_NAME_CHECK 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** DNS use a local buffer if DNS_USES_STATIC_BUF=0, a static one if
|
||||||
|
DNS_USES_STATIC_BUF=1, or a dynamic one if DNS_USES_STATIC_BUF=2. */
|
||||||
|
#ifndef DNS_USES_STATIC_BUF
|
||||||
|
#define DNS_USES_STATIC_BUF 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
---------------------------------
|
---------------------------------
|
||||||
---------- UDP options ----------
|
---------- UDP options ----------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user