| Value | Meaning |
|---|---|
| AI_PASSIVE0x00000001 | get address to use bind() |
| AI_CANONNAME0x00000002 | fill ai_canonname |
| AI_NUMERICHOST0x00000004 | prevent host name resolution |
| AI_NUMERICSERV0x00000008 | prevent service name resolution valid flags for addrinfo (not a standard def, apps should not use it) |
| AI_ALL0x00000100 | IPv6 and IPv4-mapped (with AI_V4MAPPED) |
| AI_V4MAPPED_CFG0x00000200 | accept IPv4-mapped if kernel supports |
| AI_ADDRCONFIG0x00000400 | only if any address is assigned |
| AI_V4MAPPED0x00000800 | accept IPv4-mapped IPv6 address special recommended flags for getipnodebyname |
| AI_MASK(AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV | AI_ADDRCONFIG) | |
| AI_DEFAULT(AI_V4MAPPED_CFG | AI_ADDRCONFIG) |