Merge branch 'bugfix/mdns_src_addr_cpy' into 'master'

mdns: Fix wrong mdns source address if lwIP IPv6 zoning disabled

Closes IDFGH-4196

See merge request espressif/esp-idf!11145
pull/6192/head
David Čermák 2020-11-12 00:15:41 +08:00
commit fa1899b071
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -127,7 +127,8 @@ static void _udp_recv(void *arg, struct udp_pcb *upcb, struct pbuf *pb, const ip
packet->tcpip_if = MDNS_IF_MAX;
packet->pb = this_pb;
packet->src_port = rport;
memcpy(&packet->src, raddr, sizeof(ip_addr_t));
packet->src.type = raddr->type;
memcpy(&packet->src.u_addr, &raddr->u_addr, sizeof(raddr->u_addr));
packet->dest.type = packet->src.type;
if (packet->src.type == IPADDR_TYPE_V4) {