mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 23:25:58 +00:00
Minor change: move DNS_MSG_SIZE in opt.h, add comments.
This commit is contained in:
parent
de11e7fd75
commit
4653974c2a
@ -102,9 +102,6 @@
|
|||||||
#define DNS_MAX_TTL 604800
|
#define DNS_MAX_TTL 604800
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** DNS message max. size */
|
|
||||||
#define DNS_MSG_SIZE 512
|
|
||||||
|
|
||||||
/* DNS protocol flags */
|
/* DNS protocol flags */
|
||||||
#define DNS_FLAG1_RESPONSE 0x80
|
#define DNS_FLAG1_RESPONSE 0x80
|
||||||
#define DNS_FLAG1_OPCODE_STATUS 0x10
|
#define DNS_FLAG1_OPCODE_STATUS 0x10
|
||||||
|
@ -580,11 +580,17 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** DNS use a local buffer if DNS_USES_STATIC_BUF=0, a static one if
|
/** 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. */
|
DNS_USES_STATIC_BUF=1, or a dynamic one if DNS_USES_STATIC_BUF=2.
|
||||||
|
The buffer will be of size DNS_MSG_SIZE */
|
||||||
#ifndef DNS_USES_STATIC_BUF
|
#ifndef DNS_USES_STATIC_BUF
|
||||||
#define DNS_USES_STATIC_BUF 1
|
#define DNS_USES_STATIC_BUF 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** DNS message max. size. Default value is RFC compliant. */
|
||||||
|
#ifndef DNS_MSG_SIZE
|
||||||
|
#define DNS_MSG_SIZE 512
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
---------------------------------
|
---------------------------------
|
||||||
---------- UDP options ----------
|
---------- UDP options ----------
|
||||||
|
Loading…
Reference in New Issue
Block a user