summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-transaction.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-05 17:01:33 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-05 17:02:46 +0200
commit6e0684729420912df019cc64d3f8a3c8290cc5f1 (patch)
tree23919408824ac60fb8f5bcc532d6558e9aa955c5 /src/resolve/resolved-dns-transaction.h
parentaea2429d6ec32261dbf6b9caa125fcc6ea9ea76a (diff)
resolved: add 100ms initial jitter to all LLMNR requests
Diffstat (limited to 'src/resolve/resolved-dns-transaction.h')
-rw-r--r--src/resolve/resolved-dns-transaction.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-transaction.h b/src/resolve/resolved-dns-transaction.h
index d825b3ec85..182fb7714c 100644
--- a/src/resolve/resolved-dns-transaction.h
+++ b/src/resolve/resolved-dns-transaction.h
@@ -54,6 +54,8 @@ struct DnsTransaction {
DnsTransactionState state;
uint16_t id;
+ bool initial_jitter;
+
DnsPacket *sent, *received;
DnsAnswer *cached;
int cached_rcode;
@@ -96,7 +98,7 @@ DnsTransactionState dns_transaction_state_from_string(const char *s) _pure_;
#define LLMNR_TRANSACTION_TIMEOUT_USEC (1 * USEC_PER_SEC)
/* LLMNR Jitter interval, see RFC 4795 Section 7 */
-#define LLMNR_TRANSACTION_JITTER_INTERVAL_USEC (100 * USEC_PER_MSEC)
+#define LLMNR_JITTER_INTERVAL_USEC (100 * USEC_PER_MSEC)
/* Maximum attempts to send DNS requests, across all DNS servers */
#define DNS_TRANSACTION_ATTEMPTS_MAX 8