8e457f2c41
Fix incorrect sizeof() in ares_save_options
2011-06-14 16:41:29 +02:00
3cb1afe054
strlen: use size_t to receive the return
2011-06-04 20:14:38 +02:00
22a52102d6
ares_init: make ares_private.h last included header again
2011-05-26 17:32:43 +02:00
ef5390e6bb
winsock: compilation fixes
...
Provide winsock iphlpapi alternative definitions to prevent compilation
failures when using a variety of winsock header implementations.
2011-05-20 16:43:25 +02:00
6518b56a5e
IPv6-on-windows: find DNS servers correctly
2011-05-17 11:53:13 +02:00
5e5c0132e6
renamed getplatform() to ares__getplatform() to avoid namespace pollution
2011-03-25 17:57:02 +01:00
5b6a188909
build: move platform stuff to ares_platform.c and ares_platform.h
2011-03-24 11:31:50 +01:00
bd066ab8ef
build: find out windows platform using GetVersionEx()
2011-03-23 20:53:28 +01:00
8c503ddf79
System's errno.h inclusion cleanup.
...
System's errno.h is conditionally included from setup_once.h
2011-03-22 14:02:23 +01:00
ef8e2ad601
ares_init: fix gethostname error detection on winsock platforms
2011-03-22 13:43:34 +01:00
9a11973403
Watt32: fix server init
...
Somewhere in the process, programs using the Watt-32 tcp/ip stack
stopped working.
2011-02-18 13:59:00 +01:00
e14f136aa3
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".
2011-02-16 23:44:36 +01:00
bd6636c138
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.
2010-12-27 13:18:54 +01:00
b2dafb6974
ares_init: fix detection of semicolon comments in resolv.conf
...
File resolv.conf may either use a hash '#' or a semicolon ';' character as an
indication that the rest of the line is a comment. This fixes not recognizing
the semicolon as a valid comment indicator in resolv.conf.
2010-12-10 21:19:51 +01:00
a1c27d5480
fix compiler warning: rounding, sign extension, or loss of accuracy may result
2010-12-02 18:49:15 +01:00
41b8a1bfd0
fix compiler warning: conversion may lose significant bits
2010-12-01 23:36:19 +01:00
e3f7230dc2
atoi: remove atoi usage
2010-11-29 02:22:08 +01:00
0ea27cdbbf
ares_init: fix compiler warning: conversion may lose significant bits
2010-11-28 20:56:17 +01:00
6cc3521ec9
ares_save_options: assignments instead of memcpy
2010-10-05 19:42:39 +02:00
803e2a28b7
init_by_options: don't copy an empty sortlist
...
If there aren't any sort items to copy, don't bother. Without this
little precaution it would do a malloc(0) which causes undefined
behaviors and is frowned upon by curl's memdebug-system.
2010-10-05 19:40:35 +02:00
f575aea364
remove all uses of uint32_t
...
Previous fix forgot a few.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2010-07-30 10:09:57 -07:00
e3b04e5a47
local-bind: Support binding to local interface/IPs
...
Add 3 new functions to set the local binding for the out-going
socket connection, and add ares_set_servers_csv() to set a
list of servers at once as a comma-separated string.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2010-07-18 23:58:39 +02:00
b13c6552f8
init: allow c-ares to work on Android OS
2010-06-11 10:47:00 +02:00
125b1a8619
ares_init: Last, not first instance of domain or search should win
2010-06-02 23:12:04 +02:00
63627fa5ab
remove all $Id$ lines
2010-03-27 19:42:02 +01:00
3081404dec
watt32 compilation fix
2010-03-09 17:59:35 +00:00
8fe746fcf2
Added IPv6 name servers support
2010-03-05 20:01:47 +00:00
10461d1414
Make usage of calloc()'s arguments consistent with rest of code base
2009-11-18 10:33:54 +00:00
f157b574a9
workaround icc 9.1 optimizer issue
2009-11-18 02:57:34 +00:00
ea29eeb4eb
Renamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with static library
2009-11-11 08:56:46 +00:00
39c0bac44c
Test for USE_WINSOCK since it is more restrictive than WIN32
2009-11-09 12:57:26 +00:00
a82a8fbf82
Renamed c-ares setup.h to ares_setup.h
2009-11-02 11:55:53 +00:00
ec11480d8b
Fix compiler warning: loop without body
2009-10-10 12:29:32 +00:00
f3346ca16b
Fix compiler warning
2009-10-08 18:38:29 +00:00
85442b2a4b
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
2009-09-17 11:45:27 +00:00
a65d11ee13
Suppress warnings about unused prototypes in Watt32 and Win32 programs.
2009-09-07 11:02:20 +00:00
d0a8c3b68b
- Joshua Kwan fixed the init routine to fill in the defaults for stuff that
...
fails to get inited by other means. This fixes a case of when the c-ares
init fails when internet access is fone.
2009-08-03 11:29:17 +00:00
ea46b347bb
Revert last change, it is inappropriate.
2009-06-12 23:50:33 +00:00
51a10c962a
Replace CURLDEBUG with DEBUGBUILD.
2009-06-12 14:15:13 +00:00
cf3301f024
Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
...
if library initialization has not been performed calling ares_library_init().
2009-05-26 18:00:14 +00:00
b7c7bab713
Introduction of ares_library_init() and ares_library_cleanup()
2009-05-17 17:11:28 +00:00
27aa165e9c
avoid use of alloca()
2009-04-22 10:25:28 +00:00
1509409fe1
Moved potential inclusion of system's malloc.h and memory.h header files to
...
setup_once.h. Inclusion of each header file is based on the definition of
NEED_MALLOC_H and NEED_MEMORY_H respectively.
2009-04-21 10:26:58 +00:00
f61fa37f40
Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
...
and I edited it to also get duped by ares_dup().
2008-12-04 12:53:03 +00:00
e61d4b9e21
Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.
...
Also discussed on the ml.
2008-12-03 09:59:50 +00:00
7ff288f0b9
minor indent fix
2008-12-01 22:36:39 +00:00
f31add0695
Convert the public config struct to the same binary size/construct as in the
...
latest releases to remain ABI compatible.
2008-12-01 19:06:24 +00:00
9c51eb28fc
Make use of gethostname() conditional on it being available
2008-11-28 22:41:14 +00:00
aa1534eb20
In preparation for the upcomming IPv6 nameservers patch, the internal
...
ares_addr union is now changed into an internal struct which also holds
the address family.
2008-11-25 16:26:58 +00:00
acf5ca090a
use unsigned short better intead of mixing with ints to prevent compiler
...
warnings
2008-11-20 07:50:48 +00:00