iterator.h (275852) | iterator.h (276605) |
---|---|
1/* 2 * iterator/iterator.h - iterative resolver DNS query response module 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 45 unchanged lines hidden (view full) --- 54 55/** max number of targets spawned for a query and its subqueries */ 56#define MAX_TARGET_COUNT 32 57/** max number of query restarts. Determines max number of CNAME chain. */ 58#define MAX_RESTART_COUNT 8 59/** max number of referrals. Makes sure resolver does not run away */ 60#define MAX_REFERRAL_COUNT 130 61/** max number of queries-sent-out. Make sure large NS set does not loop */ | 1/* 2 * iterator/iterator.h - iterative resolver DNS query response module 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 45 unchanged lines hidden (view full) --- 54 55/** max number of targets spawned for a query and its subqueries */ 56#define MAX_TARGET_COUNT 32 57/** max number of query restarts. Determines max number of CNAME chain. */ 58#define MAX_RESTART_COUNT 8 59/** max number of referrals. Makes sure resolver does not run away */ 60#define MAX_REFERRAL_COUNT 130 61/** max number of queries-sent-out. Make sure large NS set does not loop */ |
62#define MAX_SENT_COUNT 16 | 62#define MAX_SENT_COUNT 32 |
63/** at what query-sent-count to stop target fetch policy */ 64#define TARGET_FETCH_STOP 3 65/** how nice is a server without further information, in msec 66 * Equals rtt initial timeout value. 67 */ 68#define UNKNOWN_SERVER_NICENESS 376 69/** maximum timeout before a host is deemed unsuitable, in msec. 70 * After host_ttl this will be timed out and the host will be tried again. 71 * Equals RTT_MAX_TIMEOUT 72 */ 73#define USEFUL_SERVER_TOP_TIMEOUT 120000 | 63/** at what query-sent-count to stop target fetch policy */ 64#define TARGET_FETCH_STOP 3 65/** how nice is a server without further information, in msec 66 * Equals rtt initial timeout value. 67 */ 68#define UNKNOWN_SERVER_NICENESS 376 69/** maximum timeout before a host is deemed unsuitable, in msec. 70 * After host_ttl this will be timed out and the host will be tried again. 71 * Equals RTT_MAX_TIMEOUT 72 */ 73#define USEFUL_SERVER_TOP_TIMEOUT 120000 |
74/** Number of lost messages in a row that get a host blacklisted. 75 * With 16, a couple different queries have to time out and no working 76 * queries are happening */ 77#define USEFUL_SERVER_MAX_LOST 16 | |
78/** number of retries on outgoing queries */ 79#define OUTBOUND_MSG_RETRY 5 80/** RTT band, within this amount from the best, servers are chosen randomly. 81 * Chosen so that the UNKNOWN_SERVER_NICENESS falls within the band of a 82 * fast server, this causes server exploration as a side benefit. msec. */ 83#define RTT_BAND 400 84/** Start value for blacklisting a host, 2*USEFUL_SERVER_TOP_TIMEOUT in sec */ 85#define INFRA_BACKOFF_INITIAL 240 --- 145 unchanged lines hidden (view full) --- 231 * (sub)queried for vs which ones have already been visited. 232 */ 233 struct delegpt* dp; 234 235 /** state for 0x20 fallback when capsfail happens, 0 not a fallback */ 236 int caps_fallback; 237 /** state for capsfail: current server number to try */ 238 size_t caps_server; | 74/** number of retries on outgoing queries */ 75#define OUTBOUND_MSG_RETRY 5 76/** RTT band, within this amount from the best, servers are chosen randomly. 77 * Chosen so that the UNKNOWN_SERVER_NICENESS falls within the band of a 78 * fast server, this causes server exploration as a side benefit. msec. */ 79#define RTT_BAND 400 80/** Start value for blacklisting a host, 2*USEFUL_SERVER_TOP_TIMEOUT in sec */ 81#define INFRA_BACKOFF_INITIAL 240 --- 145 unchanged lines hidden (view full) --- 227 * (sub)queried for vs which ones have already been visited. 228 */ 229 struct delegpt* dp; 230 231 /** state for 0x20 fallback when capsfail happens, 0 not a fallback */ 232 int caps_fallback; 233 /** state for capsfail: current server number to try */ 234 size_t caps_server; |
239 /** state for capsfail: stored query for comparisons */ | 235 /** state for capsfail: stored query for comparisons. Can be NULL if 236 * no response had been seen prior to starting the fallback. */ |
240 struct reply_info* caps_reply; 241 242 /** Current delegation message - returned for non-RD queries */ 243 struct dns_msg* deleg_msg; 244 245 /** number of outstanding target sub queries */ 246 int num_target_queries; 247 --- 134 unchanged lines hidden --- | 237 struct reply_info* caps_reply; 238 239 /** Current delegation message - returned for non-RD queries */ 240 struct dns_msg* deleg_msg; 241 242 /** number of outstanding target sub queries */ 243 int num_target_queries; 244 --- 134 unchanged lines hidden --- |