mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-27 16:43:00 +00:00
Revert "mDNS: authority section of probe message needs to contain all records"
This reverts commit e959e6efaf8a1cb57e9a5d4d8e0056c7ea52179f.
This commit is contained in:
parent
ee7ed8c87d
commit
405fc4d802
@ -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 */
|
/* Add answers to the questions above into the authority section for tiebreaking */
|
||||||
#if LWIP_IPV4
|
#if LWIP_IPV4
|
||||||
if (!ip4_addr_isany_val(*netif_ip4_addr(netif))) {
|
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
|
#endif
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
|
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
|
||||||
if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i))) {
|
if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i))) {
|
||||||
outmsg.host_replies |= REPLY_HOST_AAAA | REPLY_HOST_PTR_V6;
|
outmsg.host_replies |= REPLY_HOST_AAAA;
|
||||||
outmsg.host_reverse_v6_replies |= (1 << i);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -1314,8 +1313,7 @@ mdns_send_probe(struct netif* netif, const ip_addr_t *destination)
|
|||||||
for (i = 0; i < MDNS_MAX_SERVICES; i++) {
|
for (i = 0; i < MDNS_MAX_SERVICES; i++) {
|
||||||
struct mdns_service *serv = mdns->services[i];
|
struct mdns_service *serv = mdns->services[i];
|
||||||
if (serv) {
|
if (serv) {
|
||||||
outmsg.serv_replies[i] = REPLY_SERVICE_SRV | REPLY_SERVICE_TXT
|
outmsg.serv_replies[i] = REPLY_SERVICE_SRV | REPLY_SERVICE_TXT;
|
||||||
| REPLY_SERVICE_TYPE_PTR | REPLY_SERVICE_NAME_PTR;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user