#include "dnscache.h"#include "messages.h"#include "timeutils/cache.h"#include "tls-support.h"#include <sys/types.h>#include <netinet/in.h>#include <sys/socket.h>#include <arpa/inet.h>#include <sys/stat.h>#include <stdio.h>#include <errno.h>#include <string.h>#include <time.h>#include <iv.h>#include <iv_list.h>
Classes | |
| struct | DNSCacheKey |
| struct | DNSCacheEntry |
| struct | DNSCache |
Macros | |
| #define | dns_cache __slng_tls_deref(dns_cache) |
Functions | |
| void | dns_cache_store_persistent (DNSCache *self, gint family, void *addr, const gchar *hostname) |
| void | dns_cache_store_dynamic (DNSCache *self, gint family, void *addr, const gchar *hostname, gboolean positive) |
| gboolean | dns_cache_lookup (DNSCache *self, gint family, void *addr, const gchar **hostname, gsize *hostname_len, gboolean *positive) |
| DNSCache * | dns_cache_new (const DNSCacheOptions *options) |
| void | dns_cache_free (DNSCache *self) |
| void | dns_cache_options_defaults (DNSCacheOptions *options) |
| void | dns_cache_options_destroy (DNSCacheOptions *options) |
| G_LOCK_DEFINE_STATIC (unused_dns_caches) | |
| gboolean | dns_caching_lookup (gint family, void *addr, const gchar **hostname, gsize *hostname_len, gboolean *positive) |
| void | dns_caching_store (gint family, void *addr, const gchar *hostname, gboolean positive) |
| void | dns_caching_update_options (const DNSCacheOptions *new_options) |
| void | dns_caching_thread_init (void) |
| void | dns_caching_thread_deinit (void) |
| void | dns_caching_global_init (void) |
| void | dns_caching_global_deinit (void) |
Variables | |
| TLS_BLOCK_START | |
| TLS_BLOCK_END | |
| #define dns_cache __slng_tls_deref(dns_cache) |
| void dns_cache_free | ( | DNSCache * | self | ) |
| gboolean dns_cache_lookup | ( | DNSCache * | self, |
| gint | family, | ||
| void * | addr, | ||
| const gchar ** | hostname, | ||
| gsize * | hostname_len, | ||
| gboolean * | positive | ||
| ) |
| DNSCache* dns_cache_new | ( | const DNSCacheOptions * | options | ) |
| void dns_cache_options_defaults | ( | DNSCacheOptions * | options | ) |
| void dns_cache_options_destroy | ( | DNSCacheOptions * | options | ) |
| void dns_cache_store_dynamic | ( | DNSCache * | self, |
| gint | family, | ||
| void * | addr, | ||
| const gchar * | hostname, | ||
| gboolean | positive | ||
| ) |
| void dns_cache_store_persistent | ( | DNSCache * | self, |
| gint | family, | ||
| void * | addr, | ||
| const gchar * | hostname | ||
| ) |
| void dns_caching_global_deinit | ( | void | ) |
| void dns_caching_global_init | ( | void | ) |
| gboolean dns_caching_lookup | ( | gint | family, |
| void * | addr, | ||
| const gchar ** | hostname, | ||
| gsize * | hostname_len, | ||
| gboolean * | positive | ||
| ) |
| void dns_caching_store | ( | gint | family, |
| void * | addr, | ||
| const gchar * | hostname, | ||
| gboolean | positive | ||
| ) |
| void dns_caching_thread_deinit | ( | void | ) |
| void dns_caching_thread_init | ( | void | ) |
| void dns_caching_update_options | ( | const DNSCacheOptions * | new_options | ) |
| G_LOCK_DEFINE_STATIC | ( | unused_dns_caches | ) |
| TLS_BLOCK_END |