Lines Matching defs:bad

210 	isc_sockaddrlist_t		bad;
232 * way that they are not marked "bad".
2191 for (sa = ISC_LIST_HEAD(fctx->bad);
2208 * Mark all known bad servers, so we don't try to talk to them
2213 * Mark any bad nameservers.
2229 * Mark any bad forwarders.
2241 * Mark any bad alternates.
2299 * We already know this server is bad.
2310 ISC_LIST_INITANDAPPEND(fctx->bad, sa, link);
2787 * Mark all known bad servers.
3073 * Something bad happened.
3082 * might be bad ones. In this case, return SERVFAIL.
3154 * Free bad.
3156 for (sa = ISC_LIST_HEAD(fctx->bad);
3160 ISC_LIST_UNLINK(fctx->bad, sa, link);
3574 ISC_LIST_INIT(fctx->bad);
6528 * socket, mark the server as bad so that we won't try
6621 * Something bad has happened.
7026 * Add this server to the list of bad servers for
7151 dns_badcache_t *bad, *next;
7156 for (bad = res->badcache[i]; bad != NULL;
7157 bad = next) {
7158 next = bad->next;
7159 isc_mem_put(res->mctx, bad, sizeof(*bad) +
7160 bad->name.length);
8161 dns_badcache_t *bad, *prev, *next;
8177 for (bad = resolver->badcache[i]; bad != NULL; bad = next) {
8179 next = bad->next;
8180 n = isc_time_compare(&bad->expire, &now);
8181 if (n < 0 || dns_name_equal(name, &bad->name)) {
8183 resolver->badcache[i] = bad->next;
8185 prev->next = bad->next;
8186 isc_mem_put(resolver->mctx, bad, sizeof(*bad) +
8187 bad->name.length);
8190 prev = bad;
8203 dns_badcache_t **new, *bad, *next;
8217 for (bad = resolver->badcache[i]; bad != NULL; bad = next) {
8218 next = bad->next;
8219 if (isc_time_compare(&bad->expire, now) < 0) {
8220 isc_mem_put(resolver->mctx, bad, sizeof(*bad) +
8221 bad->name.length);
8224 bad->next = new[bad->hashval % newsize];
8225 new[bad->hashval % newsize] = bad;
8242 dns_badcache_t *bad, *prev, *next;
8264 for (bad = resolver->badcache[i]; bad != NULL; bad = next) {
8265 next = bad->next;
8266 if (bad->type == type && dns_name_equal(name, &bad->name))
8268 if (isc_time_compare(&bad->expire, &now) < 0) {
8270 resolver->badcache[i] = bad->next;
8272 prev->next = bad->next;
8273 isc_mem_put(resolver->mctx, bad, sizeof(*bad) +
8274 bad->name.length);
8277 prev = bad;
8279 if (bad == NULL) {
8281 bad = isc_mem_get(resolver->mctx, sizeof(*bad) + name->length);
8282 if (bad == NULL)
8284 bad->type = type;
8285 bad->hashval = hashval;
8286 bad->expire = *expire;
8287 isc_buffer_init(&buffer, bad + 1, name->length);
8288 dns_name_init(&bad->name, NULL);
8289 dns_name_copy(name, &bad->name, &buffer);
8290 bad->next = resolver->badcache[i];
8291 resolver->badcache[i] = bad;
8299 bad->expire = *expire;
8308 dns_badcache_t *bad, *prev, *next;
8320 for (bad = resolver->badcache[i]; bad != NULL; bad = next) {
8321 next = bad->next;
8325 if (isc_time_compare(&bad->expire, now) < 0) {
8327 prev->next = bad->next;
8329 resolver->badcache[i] = bad->next;
8330 isc_mem_put(resolver->mctx, bad, sizeof(*bad) +
8331 bad->name.length);
8335 if (bad->type == type && dns_name_equal(name, &bad->name)) {
8339 prev = bad;
8346 bad = resolver->badcache[i];
8347 if (bad != NULL && isc_time_compare(&bad->expire, now) < 0) {
8348 resolver->badcache[i] = bad->next;
8349 isc_mem_put(resolver->mctx, bad, sizeof(*bad) +
8350 bad->name.length);
8363 dns_badcache_t *bad, *next, *prev;
8377 for (bad = resolver->badcache[i]; bad != NULL; bad = next) {
8378 next = bad->next;
8379 if (isc_time_compare(&bad->expire, &now) < 0) {
8381 prev->next = bad->next;
8383 resolver->badcache[i] = bad->next;
8384 isc_mem_put(resolver->mctx, bad, sizeof(*bad) +
8385 bad->name.length);
8389 prev = bad;
8390 dns_name_format(&bad->name, namebuf, sizeof(namebuf));
8391 dns_rdatatype_format(bad->type, typebuf,
8393 t = isc_time_microdiff(&bad->expire, &now);