aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip6.c
AgeCommit message (Collapse)Author
2009-12-30VMS specific preprocessor symbol checking adjustmentsYang Tse
2009-04-21libcurl's memory.h renamed to curl_memory.hYang Tse
2009-04-21Moved potential inclusion of system's malloc.h and memory.h header files toYang Tse
setup_once.h. Inclusion of each header file is based on the definition of NEED_MALLOC_H and NEED_MEMORY_H respectively.
2008-10-30Move curl_dofreeaddrinfo() and curl_dofreeaddrinfo()Yang Tse
implementation from lib/hostip6.c to lib/curl_addrinfo.c and prototypes from lib/hostip.h to lib/curl_addrinfo.h
2008-10-30Use our Curl_addrinfo definition even when an addrinfo struct is available.Yang Tse
Use a wrapper function to call system's getaddrinfo().
2008-10-27add null-pointer checkYang Tse
2008-09-29Removed unneeded includes of signal.h and setjmp.hDan Fandrich
2008-09-24ntoa() and inet_ntoa_r() no longer usedYang Tse
2008-07-27Eliminate a unnecessary socket creation in Curl_getaddrinfo for an IPv4Dan Fandrich
address in an IPv6 capable libcurl.
2007-11-07if () => if()Daniel Stenberg
while () => while() and some other minor re-indentings
2007-07-01Thomas J. Moore provided a patch that introduces Kerberos5 support inDaniel Stenberg
libcurl. This also makes the options change name to --krb (from --krb4) and CURLOPT_KRBLEVEL (from CURLOPT_KRB4LEVEL) but the old names are still
2007-02-26Removed inclusion of <sys/types.h> and <sys/stat.h> in .c-filesGisle Vanem
since they're already included through "setup.h".
2007-02-16use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handlingYang Tse
2006-07-27put back the correct logic, as the change dated July 11th 2006 added badDaniel Stenberg
behaviour and a socket leak
2006-07-25Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H ↵Yang Tse
shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.
2006-07-24Use the proper Curl_freeaddrinfo() for CURLRES_ARES.Gisle Vanem
2006-07-21Constify arguments to Curl_he2ai() and Curl_addrinfo_copy().Gisle Vanem
2006-07-21Constify 'hostname' and 'service' to various resolver functions.Gisle Vanem
2006-07-21Changes for combination ENABLE_IPV6 and USE_ARES.Gisle Vanem
2006-07-20Avoid warning "comparison of unsigned expression < 0 is always false"Gisle Vanem
2006-07-11include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.Yang Tse
2006-07-04Test HAVE_GETNAMEINFO definition before using GETNAMEINFO_XXX definitions.Yang Tse
2006-07-03Fix compiler warning.Yang Tse
2006-05-05additional renames of Curl_ourerrno => Curl_sockerrnoDaniel Stenberg
2006-05-04Roland Blom filed bug report #1481217Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=1481217), with follow-ups by Michele Bini and David Byron. libcurl previously wrongly used GetLastError() on windows to get error details after socket-related function calls, when it really should use WSAGetLastError() instead. When changing to this, the former function Curl_ourerrno() is now instead called Curl_sockerrno() as it is necessary to only use it to get errno from socket-related functions as otherwise it won't work as intended on Windows.
2006-04-26Use the HAVE_MALLOC_H and HAVE_PROCESS_H definesGisle Vanem
(more logical).
2005-12-13Undo last 'fix', since it was not the proper one.Yang Tse
2005-12-12Fix compiler warningYang Tse
2005-12-11Undo last changesYang Tse
2005-12-11Fix compiler warning and compatibility issue with the type of the parameter ↵Yang Tse
used in getnameinfo() to receive the length of the sockaddr struct.
2005-12-08Fix compiler warningYang Tse
2005-11-08Removed the use of AI_CANONNAME in the IPv6-enabled resolver functions sinceDaniel Stenberg
we really have no use for reverse lookups of the address. I truly hope these are the last reverse lookups we had lingering in the code!
2005-10-20Added a dump_addrinfo() function to ease debugging of resolved names. DefineDaniel Stenberg
DEBUG_ADDRINFO to enable.
2005-10-10pass a NULL pointer in the service argument (the second) if the port numberDaniel Stenberg
was 0 as it seems at least some AIX versions don't like a "0" string there
2005-09-16keep 'socktype' in the connectdata struct and make sure we use that for allDaniel Stenberg
protocol sockets even if the resolved address may say otherwise
2005-09-02John Kelly added TFTP support to libcurl. A bunch of new error codes wasDaniel Stenberg
added. TODO: add them to docs. add TFTP server to test suite. add TFTP to list of protocols whereever those are mentioned.
2005-04-19only define _REENTRANT if not already defined, and only in setup.hDaniel Stenberg
2005-03-17include inet_pton.hDaniel Stenberg
2005-03-17use Curl_inet_pton(), not inet_pton().Daniel Stenberg
2005-02-09FTP code turned into state machine. Not completely yet, but a good start.Daniel Stenberg
The tag 'before_ftp_statemachine' was set just before this commit in case of future need.
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-08-20actually, we check for a numerical host using either ipv4 or ipv6, as neitherDaniel Stenberg
should result in a reverse dns lookup
2004-08-20use inet_pton() correctly!Daniel Stenberg
2004-08-19Ling Thio pointed out that getaddrinfo() reverse-lookups ip-only names, andDaniel Stenberg
this is an attempt to prevent it from doing that. affects ipv6-enabled only.
2004-06-24Gisle cleaned up remaining host resolve re-org issuesDaniel Stenberg
2004-06-10Gisle Vanem's improved verbose output and timeout handling when connecting toDaniel Stenberg
a host name that resolves to multiple IP addresses.
2004-05-11curl_global_init_mem() allows the memory functions to be replaced.Daniel Stenberg
memory.h is included everywhere for this.
2004-04-26corrected mistakeDaniel Stenberg
2004-04-26IDN adjustments and host cleanups by GisleDaniel Stenberg
2004-04-26Major hostip.c cleanup and split into multiple files and easier #ifdefDaniel Stenberg
usage.