path: root/ares__get_hostent.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-17ares_inet_pton/ntop: cleanupDaniel Stenberg1-1/+1
Make sure that the symbols are always exported and present in c-ares. Make the headers prefixed with 'ares'. Removed the inet_ntop.h version as it no longer features any content.
2012-12-14setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>Yang Tse1-3/+0
Inclusion of these two header files now done in setup_once.h
2011-08-20warnings: fix some 'conversion may lose significant bits' compiler warningsYang Tse1-3/+4
2010-03-27remove all $Id$ linesDaniel Stenberg1-1/+0
2010-03-05Added IPv6 name servers supportYang Tse1-5/+5
2009-11-02Renamed c-ares setup.h to ares_setup.hYang Tse1-1/+1
2009-10-19Fix compiler warning: local variable may be used without having been initializedYang Tse1-13/+13
2009-10-08Fix compiler warningYang Tse1-4/+5
2009-10-08Fix compiler warningYang Tse1-2/+2
2009-10-08Fix compiler warning: addition result could be truncated before cast to ↵Yang Tse1-1/+1
bigger sized type
2009-10-07Overhauled ares__get_hostent()Yang Tse1-96/+156
- Fixing out of bounds memory overwrite triggered with malformed /etc/hosts file. - Improving parsing of /etc/hosts file. - Validating requested address family. - Ensuring that failures always return a NULL pointer. - Adjusting header inclusions.
2009-04-14fix compiler warning: implicit conversion shortens 64-bit value into a ↵Yang Tse1-2/+2
32-bit value
2009-01-31- ares_gethostbyname() now accepts 'AF_UNSPEC' as a family for resolvingDaniel Stenberg1-10/+14
either AF_INET6 or AF_INET. It works by accepting any of the looksups in the hosts file, and it resolves the AAAA field with a fallback to A.
2008-09-15include header file only when availableYang Tse1-1/+9
2008-09-11move inclusion of ares_private.h lastYang Tse1-1/+1
2007-06-02Ashish Sharma provided a patch for supporting multiple entries in theDaniel Stenberg1-0/+1
/etc/hosts file. Patch edited for coding style and functionality by me (Daniel).
2007-02-26Removed inclusion of <sys/types.h> in .c-filesGisle Vanem1-1/+0
since it's already included through "setup.h".
2006-10-18Replace is*() macros with our own IS*() ones.Yang Tse1-9/+9
Get rid of non ANSI/ISO isascii().
2006-07-222nd try adding CVS id.Gisle Vanem1-1/+1
2006-07-22Added CVS id.Gisle Vanem1-0/+2
2005-04-08Added include for inet_net_pton.h to ares__get_hostent.cDominick Meglio1-0/+1
2005-04-08Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the familyDominick Meglio1-5/+21
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg1-58/+58
2004-08-20Changes for Watt-32 on Windows. I've assumed ConfigureGisle Vanem1-3/+1
sets the required HAVE_xx defines for non-DOS/Win targets.
2004-07-22- Fixed a few variable return types for some system calls. Made configureDaniel Stenberg1-0/+1
check for ssize_t to make it possible to use that when receiving the send() error code. This is necessary to prevent compiler warnings on some systems. - Made configure create config.h, and all source files now include setup.h that might include the proper config.h (or a handicrafted alternative). - Switched to 'ares_socket_t' type for sockets in ares, since Windows don't use 'int' for that. - automake-ified and libool-ified c-ares. Now it builds libcares as a shared lib on most platforms if wanted. (This bloated the size of the release archive with another 200K!) - now uses for the c sources, h headers and man pages, to make it easier for other makefiles to use the exact same set of files. - Adjusted 'maketgz' to use the new automake magic when building distribution archives.
2004-05-27better checks to avoid free(NULL)Daniel Stenberg1-4/+4
2004-05-27James Bursa's fix to prevent free(NULL) to occurDaniel Stenberg1-5/+9
2004-02-02remove rcsid stuff from c files, it serves no useful purposeDaniel Stenberg1-2/+0
2003-10-07ares 1.1.1 with collected applied patchesDaniel Stenberg1-0/+171