mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Reduce the size of struct mg_dns_message
From 2K to 1K. Still too big for most cases but manageable.
This commit is contained in:
1 parent
fd062b530c
commit
e9853be8f7
2 files changed
+8
No files matched your search
@@ -5686,8 +5686,12 @@ extern "C" {
|
||||
#define MG_DNS_ANY_RECORD 0xff
|
||||
#define MG_DNS_NSEC_RECORD 0x2f
|
||||
|
||||
#ifndef MG_MAX_DNS_QUESTIONS
|
||||
#define MG_MAX_DNS_QUESTIONS 32
|
||||
#endif
|
||||
#ifndef MG_MAX_DNS_ANSWERS
|
||||
#define MG_MAX_DNS_ANSWERS 32
|
||||
#endif
|
||||
|
||||
#define MG_DNS_MESSAGE 100 /* High-level DNS message event */
|
||||
|
||||
|
||||
@@ -22,8 +22,12 @@ extern "C" {
|
||||
#define MG_DNS_ANY_RECORD 0xff
|
||||
#define MG_DNS_NSEC_RECORD 0x2f
|
||||
|
||||
#ifndef MG_MAX_DNS_QUESTIONS
|
||||
#define MG_MAX_DNS_QUESTIONS 32
|
||||
#endif
|
||||
#ifndef MG_MAX_DNS_ANSWERS
|
||||
#define MG_MAX_DNS_ANSWERS 32
|
||||
#endif
|
||||
|
||||
#define MG_DNS_MESSAGE 100 /* High-level DNS message event */
|
||||
|
||||
|
||||
Reference in new issue
Block a user