Value | Meaning |
---|---|
AI_PASSIVE0x00000001 | Socket address will be used in bind() call |
AI_CANONNAME0x00000002 | Return canonical name in first ai_canonname |
AI_NUMERICHOST0x00000004 | Nodename must be a numeric address string |
AI_NUMERICSERV0x00000008 | Servicename must be a numeric port number |
AI_ALL0x00000100 | Query both IP6 and IP4 with AI_V4MAPPED |
AI_ADDRCONFIG0x00000400 | Resolution only if global address configured |
AI_V4MAPPED0x00000800 | On v6 failure, query v4 and convert to V4MAPPED format |
AI_NON_AUTHORITATIVE0x00004000 | LUP_NON_AUTHORITATIVE |
AI_SECURE0x00008000 | LUP_SECURE |
AI_RETURN_PREFERRED_NAMES0x00010000 | LUP_RETURN_PREFERRED_NAMES |
AI_FQDN0x00020000 | Return the FQDN in ai_canonname |
AI_FILESERVER0x00040000 | Resolving fileserver name resolution |
AI_MASK(AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV | AI_ADDRCONFIG) | |
AI_DEFAULT(AI_V4MAPPED | AI_ADDRCONFIG) |