From 16f34780489438680fd5a037ce5815745cbb83e9 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 15 Oct 2025 11:39:58 +0200 Subject: [PATCH] - Add extended dns error code for invalid query type to definition list. --- doc/Changelog | 2 ++ sldns/rrdef.h | 3 ++- sldns/wire2str.c | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 3c188e20b..afe04877e 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,8 @@ 15 October 2025: Wouter - Fix to drop UDP for discard-timeout, but not stream connections. - Fix to reply with SERVFAIL when the wait-limit is exceeded. + - Add extended dns error code for invalid query type to definition + list. 10 October 2025: Wouter - Fix #1358 Enabling FIPS in OpenSSL causes unit test to fail. diff --git a/sldns/rrdef.h b/sldns/rrdef.h index 540468889..529ef9a84 100644 --- a/sldns/rrdef.h +++ b/sldns/rrdef.h @@ -480,7 +480,8 @@ enum sldns_enum_ede_code LDNS_EDE_TOO_EARLY = 26, LDNS_EDE_UNSUPPORTED_NSEC3_ITERATIONS = 27, LDNS_EDE_BADPROXYPOLICY = 28, - LDNS_EDE_SYNTHESIZED = 29 + LDNS_EDE_SYNTHESIZED = 29, + LDNS_EDE_INVALID_QUERY_TYPE = 30 }; typedef enum sldns_enum_ede_code sldns_ede_code; diff --git a/sldns/wire2str.c b/sldns/wire2str.c index 1bc5b9cf6..f4b01b028 100644 --- a/sldns/wire2str.c +++ b/sldns/wire2str.c @@ -233,6 +233,7 @@ static sldns_lookup_table sldns_edns_ede_codes_data[] = { { LDNS_EDE_UNSUPPORTED_NSEC3_ITERATIONS, "Unsupported NSEC3 Iterations Value" }, { LDNS_EDE_BADPROXYPOLICY, "Unable to Conform to Policy" }, { LDNS_EDE_SYNTHESIZED, "Synthesized Answer" }, + { LDNS_EDE_INVALID_QUERY_TYPE, "Invalid Query Type" }, { 0, NULL} }; sldns_lookup_table* sldns_edns_ede_codes = sldns_edns_ede_codes_data; -- 2.47.3