Revert "mDNS: authority section of probe message needs to contain all records"

This reverts commit e959e6efaf8a1cb57e9a5d4d8e0056c7ea52179f.
This commit is contained in:
Jasper Verschueren 2018-11-09 17:10:40 +01:00 committed by Dirk Ziegelmeier
parent ee7ed8c87d
commit 405fc4d802

View File

@ -1299,14 +1299,13 @@ mdns_send_probe(struct netif* netif, const ip_addr_t *destination)
/* Add answers to the questions above into the authority section for tiebreaking */
#if LWIP_IPV4
if (!ip4_addr_isany_val(*netif_ip4_addr(netif))) {
outmsg.host_replies = REPLY_HOST_A | REPLY_HOST_PTR_V4;
outmsg.host_replies = REPLY_HOST_A;
}
#endif
#if LWIP_IPV6
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i))) {
outmsg.host_replies |= REPLY_HOST_AAAA | REPLY_HOST_PTR_V6;
outmsg.host_reverse_v6_replies |= (1 << i);
outmsg.host_replies |= REPLY_HOST_AAAA;
}
}
#endif
@ -1314,8 +1313,7 @@ mdns_send_probe(struct netif* netif, const ip_addr_t *destination)
for (i = 0; i < MDNS_MAX_SERVICES; i++) {
struct mdns_service *serv = mdns->services[i];
if (serv) {
outmsg.serv_replies[i] = REPLY_SERVICE_SRV | REPLY_SERVICE_TXT
| REPLY_SERVICE_TYPE_PTR | REPLY_SERVICE_NAME_PTR;
outmsg.serv_replies[i] = REPLY_SERVICE_SRV | REPLY_SERVICE_TXT;
}
}