masc2008 opened a new pull request, #3404: URL: https://github.com/apache/nuttx-apps/pull/3404
dns look for both IPv4/v6 when do dns_query, so when do ping, it should try both ipv4 and ipv6 address before return "ping_gethostip" error. *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary dns look for both IPv4/v6 when do dns_query, so when do ping, it should try both ipv4 and ipv6 address before return "ping_gethostip" error. ## Impact The network packet losing IPv4 or IPv6 dns resolve response is quite common in network pressure test. It will return get host error without this change. It's miss-leading report to end user. It's also quite common practice for linux to use one ping support both ping and ping6. ## Testing attach two network packet that packet losing for either v4 or v6. <img width="1812" height="175" alt="image" src="https://github.com/user-attachments/assets/63cde99e-08b1-4897-8f35-69e828e36e84" /> <img width="1814" height="201" alt="image" src="https://github.com/user-attachments/assets/a7ee3ad9-085b-4897-8c84-82dbac39bb71" /> Error log attached as below: ping -c 5 www.baidu.com ERROR: ping_gethostip(www.baidu.com) failed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
