mDNS: split probe packet definition and split outpkt creation

Probe packet creation -> by splitting the definition and the sending
we can use the definition function for probe tiebreaking.
outpkt creation -> by splitting the creation and sending we can use
the creation function for probe tiebreaking.
This commit is contained in:
Jasper Verschueren
2018-11-08 16:55:54 +01:00
committed by Dirk Ziegelmeier
parent 2a236088ae
commit a09646c507
3 changed files with 82 additions and 58 deletions

View File

@@ -103,6 +103,8 @@ extern "C" {
*/
#define MDNS_MULTICAST_TIMEOUT_25TTL 30000
err_t mdns_create_outpacket(struct netif *netif, struct mdns_outmsg *msg,
struct mdns_outpacket *outpkt);
err_t mdns_send_outpacket(struct mdns_outmsg *msg, struct netif *netif);
void mdns_set_timeout(struct netif *netif, u32_t msecs,
sys_timeout_handler handler, u8_t *busy_flag);