mdns: support for multi-packet known answer (questions with TC bit)

This allow Apple Bonjour Conformance Test to not fail with the following tests:
- DISTRIBUTED DUPLICATE SUPPRESSION
- MULTIPLE QUESTIONS - DISTRIBUTED DUPLICATE SUPPRESSION

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
David Girault
2019-06-14 09:52:16 +02:00
committed by Simon Goldschmidt
parent e85e473838
commit 9301225895
2 changed files with 114 additions and 3 deletions

View File

@@ -60,6 +60,16 @@
#define MDNS_MAX_SERVICES 1
#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.
* Up to MDNS_MAX_STORED_PKTS pbuf can be stored in addition to TC questions
* that are pending.
*/
#ifndef MDNS_MAX_STORED_PKTS
#define MDNS_MAX_STORED_PKTS 4
#endif
/** Payload size allocated for each outgoing UDP packet. Will be allocated with
* PBUF_RAM and freed after packet was sent.
* According to RFC 6762, there is no reason to retain the 512 bytes restriction