summaryrefslogtreecommitdiff
path: root/ares_init.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-17ares_inet_pton/ntop: cleanupDaniel Stenberg1-3/+2
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.
2013-02-13ares__generate_new_id: moved to ares_query.cDaniel Stenberg1-7/+0
... and ares__rc4 is turned into a local static function.
2012-12-14setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>Yang Tse1-8/+0
Inclusion of these two header files now done in setup_once.h
2012-12-14Header inclusion clean-upYang Tse1-10/+0
Remove header inclusions already done in setup_once.h
2012-08-23get_DNS_AdaptersAddresses: fix IPv6 parsingDaniel Stenberg1-1/+1
Use of the wrong define made the function not parse IPv6 addresses properly. Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-06/0028.shtml Reported by: Saúl Ibarra Corretgé
2012-08-17Added new feature (rfc2671)hpopescu@ixiacom.com1-0/+7
2012-06-14Kill compiler warningYang Tse1-2/+2
2012-05-21Fix UDP and TCP port byte order in saved options.Nick Alcock1-2/+2
The UDP and TCP port are stored in network byte order in the ares_channeldata, but are passed in to ares_init_options() in host byte order. Thus we must return them from ares_save_options() in host byte order too, or a duplicated channel will convert them again, leading to a nonfunctional channel and a mysterious connection refused error from ares_gethostbyname(). This breaks ares_dup(), thus the curl easy API when c-ares is used by curl, and thus all the curl easy API's users.
2012-04-21ares_init.c: Further refactoring of Windows system's DNS fetching codeYang Tse1-181/+369
2012-04-20Android: small changes to dns property part.Guenter Knauf1-8/+9
Prefix prop vars; kill var; use DNS_PROP_NAME_PREFIX macro.
2012-04-19Add support for multiple DNS servers on Android.Guenter Knauf1-3/+15
Before, c-ares always used the first DNS server on Android, causing network problems if this DNS server was not available. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
2012-04-17Added some more ifdefs to silent compiler warnings.Guenter Knauf1-9/+10
2012-04-16ares_init.c: get_iphlpapi_dns_info() refactoringYang Tse1-177/+157
2012-04-16Kill some more compiler warnings.Guenter Knauf1-1/+3
2012-04-16Kill compiler warning about unused var.Guenter Knauf1-1/+1
2012-04-16Fixed my last commit: wrong preprocessor directive.Guenter Knauf1-1/+1
2012-04-16Check for __ANDROID__ in addition to ANDROID macro.Guenter Knauf1-2/+2
Posted to c-ares list by Wayne.
2012-03-16port numbers: convert them to network order!Daniel Stenberg1-2/+2
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
2012-02-25white space cleanupDaniel Stenberg1-44/+59
- Keep code within 80 columns - Removed funny spaces after open paren and before closing paren
2012-02-25get_iphlpapi_dns_info: fix buffer overrunPoul Thomas Lomholt1-3/+3
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
2012-01-19ares_init.c: fix compiler warning on winsock buildsYang Tse1-3/+7
2011-09-07ares_init.c: fix segfault triggered in ares_init_options() upon previousYang Tse1-3/+10
failure of init_by_defaults() and incomplete cleanup there.
2011-09-04fix MSVC compiler warning 'conditional expression is constant'Yang Tse1-1/+1
2011-06-14Fix incorrect sizeof() in ares_save_optionsJakub Hrozek1-1/+1
2011-06-04strlen: use size_t to receive the returnDaniel Stenberg1-1/+1
2011-05-26ares_init: make ares_private.h last included header againYang Tse1-5/+6
2011-05-20winsock: compilation fixesYang Tse1-4/+0
Provide winsock iphlpapi alternative definitions to prevent compilation failures when using a variety of winsock header implementations.
2011-05-17IPv6-on-windows: find DNS servers correctlyDavid Stuart1-58/+181
2011-03-25renamed getplatform() to ares__getplatform() to avoid namespace pollutionYang Tse1-1/+1
2011-03-24build: move platform stuff to ares_platform.c and ares_platform.hYang Tse1-0/+1
2011-03-23build: find out windows platform using GetVersionEx()Yang Tse1-2/+5
2011-03-22System's errno.h inclusion cleanup.Yang Tse1-1/+0
System's errno.h is conditionally included from setup_once.h
2011-03-22ares_init: fix gethostname error detection on winsock platformsYang Tse1-3/+6
2011-02-18Watt32: fix server initGisle Vanem1-2/+5
Somewhere in the process, programs using the Watt-32 tcp/ip stack stopped working.
2011-02-16config_sortlist: (win32) missing elseDima Tisnek1-3/+3
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".
2010-12-27init_by_resolv_conf: fix compiler warningsDaniel Stenberg1-3/+6
The code received the return codes in the 'status' variable without using it. Instead we just ignore those particular errors.
2010-12-10ares_init: fix detection of semicolon comments in resolv.confYang Tse1-13/+22
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-02fix compiler warning: rounding, sign extension, or loss of accuracy may resultYang Tse1-1/+1
2010-12-01fix compiler warning: conversion may lose significant bitsYang Tse1-3/+4
2010-11-29atoi: remove atoi usageYang Tse1-5/+9
2010-11-28ares_init: fix compiler warning: conversion may lose significant bitsYang Tse1-10/+10
2010-10-05ares_save_options: assignments instead of memcpyDaniel Stenberg1-4/+1
2010-10-05init_by_options: don't copy an empty sortlistDaniel Stenberg1-12/+9
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-07-30remove all uses of uint32_tBen Greear1-1/+1
Previous fix forgot a few. Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-18local-bind: Support binding to local interface/IPsBen Greear1-0/+30
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-06-11init: allow c-ares to work on Android OSBogDan Vatra1-0/+10
2010-06-02ares_init: Last, not first instance of domain or search should winJakub Hrozek1-2/+2
2010-03-27remove all $Id$ linesDaniel Stenberg1-1/+0
2010-03-09watt32 compilation fixYang Tse1-1/+1
2010-03-05Added IPv6 name servers supportYang Tse1-78/+123