lwIP - A Lightweight TCP/IP stack - Bugs: bug #65583, DNS lookup should take into...
You are not allowed to post comments on this tracker with your current authentication level.
bug #65583: DNS lookup should take into account available source IPv6 and IPv4 addresses
Submitter: | Sly Gryphon <sgryphon> | ||
Submitted: | Thu 11 Apr 2024 09:46:39 PM UTC | ||
Category: | IPv6 | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open | Planned Release: | None |
lwIP version: | 2.1.3 |
Sat 27 Apr 2024 06:52:57 AM UTC, comment #2: |
Sly Gryphon <sgryphon> |
Sat 27 Apr 2024 05:18:29 AM UTC, comment #1: This bug also breaks DNS64/NAT64 when a client with both IPv6 and IPv4 is deployed to an IPv6-only network.
|
Sly Gryphon <sgryphon> |
Thu 11 Apr 2024 09:46:39 PM UTC, original submission:
# What is wrong
|
Sly Gryphon <sgryphon> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Powered by Savane 3.13-bb6a.
Corresponding source code
I have a branch with my code from ESP-LWIP moved across. Rather than a simple compare, I put in the structure of a full sort, and added the RFC 6724 examples as test cases.
It still takes a few short cuts and only properly handles the LWIP case of at most 2 results (one IPv6 and one IPv4), so not all the example tests are implemented.
`getaddrinfo()` now returns both results (linked; which is handled by `freeaddrinfo()`), so you may get up to two results (e.g. could be used for fallback/happy eyeballs in a dual stack environment).
I still need to run a test app to check it works; I couldn't see anything in LWIP (did find some unit test though, which I used).
I will try and getting it running with my ESP-IDF setup.
Branch is here, if anyone is interested:
https://github.com/sgryphon/lwip/tree/sgryphon/dns-dynamic-sort-rfc6724