Skip to content

Commit f8705a6

Browse files
richardmccrae-nordicsemijukkar
authored andcommitted
net: sockets: Add EAI error code translations
Added EAI_SOCKTYPE and EAI_FAMILY DNS error code translations Signed-off-by: Richard McCrae <[email protected]>
1 parent edfaa39 commit f8705a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/net/socket.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ static inline char *inet_ntop(sa_family_t family, const void *src, char *dst,
785785
#define EAI_MEMORY DNS_EAI_MEMORY
786786
#define EAI_SYSTEM DNS_EAI_SYSTEM
787787
#define EAI_SERVICE DNS_EAI_SERVICE
788+
#define EAI_SOCKTYPE DNS_EAI_SOCKTYPE
789+
#define EAI_FAMILY DNS_EAI_FAMILY
788790
#endif /* defined(CONFIG_NET_SOCKETS_POSIX_NAMES) */
789791

790792
/** sockopt: Socket-level option */

0 commit comments

Comments
 (0)