rust-embedded-community / embedded-nal

An Embedded Network Abstraction Layer
Apache License 2.0
177 stars 25 forks source link

get_host_by_name: Clarify behavior w/rt AI_V4MAPPED and AI_ADDRCONFIG #90

Open chrysn opened 11 months ago

chrysn commented 11 months ago

There are some features in name resolution that are quite useful on large systems. I'll refer to them by their POSIX names for lack of better terminology:

To me, from the docs, it is unclear from the documentation whether or not these are supposed to be done by get_host_by_name / whether support is optional or mandatory / how optional support is signaled.

My suggestions are those:

Is that a line you could get behind, and could implement on your implementations of embedded-nal? If so, I can build all of this into a PR on the documentation.

[^1]: I'm aware that (modulo bugs in implementations), ADDRCONFIG is doing what it is supposed to do, but right now I don't have a better name for what I think it should do.