From 5c7eb7e27be7508130459d896cf7d13ffefda87f Mon Sep 17 00:00:00 2001 From: Piyush Shah Date: Thu, 12 Jul 2018 19:15:02 +0530 Subject: [PATCH] mdns: Minor fix for mdns_service_remove() Send the Goodbye packet while removing an mDNS service as an "Authoritative" packet so that the listeners remove the service from their records immediately. --- components/mdns/mdns.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 9fb64777e..6ffebf663 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -1419,6 +1419,7 @@ static void _mdns_pcb_send_bye(tcpip_adapter_if_t tcpip_if, mdns_ip_protocol_t i if (!packet) { return; } + packet->flags = MDNS_FLAGS_AUTHORITATIVE; size_t i; for (i=0; ianswers, MDNS_TYPE_PTR, services[i]->service, true, true)) {