Bump the EDNS(0) buffer size to 1452
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@
|
||||
#define LOOKUP_LIMIT 64
|
||||
|
||||
#define DEFAULT_EDNS_VERSION 0
|
||||
#define DEFAULT_EDNS_BUFSIZE 1232
|
||||
#define DEFAULT_EDNS_BUFSIZE 1452
|
||||
|
||||
#define DEFAULT_HTTPS_QUERY "?dns="
|
||||
|
||||
|
||||
+2
-2
@@ -54,7 +54,7 @@ options {\n\
|
||||
# directory <none>\n\
|
||||
dnssec-policy \"none\";\n\
|
||||
dump-file \"named_dump.db\";\n\
|
||||
edns-udp-size 1232;\n"
|
||||
edns-udp-size 1452;\n"
|
||||
#if defined(HAVE_GEOIP2)
|
||||
"\
|
||||
geoip-directory \"" MAXMINDDB_PREFIX "/share/GeoIP\";\n"
|
||||
@@ -69,7 +69,7 @@ options {\n\
|
||||
match-mapped-addresses no;\n\
|
||||
max-ixfr-ratio 100%;\n\
|
||||
max-rsa-exponent-size 0; /* no limit */\n\
|
||||
max-udp-size 1232;\n\
|
||||
max-udp-size 1452;\n\
|
||||
memstatistics-file \"named.memstats\";\n\
|
||||
nocookie-udp-size 4096;\n\
|
||||
notify-rate 20;\n\
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
#define DNSDEFAULTPORT 53
|
||||
|
||||
#define DEFAULT_EDNS_BUFSIZE 1232
|
||||
#define DEFAULT_EDNS_BUFSIZE 1452
|
||||
|
||||
/* Number of addresses to request from isc_getaddresses() */
|
||||
#define MAX_SERVERADDRS 4
|
||||
|
||||
+1
-1
@@ -636,7 +636,7 @@ sendquery(struct query *query) {
|
||||
unsigned char cookie[40];
|
||||
|
||||
if (query->udpsize == 0) {
|
||||
query->udpsize = 1232;
|
||||
query->udpsize = 1452;
|
||||
}
|
||||
if (query->edns < 0) {
|
||||
query->edns = 0;
|
||||
|
||||
+1
-1
@@ -114,7 +114,7 @@ hexdump(const char *msg, const char *msg2, void *base, size_t len) {
|
||||
* of various block allocations used within the server.
|
||||
* XXXMLG These should come from a config setting.
|
||||
*/
|
||||
#define SCRATCHPAD_SIZE 1232
|
||||
#define SCRATCHPAD_SIZE 1452
|
||||
#define NAME_FILLCOUNT 1024
|
||||
#define NAME_FREEMAX 8 * NAME_FILLCOUNT
|
||||
#define OFFSET_COUNT 4
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@
|
||||
/*%
|
||||
* Default EDNS0 buffer size
|
||||
*/
|
||||
#define DEFAULT_EDNS_BUFSIZE 1232
|
||||
#define DEFAULT_EDNS_BUFSIZE 1452
|
||||
|
||||
void
|
||||
dns_view_create(isc_mem_t *mctx, isc_loopmgr_t *loopmgr,
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ ns_server_create(isc_mem_t *mctx, ns_matchview_t matchingview,
|
||||
|
||||
sctx = isc_mem_get(mctx, sizeof(*sctx));
|
||||
*sctx = (ns_server_t){
|
||||
.udpsize = 1232,
|
||||
.udpsize = 1452,
|
||||
.transfer_tcp_message_size = 20480,
|
||||
|
||||
.fuzztype = isc_fuzz_none,
|
||||
|
||||
Reference in New Issue
Block a user