Skip to content

Commit

Permalink
nrf_modem: include: add details to nrf_getaddrinfo
Browse files Browse the repository at this point in the history
Add details about NRF_AF_UNSPEC to getaddrinfo docs.

Signed-off-by: Eivind Jølsgard <[email protected]>
  • Loading branch information
eivindj-nordic authored and jfischer-no committed Feb 28, 2024
1 parent 3d69019 commit 51957db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nrf_modem/include/nrf_socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,12 @@ const char *nrf_inet_ntop(int af, const void *restrict src, char *restrict dst,
* See <a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/getaddrinfo.html">
* POSIX.1-2017 article</a> for normative description.
*
* @note
* When using address family @c NRF_AF_UNSPEC the implementation attempt to resolve the IPv6
* address first. If successfull, the resolved address is returned. If not, the implementation
* attempts to resolve and return the IPv4 family address. This applies regardless of the PDN
* supporting IPv6 or not.
*
* In addition, the function shall return -1 and set the following errno:
* - [NRF_ESHUTDOWN] Modem was shut down.
*/
Expand Down

0 comments on commit 51957db

Please sign in to comment.