From: Baptiste Assmann Date: Wed, 2 Sep 2015 19:56:05 +0000 (+0200) Subject: MINOR: dns: dns_nameserver structure update: new counter for truncated response X-Git-Tag: v1.6-dev5~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cdea9359bf4e37742588d9af82bf1b39790be2c;p=thirdparty%2Fhaproxy.git MINOR: dns: dns_nameserver structure update: new counter for truncated response This patch updates the dns_nameserver structure to integrate a counter dedicated to 'truncated' response sent by servers. Such response are important to track, since HAProxy is supposed to replay its request. --- diff --git a/include/types/dns.h b/include/types/dns.h index 589bb5dfd9..ba35c7160b 100644 --- a/include/types/dns.h +++ b/include/types/dns.h @@ -136,6 +136,7 @@ struct dns_nameserver { long int invalid; /* - malformed DNS response */ long int too_big; /* - too big response */ long int outdated; /* - outdated response (server slower than the other ones) */ + long int truncated; /* - truncated response */ } counters; }; diff --git a/src/dumpstats.c b/src/dumpstats.c index 01fe53ba45..92f2dead5b 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -6266,6 +6266,7 @@ static int stats_dump_resolvers_to_buffer(struct stream_interface *si) chunk_appendf(&trash, " other: %ld\n", pnameserver->counters.other); chunk_appendf(&trash, " invalid: %ld\n", pnameserver->counters.invalid); chunk_appendf(&trash, " too_big: %ld\n", pnameserver->counters.too_big); + chunk_appendf(&trash, " truncated: %ld\n", pnameserver->counters.truncated); chunk_appendf(&trash, " outdated: %ld\n", pnameserver->counters.outdated); }