From ac65e45126dda424b5cc9d2865b353dc0ec23e1e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 25 Jun 2002 04:12:51 +0000 Subject: [PATCH] 1333. [func] Query log now says if the query was signed (S) or if EDNS was used (E). --- CHANGES | 3 +++ bin/named/query.c | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index f0fe8fdf7d..eea376f97d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1333. [func] Query log now says if the query was signed (S) or + if EDNS was used (E). + 1332. [func] Log TSIG key used w/ outgoing zone transfers. 1331. [bug] lwres_getrrsetbyname leaked memory. [RT #3159] diff --git a/bin/named/query.c b/bin/named/query.c index a1a45236a4..af2d20a3c8 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: query.c,v 1.220 2002/06/17 04:01:08 marka Exp $ */ +/* $Id: query.c,v 1.221 2002/06/25 04:12:51 marka Exp $ */ #include @@ -3251,8 +3251,10 @@ log_query(ns_client_t *client) { dns_rdatatype_format(rdataset->type, typename, sizeof(typename)); ns_client_log(client, NS_LOGCATEGORY_QUERIES, NS_LOGMODULE_QUERY, - level, "query: %s %s %s %s", namebuf, classname, - typename, WANTRECURSION(client) ? "+" : "-"); + level, "query: %s %s %s %s%s%s", namebuf, classname, + typename, WANTRECURSION(client) ? "+" : "-", + (client->signer != NULL) ? "S": "", + (client->opt != NULL) ? "E" : ""); } void