more transparant support for IPv6 name resolving

This commit is contained in:
Daniel Stenberg
2001-09-28 07:05:26 +00:00
parent 888d39e083
commit 48dc74aecc
5 changed files with 51 additions and 53 deletions

View File

@@ -26,6 +26,7 @@
/* This file is for lib internal stuff */
#include "setup.h"
#include "hostip.h"
#define PORT_FTP 21
#define PORT_TELNET 23
@@ -223,12 +224,12 @@ struct connectdata {
#define PROT_FILE (1<<8)
#define PROT_FTPS (1<<9)
Curl_addrinfo *hp; /* IP-protocol independent host info pointer list */
char *hostent_buf; /* pointer to allocated memory for name info */
#ifdef ENABLE_IPV6
struct addrinfo *hp; /* host info pointer list */
struct addrinfo *ai; /* the particular host we use */
#else
char *hostent_buf; /* pointer to allocated memory for name info */
struct hostent *hp;
struct sockaddr_in serv_addr;
#endif
char protostr[64]; /* store the protocol string in this buffer */