summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2013-04-24 17:38:19 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2013-04-24 20:35:43 +0100
commit2bb73af7d1a97b5db150c82b5509eedbc9deeb3f (patch)
tree607725e19a0209f1e28103c24194dd36eae34931 /src/cache.c
parent86e92f998379d219e10517dfa2c42f544ba164ce (diff)
downloaddnsmasq-2bb73af7d1a97b5db150c82b5509eedbc9deeb3f.tar.gz
Add --synth-domainv2.67test3
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/cache.c b/src/cache.c
index 88e9641..6fdeba2 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -971,38 +971,6 @@ void cache_reload(void)
total_size = read_hostsfile(ah->fname, ah->index, total_size, (struct crec **)daemon->packet, revhashsz);
}
-char *get_domain(struct in_addr addr)
-{
- struct cond_domain *c;
-
- for (c = daemon->cond_domain; c; c = c->next)
- if (!c->is6 &&
- ntohl(addr.s_addr) >= ntohl(c->start.s_addr) &&
- ntohl(addr.s_addr) <= ntohl(c->end.s_addr))
- return c->domain;
-
- return daemon->domain_suffix;
-}
-
-
-#ifdef HAVE_IPV6
-char *get_domain6(struct in6_addr *addr)
-{
- struct cond_domain *c;
-
- u64 addrpart = addr6part(addr);
-
- for (c = daemon->cond_domain; c; c = c->next)
- if (c->is6 &&
- is_same_net6(addr, &c->start6, 64) &&
- addrpart >= addr6part(&c->start6) &&
- addrpart <= addr6part(&c->end6))
- return c->domain;
-
- return daemon->domain_suffix;
-}
-#endif
-
#ifdef HAVE_DHCP
struct in_addr a_record_from_hosts(char *name, time_t now)
{