mdns: move MDNS_PROBE_DELAY_MS to mdns_opts.h to allow customisation

In some noisy WiFi environment, it may be necessary to increase this value to
300ms to accomodate WiFi latencies which may result in less than the required
250ms between two probe frames received by the Apple BCT application.

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
David Girault
2019-06-14 17:35:48 +02:00
committed by Simon Goldschmidt
parent 2441c6fa3f
commit 4ca115a08e
2 changed files with 8 additions and 1 deletions

View File

@@ -60,6 +60,14 @@
#define MDNS_MAX_SERVICES 1
#endif
/** The minimum delay between probes in ms. RFC 6762 require 250ms.
* In noisy WiFi environment, adding 30-50ms to this value help a lot for
* a successful Apple BCT tests.
*/
#ifndef MDNS_PROBE_DELAY_MS
#define MDNS_PROBE_DELAY_MS 250
#endif
/** The maximum number of received packets stored in chained list of known
* answers for pending truncated questions. This value define the size of
* the MDNS_PKTS mempool.