mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 15:16:03 +00:00
mdns: clarify usage of ip_addr_cmp_zoneless()
This commit is contained in:
parent
de68c5bed6
commit
05ba509e33
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user