diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-05 17:01:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-05 17:02:46 +0200 |
commit | 6e0684729420912df019cc64d3f8a3c8290cc5f1 (patch) | |
tree | 23919408824ac60fb8f5bcc532d6558e9aa955c5 /src/resolve/resolved-dns-transaction.h | |
parent | resolved: enforce ratelimit on LLMNR traffic (diff) | |
download | systemd-6e0684729420912df019cc64d3f8a3c8290cc5f1.tar.xz systemd-6e0684729420912df019cc64d3f8a3c8290cc5f1.zip |
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.h | 4 |
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 |