2783. [func] Return minimal responses to EDNS/UDP queries with a UDP
buffer size of 512 or less. [RT #20654]
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2783. [func] Return minimal responses to EDNS/UDP queries with a UDP
|
||||
buffer size of 512 or less. [RT #20654]
|
||||
|
||||
2782. [port] win32: use getaddrinfo() for hostname lookups.
|
||||
[RT #20650]
|
||||
|
||||
|
||||
+9
-1
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: query.c,v 1.313.20.12 2009/11/18 00:15:36 marka Exp $ */
|
||||
/* $Id: query.c,v 1.313.20.13 2009/11/24 03:15:31 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -5170,6 +5170,14 @@ ns_query_start(ns_client_t *client) {
|
||||
client->query.attributes |= (NS_QUERYATTR_NOAUTHORITY |
|
||||
NS_QUERYATTR_NOADDITIONAL);
|
||||
|
||||
/*
|
||||
* Turn on minimal responses for EDNS/UDP bufsize 512 queries.
|
||||
*/
|
||||
if (client->opt != NULL && client->udpsize <= 512U &&
|
||||
(client->attributes & NS_CLIENTATTR_TCP) == 0)
|
||||
client->query.attributes |= (NS_QUERYATTR_NOAUTHORITY |
|
||||
NS_QUERYATTR_NOADDITIONAL);
|
||||
|
||||
/*
|
||||
* If the client has requested that DNSSEC checking be disabled,
|
||||
* allow lookups to return pending data and instruct the resolver
|
||||
|
||||
Reference in New Issue
Block a user