Yang Tse [Mon, 16 Apr 2012 20:10:23 +0000 (22:10 +0200)]
ares_init.c: get_iphlpapi_dns_info() refactoring
Guenter Knauf [Mon, 16 Apr 2012 13:33:14 +0000 (15:33 +0200)]
Kill some more compiler warnings.
Guenter Knauf [Mon, 16 Apr 2012 13:24:14 +0000 (15:24 +0200)]
Kill compiler warning about unused var.
Guenter Knauf [Mon, 16 Apr 2012 09:27:16 +0000 (11:27 +0200)]
Fixed my last commit: wrong preprocessor directive.
Guenter Knauf [Mon, 16 Apr 2012 08:34:05 +0000 (10:34 +0200)]
Check for __ANDROID__ in addition to ANDROID macro.
Guenter Knauf [Mon, 16 Apr 2012 08:19:07 +0000 (10:19 +0200)]
Check for __ANDROID__ in addition to ANDROID macro.
Posted to c-ares list by Wayne.
Guenter Knauf [Sat, 14 Apr 2012 11:30:29 +0000 (13:30 +0200)]
Fix for Android to disable useless arpa/nameser.h.
Guenter Knauf [Sat, 14 Apr 2012 10:27:08 +0000 (12:27 +0200)]
Fix for Android to include sys/select.h for fd_set.
Yang Tse [Sat, 17 Mar 2012 01:45:03 +0000 (02:45 +0100)]
ares_data.c: some NAPTR related fixes
Daniel Stenberg [Sat, 25 Feb 2012 21:42:39 +0000 (22:42 +0100)]
port numbers: convert them to network order!
When the config options ARES_OPT_UDP_PORT or ARES_OPT_TCP_PORT are used,
make sure to convert them to network byte order!
Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-02/0004.shtml
Daniel Stenberg [Sat, 25 Feb 2012 21:36:50 +0000 (22:36 +0100)]
white space cleanup
- Keep code within 80 columns
- Removed funny spaces after open paren and before closing paren
Poul Thomas Lomholt [Sat, 25 Feb 2012 21:32:24 +0000 (22:32 +0100)]
get_iphlpapi_dns_info: fix buffer overrun
I experienced a buffer overrun exception in c-ares on Windows and
tracked it down to be an error in the calculation of the 'left' variable
in get_iphlpapi_dns_info().
I changed the variable type of 'left' to a _signed_ type because of the
subtraction arithmetic; not sure if a long is the best choice
Daniel Stenberg [Fri, 24 Feb 2012 21:18:26 +0000 (13:18 -0800)]
Merge pull request #7 from saghul/naptr
Added support for parsing NAPTR records
saghul [Thu, 23 Feb 2012 22:15:07 +0000 (23:15 +0100)]
Added support for parsing NAPTR records
Yang Tse [Thu, 19 Jan 2012 19:20:56 +0000 (20:20 +0100)]
ares_init.c: fix compiler warning on winsock builds
Yang Tse [Tue, 20 Dec 2011 13:02:00 +0000 (14:02 +0100)]
configure: libtool 1.5 tweaks
Daniel Stenberg [Mon, 19 Dec 2011 21:57:46 +0000 (22:57 +0100)]
ares_timeout.3: fix the NAME section
It was clearly a copy n' paste error
Albert Chin [Tue, 27 Sep 2011 19:59:27 +0000 (21:59 +0200)]
configure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol def
When using Sun C compiler the preprocessor somehow inserts an extra space
in front of replaced symbol, breaking CURL_CHECK_DEF macro. To workaround
this, macro CURL_CHECK_DEF now ignores all leading whitespace in front of
symbol substitution result.
Yang Tse [Tue, 6 Sep 2011 22:30:53 +0000 (00:30 +0200)]
ares_init.c: fix segfault triggered in ares_init_options() upon previous
failure of init_by_defaults() and incomplete cleanup there.
Yang Tse [Tue, 6 Sep 2011 00:20:43 +0000 (02:20 +0200)]
ares_process.c: fix compiler warning
Yang Tse [Sun, 4 Sep 2011 15:23:39 +0000 (17:23 +0200)]
fix MSVC compiler warning 'conditional expression is constant'
Yang Tse [Sun, 4 Sep 2011 15:09:36 +0000 (17:09 +0200)]
setup_once.h cleanup and sync
Denis Bilenko [Wed, 24 Aug 2011 16:37:11 +0000 (18:37 +0200)]
ares_getnameinfo: fix random results with c-ares 1.7.5
In ares_getnameinfo memcpy did not copy enough bytes, causing
it to return arbitrary memory contents as a result.
Yang Tse [Sun, 21 Aug 2011 17:56:06 +0000 (19:56 +0200)]
warnings: fix another 'conversion may lose significant bits' compiler warning
Yang Tse [Sun, 21 Aug 2011 17:18:53 +0000 (19:18 +0200)]
ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions
Fixing compiler warnings existing definitions triggered on these.
Yang Tse [Sun, 21 Aug 2011 14:41:43 +0000 (16:41 +0200)]
ares_destroy.c: fix segfault in ares_destroy_options()
Daniel Stenberg [Sun, 21 Aug 2011 13:43:36 +0000 (15:43 +0200)]
ares_parse_srv_reply: silence compiler warnings
... by adding ugly typecasts.
Daniel Stenberg [Sun, 21 Aug 2011 13:36:52 +0000 (15:36 +0200)]
CHANGES: generate from script
The CHANGES file is now generated automatically with 'git2changes.pl',
invoked by the maketgz script which is used to build release archives.
The former human edited CHANGES file was renamed to CHANGES.0 in git.
Yang Tse [Sat, 20 Aug 2011 23:59:14 +0000 (01:59 +0200)]
Makefile.netware: SIZEOF_SHORT definition
Yang Tse [Sat, 20 Aug 2011 21:05:14 +0000 (23:05 +0200)]
warnings: fix some 'conversion may lose significant bits' compiler warnings
Yang Tse [Sat, 20 Aug 2011 18:11:00 +0000 (20:11 +0200)]
configure: fix symbol hiding usability check
A more thorough test is done now in order to determine visibility attribute
usability, given that some compilers don't support visibility attribute on
all configurations.
Daniel Stenberg [Tue, 16 Aug 2011 21:02:39 +0000 (23:02 +0200)]
1.7.6: start working...
Daniel Stenberg [Tue, 16 Aug 2011 20:41:44 +0000 (22:41 +0200)]
CHANGES: synced for 1.7.5 release
Daniel Stenberg [Tue, 16 Aug 2011 20:32:41 +0000 (22:32 +0200)]
RELEASE-NOTES: synced with
bb4096effef7f000
Jakub Hrozek [Mon, 13 Jun 2011 10:53:22 +0000 (12:53 +0200)]
Only fall back to AF_INET searches when looking for AF_UNSPEC addresses
Gisle Vanem [Wed, 10 Aug 2011 01:31:39 +0000 (03:31 +0200)]
ares_iphlpapi.h: Watcom C fix
Added "!defined(_WS2DEF_)" since Watcom doesn't have
a per type guard for the typedefs 'CSADDR_INFO' (that MingW has) or
'SOCKET_ADDRESS' (that MSVC has). But we can use the header-guard for
<ws2def.h> instead.
Gisle Vanem [Wed, 10 Aug 2011 01:29:02 +0000 (03:29 +0200)]
Makefile.Watcom:
* The 'NTDDI_VERSION' needs to be raised to 0x05010000
in order for SOCKADDR_STORAGE etc. to be typedefed.
* Replaced '-dUSE_WATT32' with '-dWATT32'.
* Added $(DEMOS) to the 'all' target and removed the 'demos'
target to be consistent with e.g. Makefile.msvc etc.
* 'ENABLE_IPV6' is no longer used. Hence removed the '%use_ipv6' construct.
* object-file order seems to be important (Watcom v.19). Hence
'ares_getopt.obj' must be put after the .obj that references getopt().
Yang Tse [Mon, 8 Aug 2011 16:33:05 +0000 (18:33 +0200)]
cares-compilers.m4: CARES_CONVERT_INCLUDE_TO_ISYSTEM adjustments
Add CARES_CHECK_COMPILER as a requirement.
Ensure macro does nothing unless GNU_C or CLANG compiler is used.
This should allow usage of this macro in unforeseen placements.
Yang Tse [Sat, 6 Aug 2011 17:25:21 +0000 (19:25 +0200)]
config-win32.h: comments adjustments - followup
Yang Tse [Sat, 6 Aug 2011 17:18:16 +0000 (19:18 +0200)]
config-win32.h: comments adjustments
Tom Hughes [Wed, 27 Jul 2011 21:13:55 +0000 (14:13 -0700)]
ares_parse_a_reply: fix memleak
Yang Tse [Fri, 29 Jul 2011 18:31:56 +0000 (20:31 +0200)]
cares-functions.m4 serial # bump
Yang Tse [Fri, 29 Jul 2011 18:20:44 +0000 (20:20 +0200)]
Revert "configure: additional flag checks for fcntl() and socket()"
This reverts commit
5f2a3b0e48f26d24cb1fefea0dccb92d417dcbf7.
Yang Tse [Fri, 29 Jul 2011 16:25:34 +0000 (18:25 +0200)]
configure: additional flag checks for fcntl() and socket()
Yang Tse [Mon, 20 Jun 2011 22:06:00 +0000 (00:06 +0200)]
xc-translit.m4 fix quoting
Yang Tse [Fri, 17 Jun 2011 19:01:40 +0000 (21:01 +0200)]
configure: avoid direct usage of AS_TR_* macros
Yang Tse [Fri, 17 Jun 2011 18:59:58 +0000 (20:59 +0200)]
xc-translit.m4 provides transliteration macros with well defined behavior.
Jakub Hrozek [Wed, 15 Jun 2011 08:56:05 +0000 (10:56 +0200)]
Revert "Only fall back to AF_INET searches when looking for AF_UNSPEC addresses"
This reverts commit
b5823d65706af687c0e5110af8f0cfdcd068997d.
This patch was not reviewed properly before pushing
Jakub Hrozek [Wed, 15 Jun 2011 08:55:29 +0000 (10:55 +0200)]
Revert "Do not use sized constants in public headers"
This reverts commit
22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d.
This is a Red Hat specific patch that does not belong into upstream
Jakub Hrozek [Tue, 14 Jun 2011 17:04:23 +0000 (19:04 +0200)]
Use correct sizeof in ares_getnameinfo()
Jakub Hrozek [Tue, 14 Jun 2011 14:52:32 +0000 (16:52 +0200)]
Do not leak rr_name on failures inside ares_parse_ptr_reply
Jakub Hrozek [Tue, 14 Jun 2011 14:48:26 +0000 (16:48 +0200)]
Do not leak rr_name on failures inside ares_parse_a_reply
Jakub Hrozek [Tue, 14 Jun 2011 14:46:13 +0000 (16:46 +0200)]
Do not leak rr_name on failures inside ares_parse_aaaa_reply
Jakub Hrozek [Tue, 14 Jun 2011 14:40:07 +0000 (16:40 +0200)]
Do not leak rr_name on failures inside ares_parse_ns_reply
Jakub Hrozek [Tue, 14 Jun 2011 14:33:09 +0000 (16:33 +0200)]
Fix incorrect sizeof() in ares_save_options
Jakub Hrozek [Tue, 14 Jun 2011 13:56:33 +0000 (15:56 +0200)]
Fix incorrect allocation in ares_parse_ptr_reply()
Jakub Hrozek [Mon, 13 Jun 2011 10:53:22 +0000 (12:53 +0200)]
Only fall back to AF_INET searches when looking for AF_UNSPEC addresses
Jakub Hrozek [Wed, 16 Jun 2010 09:28:49 +0000 (11:28 +0200)]
Do not use sized constants in public headers
Jakub Hrozek [Mon, 13 Jun 2011 16:21:08 +0000 (18:21 +0200)]
ares_free_hostent(NULL) should be a noop
Yang Tse [Wed, 8 Jun 2011 13:55:48 +0000 (15:55 +0200)]
configure: fix recvfrom 5th arg type qualifier detection (followup)
Yang Tse [Wed, 8 Jun 2011 11:38:10 +0000 (13:38 +0200)]
configure: fix recvfrom 5th arg type qualifier detection
Additionally remove whitespace from EOL
Daniel Stenberg [Sat, 4 Jun 2011 18:14:38 +0000 (20:14 +0200)]
strlen: use size_t to receive the return
Yang Tse [Sat, 4 Jun 2011 02:26:40 +0000 (04:26 +0200)]
xlc: avoid preprocessor definition usage when linking
Yang Tse [Wed, 1 Jun 2011 10:13:05 +0000 (12:13 +0200)]
ares_nowarn: icc 9.1 workaround
Yang Tse [Fri, 27 May 2011 04:55:50 +0000 (06:55 +0200)]
ares_nowarn: header inclusion fix
Yang Tse [Thu, 26 May 2011 15:32:43 +0000 (17:32 +0200)]
ares_init: make ares_private.h last included header again
Yang Tse [Thu, 26 May 2011 14:06:40 +0000 (16:06 +0200)]
compiler warning: fix
Fix compiler warning: conversion may lose significant bits
Yang Tse [Wed, 25 May 2011 09:19:10 +0000 (11:19 +0200)]
compiler warning: fix
Fix compiler warning: variable was set but never used
Fix compiler warning: clobber ignored
Yang Tse [Sat, 21 May 2011 01:53:32 +0000 (03:53 +0200)]
ares_iphlpapi: fix compiler warnings
Yang Tse [Fri, 20 May 2011 14:43:25 +0000 (16:43 +0200)]
winsock: compilation fixes
Provide winsock iphlpapi alternative definitions to prevent compilation
failures when using a variety of winsock header implementations.
David Stuart [Tue, 17 May 2011 09:53:13 +0000 (11:53 +0200)]
IPv6-on-windows: find DNS servers correctly
Daniel Stenberg [Mon, 9 May 2011 09:45:35 +0000 (11:45 +0200)]
man pages: docs for the c-ares utility programs
Daniel Stenberg [Fri, 29 Apr 2011 22:17:03 +0000 (00:17 +0200)]
ares_parse_ns_reply.c: remove CVSism
Yang Tse [Sun, 27 Mar 2011 08:37:03 +0000 (10:37 +0200)]
build: fix header inclusion
Yang Tse [Sun, 27 Mar 2011 02:27:49 +0000 (04:27 +0200)]
getservbyport replacement for Win CE
Yang Tse [Fri, 25 Mar 2011 16:57:02 +0000 (17:57 +0100)]
renamed getplatform() to ares__getplatform() to avoid namespace pollution
Yang Tse [Fri, 25 Mar 2011 12:13:55 +0000 (13:13 +0100)]
configure: fix libtool warning
Recent versions of libtool are now tracing usage of AC_CONFIG_MACRO_DIR
macro and warn heavily when not used in configure script along with
ACLOCAL_AMFLAGS in Makefile.am. So in order to make libtool happy
while keeping backwards compatibility this is added.
Yang Tse [Thu, 24 Mar 2011 19:25:49 +0000 (20:25 +0100)]
adig: RFC4034 resource record type detection
Can be tested with: adig -s 8.8.8.8 -t ANY example.com
Yang Tse [Thu, 24 Mar 2011 19:24:42 +0000 (20:24 +0100)]
nameser.h: RFC4034 resource record type definitions
Yang Tse [Thu, 24 Mar 2011 10:31:50 +0000 (11:31 +0100)]
build: move platform stuff to ares_platform.c and ares_platform.h
Yang Tse [Wed, 23 Mar 2011 19:53:28 +0000 (20:53 +0100)]
build: find out windows platform using GetVersionEx()
Yang Tse [Wed, 23 Mar 2011 12:44:42 +0000 (13:44 +0100)]
build: use getenv() replacement function for systems which lack it
Yang Tse [Tue, 22 Mar 2011 19:51:15 +0000 (20:51 +0100)]
setup_once: system error codes for Windows CE
Yang Tse [Tue, 22 Mar 2011 19:50:42 +0000 (20:50 +0100)]
ares_search: use ERRNO macro for portability sake
Yang Tse [Tue, 22 Mar 2011 16:19:37 +0000 (17:19 +0100)]
System's errno.h inclusion cleanup follow-up.
System's errno.h is conditionally included from setup_once.h
Yang Tse [Tue, 22 Mar 2011 13:28:47 +0000 (14:28 +0100)]
Windows CE specific adjustment
All versions of Windows CE support Winsock 1.1
Yang Tse [Tue, 22 Mar 2011 13:02:23 +0000 (14:02 +0100)]
System's errno.h inclusion cleanup.
System's errno.h is conditionally included from setup_once.h
Yang Tse [Tue, 22 Mar 2011 12:43:34 +0000 (13:43 +0100)]
ares_init: fix gethostname error detection on winsock platforms
Yang Tse [Tue, 22 Mar 2011 11:56:30 +0000 (12:56 +0100)]
configure: r-enable temporarily disabled detection of system's inet_ntop()
Detection was temporarily disabled in commit
674e044ccb21f2f63537da53565fce868f
Daniel Stenberg [Tue, 15 Mar 2011 10:28:30 +0000 (11:28 +0100)]
configure: stop using the deprecated AM_INIT_AUTOMAKE syntax
Gisle Vanem [Tue, 22 Feb 2011 13:16:51 +0000 (14:16 +0100)]
Watt-32: use errno
Make sure Watt-32 programs use 'errno' even on Win32 targets
Guenter Knauf [Fri, 18 Feb 2011 18:58:09 +0000 (19:58 +0100)]
Removed commented CLFAGS no longer needed.
Guenter Knauf [Fri, 18 Feb 2011 18:01:14 +0000 (19:01 +0100)]
Fixed CFLAGS for NetWare.
Added -m32 to enable compilation with x86_64 compilers;
added conditional to set -fpcc-struct-return only for gcc compiler.
Gisle Vanem [Tue, 15 Feb 2011 16:15:37 +0000 (17:15 +0100)]
Watt32: fix server init
Somewhere in the process, programs using the Watt-32 tcp/ip stack
stopped working.
Dima Tisnek [Wed, 16 Feb 2011 22:43:49 +0000 (23:43 +0100)]
config_sortlist: (win32) missing else
Without an else there, contents of "pat" that could have been
successfully set just above, may be clobbered by successive unsuccessful
calls to "xxx_pton" or "ip_addr".
Yang Tse [Mon, 17 Jan 2011 20:06:38 +0000 (21:06 +0100)]
Makefile.msvc: add a couple of VS version strings
Yang Tse [Mon, 17 Jan 2011 19:44:23 +0000 (20:44 +0100)]
Makefile.msvc: add a couple of VS version strings
Yang Tse [Mon, 17 Jan 2011 18:36:41 +0000 (19:36 +0100)]
build: add install target to Makefile.msvc
Daniel Stenberg [Mon, 27 Dec 2010 12:19:37 +0000 (13:19 +0100)]
ares_set_servers_csv: remove unused variables
Daniel Stenberg [Mon, 27 Dec 2010 12:18:54 +0000 (13:18 +0100)]
init_by_resolv_conf: fix compiler warnings
The code received the return codes in the 'status' variable without
using it. Instead we just ignore those particular errors.