Public Member Functions | |
HT_ENTRY (cached_resolve_t) | |
Data Fields | |
result | |
uint8_t | state |
uint8_t | is_reverse |
time_t | expire |
uint32_t | ttl |
pending_connection_t * | pending_connections |
int | minheap_idx |
cached_resolve_t::HT_ENTRY | ( | cached_resolve_t | ) | [inline] |
< IPv6 addr for address.
< IPv4 addr for address.
< Hostname for address (if a reverse lookup)
uint8_t cached_resolve_t::state |
Is this cached entry pending/done/valid/failed?
Referenced by add_answer_to_cache(), assert_resolve_ok(), dns_cancel_pending_resolve(), dns_found_answer(), dns_resolve_impl(), and purge_expired_resolves().
uint8_t cached_resolve_t::is_reverse |
Is this a reverse (addr-to-hostname) lookup?
Referenced by _free_cached_resolve(), add_answer_to_cache(), assert_resolve_ok(), dns_resolve_impl(), and purge_expired_resolves().
time_t cached_resolve_t::expire |
Remove items from cache after this time.
Referenced by _compare_cached_resolves_by_expiry(), dns_resolve_impl(), purge_expired_resolves(), and set_expiry().
uint32_t cached_resolve_t::ttl |
What TTL did the nameserver tell us?
Referenced by add_answer_to_cache(), assert_resolve_ok(), and dns_resolve_impl().
Connections that want to know when we get an answer for this resolve.
Referenced by _free_cached_resolve(), assert_connection_edge_not_dns_pending(), assert_resolve_ok(), connection_dns_remove(), dns_cancel_pending_resolve(), dns_found_answer(), dns_resolve_impl(), and purge_expired_resolves().
Position of this element in the heap
Referenced by dns_resolve_impl().