]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Patch from James Raftery, always print stats for rcodes 0..5.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 12 Nov 2014 17:25:59 +0000 (17:25 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 12 Nov 2014 17:25:59 +0000 (17:25 +0000)
git-svn-id: file:///svn/unbound/trunk@3267 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/remote.c
doc/Changelog

index 88ea063f21f805929ab8febe8e7f960766ce1703..c49b07cd53690655b11c69f05501ffb4b3f61622 100644 (file)
@@ -854,7 +854,8 @@ print_ext(SSL* ssl, struct stats_info* s)
 
        /* RCODE */
        for(i=0; i<STATS_RCODE_NUM; i++) {
-               if(inhibit_zero && s->svr.ans_rcode[i] == 0)
+               /* Always include RCODEs 0-5 */
+               if(inhibit_zero && i > LDNS_RCODE_REFUSED && s->svr.ans_rcode[i] == 0)
                        continue;
                lt = sldns_lookup_by_id(sldns_rcodes, i);
                if(lt && lt->name) {
index 6effaea03f200d999904367d903c117d65034ac5..21420f0968c4424d84e2788c210294755e1c32b4 100644 (file)
@@ -5,6 +5,7 @@
        - Removed 'increased limit open files' log message that is written
          to console.  It is only written on verbosity 4 and higher.
          This keeps system bootup console cleaner.
+       - Patch from James Raftery, always print stats for rcodes 0..5.
 
 11 November 2014: Wouter
        - iana portlist update.