Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Yang Tse
8fe746fcf2
Added IPv6 name servers support
15 years ago
Yang Tse
a82a8fbf82
Renamed c-ares setup.h to ares_setup.h
15 years ago
Yang Tse
e199ec677f
Fix compiler warning: local variable may be used without having been initialized
15 years ago
Yang Tse
f3346ca16b
Fix compiler warning
15 years ago
Yang Tse
e112f191a3
Fix compiler warning
15 years ago
Yang Tse
716d5817dc
Fix compiler warning: addition result could be truncated before cast to bigger sized type
15 years ago
Yang Tse
c2d3e82931
Overhauled ares__get_hostent()
...
- 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.
15 years ago
Yang Tse
737707bf4b
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
16 years ago
Daniel Stenberg
1ce8e6583e
- ares_gethostbyname() now accepts 'AF_UNSPEC' as a family for resolving
...
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.
16 years ago
Yang Tse
f2582d6949
include header file only when available
16 years ago
Yang Tse
2cb5cbba34
move inclusion of ares_private.h last
16 years ago
Daniel Stenberg
4e27354b82
Ashish Sharma provided a patch for supporting multiple entries in the
...
/etc/hosts file. Patch edited for coding style and functionality by me
(Daniel).
18 years ago
Gisle Vanem
a627160041
Removed inclusion of <sys/types.h> in .c-files
...
since it's already included through "setup.h".
18 years ago
Yang Tse
dd3b42e1ac
Replace is*() macros with our own IS*() ones.
...
Get rid of non ANSI/ISO isascii().
18 years ago
Gisle Vanem
0a83c1e416
2nd try adding CVS id.
19 years ago
Gisle Vanem
f6e7395ca0
Added CVS id.
19 years ago
Dominick Meglio
e55c48b8cf
Added include for inet_net_pton.h to ares__get_hostent.c
20 years ago
Dominick Meglio
29d71bd499
Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family
20 years ago
Daniel Stenberg
3e748f4b50
removed tabs and trailing whitespace from source
20 years ago
Gisle Vanem
6deb40acac
Changes for Watt-32 on Windows. I've assumed Configure
...
sets the required HAVE_xx defines for non-DOS/Win targets.
21 years ago
Daniel Stenberg
d5f3636a52
- Fixed a few variable return types for some system calls. Made configure
...
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!)
- Makefile.am now uses Makefile.inc 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.
21 years ago
Daniel Stenberg
8cb7fd4e22
better checks to avoid free(NULL)
21 years ago
Daniel Stenberg
d870be584d
James Bursa's fix to prevent free(NULL) to occur
21 years ago
Daniel Stenberg
3d0a7c00df
remove rcsid stuff from c files, it serves no useful purpose
21 years ago
Daniel Stenberg
5e847a14bd
ares 1.1.1 with collected applied patches
21 years ago