bugfix for ipv6_address_value_issue

Closes https://github.com/espressif/esp-idf/issues/5663
This commit is contained in:
Xue Yun Fei
2020-11-13 08:55:32 +00:00
committed by bot
parent 2d636cc58e
commit 74236f0b29
5 changed files with 20 additions and 20 deletions
@@ -84,7 +84,7 @@ static void udp_client_task(void *pvParameters)
}
ESP_LOGI(TAG, "Message sent");
struct sockaddr_in source_addr; // Large enough for both IPv4 or IPv6
struct sockaddr_storage source_addr; // Large enough for both IPv4 or IPv6
socklen_t socklen = sizeof(source_addr);
int len = recvfrom(sock, rx_buffer, sizeof(rx_buffer) - 1, 0, (struct sockaddr *)&source_addr, &socklen);