diff options
author | Dave Barach <dave@barachs.net> | 2018-01-09 17:00:00 -0500 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-01-10 02:43:07 +0000 |
commit | 580eda7067bee891c00f59fe3927720def3837ec (patch) | |
tree | cf62ee4dd55c6c61adcff15917ab23059f02b17c /src/vnet/dns/dns.h | |
parent | aec8f8984771cabc79a8ed64f56afcf61465d00a (diff) |
Functional improvements, bug fixes
At least when testing against "known good" DNS servers: it turns out
that sending 2x requests - one for an A-record and another for a
AAAA-record - seems to work better than sending a single DNS_TYPE_ALL
request.
Fix c-string vs. u8 vector mistakes. Fix server failover.
Change-Id: I26554f0a9c1744376f21372506ebec8658e351e2
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/dns/dns.h')
-rw-r--r-- | src/vnet/dns/dns.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnet/dns/dns.h b/src/vnet/dns/dns.h index 1272e756d7c..f0edd8cf4ba 100644 --- a/src/vnet/dns/dns.h +++ b/src/vnet/dns/dns.h @@ -66,6 +66,7 @@ typedef struct int retry_count; int server_rotor; int server_af; + int server_fails; f64 retry_timer; /** Cached dns response */ @@ -163,6 +164,13 @@ int vnet_dns_resolve_name (dns_main_t * dm, u8 * name, dns_pending_request_t * t, dns_cache_entry_t ** retp); +void +vnet_dns_send_dns6_request (dns_main_t * dm, + dns_cache_entry_t * ep, ip6_address_t * server); +void +vnet_dns_send_dns4_request (dns_main_t * dm, + dns_cache_entry_t * ep, ip4_address_t * server); + void vnet_send_dns4_reply (dns_main_t * dm, dns_pending_request_t * t, dns_cache_entry_t * ep, vlib_buffer_t * b0); |