From ea12bcc78911fd3531955a799dbf6c5ac33bf567 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 25 Aug 2015 14:08:29 +0200 Subject: resolved: add mDNS initial jitter The logic is to kick off mDNS packets in a delayed way is mostly identical to what LLMNR needs, except that the constants are different. --- src/resolve/resolved-dns-transaction.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resolve/resolved-dns-transaction.h') diff --git a/src/resolve/resolved-dns-transaction.h b/src/resolve/resolved-dns-transaction.h index a3058ce6e8..1d445ffee7 100644 --- a/src/resolve/resolved-dns-transaction.h +++ b/src/resolve/resolved-dns-transaction.h @@ -119,6 +119,10 @@ DnsTransactionSource dns_transaction_source_from_string(const char *s) _pure_; /* LLMNR Jitter interval, see RFC 4795 Section 7 */ #define LLMNR_JITTER_INTERVAL_USEC (100 * USEC_PER_MSEC) +/* mDNS Jitter interval, see RFC 6762 Section 5.2 */ +#define MDNS_JITTER_MIN_USEC (20 * USEC_PER_MSEC) +#define MDNS_JITTER_RANGE_USEC (100 * USEC_PER_MSEC) + /* Maximum attempts to send DNS requests, across all DNS servers */ #define DNS_TRANSACTION_ATTEMPTS_MAX 16 -- cgit v1.2.3-54-g00ecf