mdns: clarify usage of ip_addr_cmp_zoneless()

This commit is contained in:
goldsimon 2018-01-26 06:32:35 +01:00
parent de68c5bed6
commit 05ba509e33

View File

@ -1814,6 +1814,7 @@ mdns_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr,
#if LWIP_IPV6 #if LWIP_IPV6
if (IP_IS_V6(ip_current_dest_addr())) { if (IP_IS_V6(ip_current_dest_addr())) {
/* instead of having one 'v6group' per netif, just compare zoneless here */
if (!ip_addr_cmp_zoneless(ip_current_dest_addr(), &v6group)) { if (!ip_addr_cmp_zoneless(ip_current_dest_addr(), &v6group)) {
packet.recv_unicast = 1; packet.recv_unicast = 1;
} }