Lines Matching refs:badhash
410 unsigned int badhash;
7155 for (i = 0; i < res->badhash; i++)
7164 sizeof(*res->badcache) * res->badhash);
7166 res->badhash = 0;
7333 res->badhash = 0;
8175 i = dns_name_hash(name, ISC_FALSE) % resolver->badhash;
8207 newsize = resolver->badhash * 2 + 1;
8209 newsize = (resolver->badhash - 1) / 2;
8216 for (i = 0; i < resolver->badhash; i++) {
8230 sizeof(*resolver->badcache) * resolver->badhash);
8231 resolver->badhash = newsize;
8253 resolver->badhash = DNS_BADCACHE_SIZE;
8255 resolver->badhash);
8262 i = hashval % resolver->badhash;
8293 if (resolver->badcount > resolver->badhash * 8)
8295 if (resolver->badcount < resolver->badhash * 2 &&
8296 resolver->badhash > DNS_BADCACHE_SIZE)
8318 i = dns_name_hash(name, ISC_FALSE) % resolver->badhash;
8345 i = resolver->badsweep++ % resolver->badhash;
8375 for (i = 0; i < resolver->badhash; i++) {