Lines Matching refs:AI_ADDRCONFIG
17 #define AI_ADDRCONFIG 0
149 // DO NOT USE AI_ADDRCONFIG ON WINDOWS.
152 // on AI_ADDRCONFIG for Windows:
154 // - AI_ADDRCONFIG is supported starting with Vista
155 // - default is AI_ADDRCONFIG ON whether the flag is set or not
159 // in that case AI_ADDRCONFIG must be EXPLICITLY specified to
162 // Not only is AI_ADDRCONFIG unnecessary, but it can be harmful. If the
163 // computer is not connected to a network, AI_ADDRCONFIG causes getaddrinfo
165 // following note on AI_ADDRCONFIG in the MSDN getaddrinfo page:
173 hints.ai_flags = AI_ADDRCONFIG;
176 // On Linux AI_ADDRCONFIG doesn't consider loopback addreses, even if only
180 hints.ai_flags &= ~AI_ADDRCONFIG;
198 if ((hints.ai_family != AF_UNSPEC || hints.ai_flags & AI_ADDRCONFIG) &&
204 if (hints.ai_flags & AI_ADDRCONFIG) {
205 hints.ai_flags &= ~AI_ADDRCONFIG;