/[smeserver]/rpms/djbdns/sme9/040-dnscache-less-chatty-log.patch
ViewVC logotype

Annotation of /rpms/djbdns/sme9/040-dnscache-less-chatty-log.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Jul 12 04:56:18 2017 UTC (7 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: djbdns-1_05-11_el6_sme, djbdns-1_05-9_el6_sme, djbdns-1_05-10_el6_sme, HEAD
* Tue Jul 11 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.05-9.sme
-- backport SME10 fixes [SME: 10381]
--import patches from openwrt and rename already applied patches
--fix security issues [SME: 10374]
- 020-dnsroots-update.patch: update list of root DNS servers
- 070-dnscache-dpos-tcp-servfail.patch: SERVFAIL rename previous patch dns_transmit-bug.patch
- 210-dnscache-strict-forwardonly.patch: rename previous patch dnscache-strict-forwardonly.patch
- 270-dnscache-sigpipe-fix.patch: SIGPIPE
- 300-bugfix-dnscache-dempsky-poison.patch: CVE-2009-0858
- 310-bugfix-dnscache-merge-outgoing-requests.patch: CVE-2008-4392
- 320-bugfix-dnscache-cache-soa-records.patch: CVE-2008-4392
- 450-dnscache-ghost-domain-CVE-2012-1191.patch: CVE-2012-1191 http://marc.info/?l=djbdns&m=134190748729079&w=2
--bug fixes [SME: 10374]
- 060-dnscache-big-udp-packets.patch: accept and handle longer than 512 bytes UDP packets
- 230-tinydns-data-semantic-error.patch: handle semantic error to avoid publishing false dns records
- 240-tinydns-alias-chain-truncation.patch: rename previous patch tinydns-alias-chain-truncation.patch
--fix issue with short ttl cname like akamaid [SME: 8362]
- 200-dnscache-cname-handling.patch: rename previous patch dnscache-cname-handling.patch
- 330-fix-dnscache-cname-handling.patch: fix dnscache cname for short ttl
- 500-cutom-dnscache-maxloop.patch: set max loop to 200
--needed for previous patches to apply cleanly
- 030-srv-records-and-axfrget.patch: add SRV record type and axfr-get decompose SRC and PTR records (for 230-*.patch)
- 080-dnscache-cache-negatives.patch: rfc2308 ? (for 200-*.patch)
- 090-tinydns-one-second.patch: improve tinydns with 8 or more  concurent connections (for 240-*.patch)
- 120-compiler-temporary-filename.patch: change tmp filename to avoid conflicts (for 230-*.patch)
--not backported from SME10 branch
- 050-tinydns-mmap-leak.patch: report cdb leak

1 unnilennium 1.1 --- a/log.h
2     +++ b/log.h
3     @@ -1,6 +1,8 @@
4     #ifndef LOG_H
5     #define LOG_H
6    
7     +#define STATS_DISPLAY_INTERVAL 5
8     +
9     #include "uint64.h"
10    
11     extern void log_startup(void);
12     --- a/log.c
13     +++ b/log.c
14     @@ -1,6 +1,7 @@
15     #include "buffer.h"
16     #include "uint32.h"
17     #include "uint16.h"
18     +#include "time.h"
19     #include "error.h"
20     #include "byte.h"
21     #include "log.h"
22     @@ -274,11 +275,17 @@ void log_rrsoa(const char server[4],cons
23    
24     void log_stats(void)
25     {
26     + static time_t prev = 0;
27     + time_t cur = time(NULL);
28     extern uint64 numqueries;
29     extern uint64 cache_motion;
30     extern int uactive;
31     extern int tactive;
32    
33     + if(prev == 0) prev = time(NULL);
34     + if(cur - prev < STATS_DISPLAY_INTERVAL) return;
35     + prev = cur;
36     +
37     string("stats ");
38     number(numqueries); space();
39     number(cache_motion); space();

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed