diff options
author | Dave Barach <dave@barachs.net> | 2017-10-16 14:39:52 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-10-16 21:23:39 +0000 |
commit | 0cb01bde499979066389975ba81670764914cbc2 (patch) | |
tree | effb6ba9353c13672ab99a4afe9a3e9fd099c91a /src/vnet/dns/resolver_process.c | |
parent | 0d004aaaed2fe3fc29db5e30004870f94bc7a282 (diff) |
DNS name resolver improvements
- Cache intermediate CNAME records
- Bug fixes
Change-Id: I06dcb558212fc5e9434281493c872577cf9b83e1
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/dns/resolver_process.c')
-rw-r--r-- | src/vnet/dns/resolver_process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/dns/resolver_process.c b/src/vnet/dns/resolver_process.c index 91e5cef1bcd..5603371db52 100644 --- a/src/vnet/dns/resolver_process.c +++ b/src/vnet/dns/resolver_process.c @@ -81,7 +81,7 @@ resolve_event (dns_main_t * dm, f64 now, u8 * reply) vec_free (ep->dns_response); /* Handle [sic] recursion AKA CNAME indirection */ - if (vnet_dns_cname_indirection_nolock (dm, ep, reply)) + if (vnet_dns_cname_indirection_nolock (dm, pool_index, reply)) { dns_cache_unlock (dm); return; @@ -120,6 +120,8 @@ resolve_event (dns_main_t * dm, f64 now, u8 * reply) vec_free (ep->api_client_contexts); /* $$$ Add ip4/ip6 reply code */ + vec_free (ep->ip4_peers_to_notify); + vec_free (ep->ip6_peers_to_notify); for (i = 0; i < vec_len (dm->unresolved_entries); i++) { @@ -174,7 +176,6 @@ retry_scan (dns_main_t * dm, f64 now) ep = pool_elt_at_index (dm->entries, dm->unresolved_entries[i]); ASSERT ((ep->flags & DNS_CACHE_ENTRY_FLAG_VALID) == 0); - vnet_send_dns_request (dm, ep); dns_cache_unlock (dm); } |