Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-02-01 18:54:40 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-02-01 18:54:40 +0300
commit4815dd49bb1483af60dad347ff351db13178a21e (patch)
treea23c35f243dd38e078a7a649a896713c9ccb08f3 /winsup/cygwin/include/netdb.h
parent328166424516fa793c932a9caa3305ad240490bf (diff)
* net.cc (ga_dup): New function, taken from ga_clone with v4-in-v6
mapping addition. (ga_clone): Just call ga_dup from here. (ga_duplist): New function to duplicate list of struct addrinfo. (ga_echeck): Don't check a_flags, it already happened in cygwin_getaddrinfo. (cygwin_freeaddrinfo): Always call ipv4_freeaddrinfo. (cygwin_getaddrinfo): Use new wincap.supports_all_posix_ai_flags flag rather than wincap.has_gaa_on_link_prefix. Always duplicate WinSock's addrinfo list to a self-allocated list. Handle AI_V4MAPPED for pre-Vista platforms supporting getaddrinfo. * wincap.h (wincapc::supports_all_posix_ai_flags): New element. * wincap.cc: Implement above element throughout. * include/netdb.h: Note how AI_ADDRCONFIG is not supported pre-Vista. Remove superfluous comment.
Diffstat (limited to 'winsup/cygwin/include/netdb.h')
-rw-r--r--winsup/cygwin/include/netdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/include/netdb.h b/winsup/cygwin/include/netdb.h
index 4f2ead1ae..ffa2f8792 100644
--- a/winsup/cygwin/include/netdb.h
+++ b/winsup/cygwin/include/netdb.h
@@ -148,9 +148,9 @@ extern __declspec(dllimport) int h_errno;
#define AI_CANONNAME 2
#define AI_NUMERICHOST 4
#define AI_NUMERICSERV 8
-/* Only available since Vista. Ignored on older systems. */
#define AI_ALL 256
-#define AI_ADDRCONFIG 1024
+#define AI_ADDRCONFIG 1024 /* Only available on Vista. Unchangable default
+ on older systems. */
#define AI_V4MAPPED 2048
#define NI_NOFQDN 1