Add AI_ADDRCONFIG to getaddrinfo(3).

This commit is contained in:
Jonas 'Sortie' Termansen 2023-03-19 14:59:35 +01:00
parent c57ff050e9
commit 4ac7072f2a
1 changed files with 3 additions and 1 deletions

View File

@ -408,7 +408,9 @@ int getaddrinfo(const char* restrict node,
}
// TODO: Implement missing flags.
int supported = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV | AI_CANONNAME;
// TODO: Revisit AI_ADDRCONFIG when IPv6 is implemented.
int supported = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV |
AI_CANONNAME | AI_ADDRCONFIG;
if ( flags & ~supported )
return EAI_BADFLAGS;