Commit Graph
100 Commits
Author SHA1 Message Date
Daniel Stenberg 3cb1afe054 strlen: use size_t to receive the return 2011-06-04 20:14:38 +02:00
Daniel Stenberg d60f07d094 man pages: docs for the c-ares utility programs 2011-05-09 11:47:43 +02:00
Daniel Stenberg a268ae6a78 ares_parse_ns_reply.c: remove CVSism 2011-04-30 00:17:03 +02:00
Daniel Stenberg 1bd524dd4a configure: stop using the deprecated AM_INIT_AUTOMAKE syntax 2011-03-15 11:29:12 +01:00
Daniel Stenberg d70721eb65 ares_set_servers_csv: remove unused variables 2010-12-27 13:19:37 +01:00
Daniel Stenberg 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
Daniel Stenberg 39d7f64361 getv4: Value stored to 'dst' is never read 2010-12-27 13:13:19 +01:00
Daniel Stenberg 366cd6d54d advance_tcp_send_queue: avoid NULL ptr dereference
If given a too large 'num_bytes' value, it would cause a NULL ptr
dereference. Instead the code will now break out of the loop at the end
of the list.
2010-12-27 13:10:48 +01:00
Daniel Stenberg 2d5ed6400b cleanup: avoid unsafe typecasts
Avoid the risk of reading 16bit data from an unaligned address by using
a macro that is adapted for this.
2010-12-18 22:20:16 +01:00
Daniel Stenberg b354607aed release-preps: CHANGES and RELEASE-NOTES synced 2010-12-08 15:19:13 +01:00
Daniel Stenberg 0ae8dbb22d ares_set_local_*: added in 1.7.4, not before 2010-12-08 15:17:15 +01:00
Daniel Stenberg 6cc3521ec9 ares_save_options: assignments instead of memcpy 2010-10-05 19:42:39 +02:00
Daniel Stenberg 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
Daniel Stenberg cef3a4c7aa ares_set_servers_csv: use ISDIGIT
The IS*() set of macros are preferred to the regular is*() functions as
they help us avoid the most common pitfalls.
2010-07-31 00:16:39 +02:00
Daniel Stenberg 45a09b7efb version: now start on 1.7.4 2010-07-18 23:54:22 +02:00
Daniel Stenberg 954ec10e5a changelogs: updated for 1.7.3 2010-06-11 16:58:28 +02:00
Daniel Stenberg 359936ceca changelog: fill in the 1.7.2 changes 2010-06-11 10:37:37 +02:00
Daniel Stenberg 955038ea68 added another pdf to ignore 2010-06-11 08:23:14 +02:00
Daniel Stenberg 9cb25ea5f7 tarball: add $(CSOURCES) $(HHEADERS) to EXTRA_DIST
It's not clear to me why we need this, but we apparently may
otherwise not get all files bundled in the dist tarball.
2010-06-10 23:22:59 +02:00
Daniel Stenberg 50f99d46cc version: start working on 1.7.3 2010-06-10 11:47:23 +02:00
Daniel Stenberg 890a143722 RELEASE-NOTES: 1.7.2 details added 2010-06-10 11:43:57 +02:00
Daniel Stenberg 0e8dc6f18e style: make code less than 80 columns wide 2010-06-02 23:10:21 +02:00
Daniel Stenberg f28874d323 repair the file mode 2010-03-27 19:43:33 +01:00
Daniel Stenberg 63627fa5ab remove all $Id$ lines 2010-03-27 19:42:02 +01:00
Daniel Stenberg cd6b2b8659 remove all .cvsignore files 2010-03-27 19:36:38 +01:00
Daniel Stenberg 6e0ab38229 spell fix
reported by Gregor Jasny on the mailing list
2010-03-25 14:06:26 +01:00
Daniel Stenberg 5e22223332 ignore the GPG signature files too 2010-03-23 14:56:21 +01:00
Daniel Stenberg e965d83c78 start the journey towards 1.7.2 2010-03-23 14:56:04 +01:00
Daniel Stenberg 7403f443ac no longer CVS tagging 2010-03-23 14:49:52 +01:00
Daniel Stenberg 36e2f2b54f ignore generated PDFs 2010-03-23 14:49:41 +01:00
Daniel Stenberg 5923ba2a53 1.7.1 2010-03-23 14:47:56 +01:00
Daniel Stenberg 8c4fc9ee71 made README the primary readme file
... and did README.cares to contain a historic reason etc.
2010-03-23 14:12:50 +01:00
Daniel Stenberg eb9ce5145b s/CVS/git 2010-03-23 14:04:26 +01:00
Daniel Stenberg 941bb3aaba git now, not CVS 2010-03-23 14:00:48 +01:00
Daniel Stenberg f8d181ddf6 ignore lots of generated files 2010-03-23 13:51:47 +01:00
Daniel Stenberg 0a076df87f Daniel Johnson provided fixes for building with the clang compiler 2010-03-05 22:53:31 +00:00
Daniel Stenberg d2f21d37b1 ares_reinit()
- To allow an app to force a re-read of /etc/resolv.conf etc, pretty much
  like the res_init() resolver function offers
2010-02-17 22:15:23 +00:00
Daniel Stenberg 8b6f71ce95 - Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
check for broken connections like ares_process() did. Based on that, I
  merged the two functions into a single generic one with two front-ends.
2010-01-28 22:03:48 +00:00
Daniel Stenberg df279b133c start working on 1.7.1 2009-11-30 22:39:04 +00:00
Daniel Stenberg df2dc91fd4 no need to check for NULL pointers before dereferencing, as the pointers
MUST be valid and they are dereferenced further down in the function
unconditionally!
2009-10-29 09:12:40 +00:00
Daniel Stenberg 2f84a75012 shorten the descriptions somewhat 2009-10-29 09:06:42 +00:00
Daniel Stenberg d64a407d11 update to the new struct name 2009-10-29 09:06:22 +00:00
Daniel Stenberg 9cbd5ed034 Jakub Hrozek added ares_parse_txt_reply() for TXT parsing 2009-10-29 08:59:40 +00:00
Daniel Stenberg 9ff3cb7411 use 'ares_srv_reply' for proper name-spacing 2009-10-29 08:50:34 +00:00
Daniel Stenberg a5b204dd5b - Jakub Hrozek added ares_parse_srv_reply() for SRV parsing 2009-09-04 21:56:14 +00:00
Daniel Stenberg 408df8efcd - Timo Teras changed the reason code used in the resolve callback done when
ares_cancel() is used, to be ARES_ECANCELLED instead of ARES_ETIMEOUT to
  better allow the callback to know what's happening.
2009-08-03 11:51:06 +00:00
Daniel Stenberg 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
Daniel Stenberg f5464f6c0e language fix 2009-05-26 18:03:05 +00:00
Daniel Stenberg 179a0d2b28 minor edits 2009-05-23 20:23:44 +00:00
Daniel Stenberg ee97c69362 - Gregor Jasny made c-ares link with libtool 's -export-symbols-regex option to
only expose functions starting with ares_.
2009-05-11 13:53:26 +00:00
Daniel Stenberg fc5873e487 s/libcurl/c-ares 2009-05-01 18:26:03 +00:00
Daniel Stenberg e95d205155 version number typo fix 2009-05-01 18:24:34 +00:00
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.
2009-01-31 20:17:41 +00:00
Daniel Stenberg 28531dea2e - ares.h no longer uses the HAVE_STRUCT_IN6_ADDR define check, but instead it
now declares the private struct ares_in6_addr for all systems instead of
  relying on one possibly not present in the system.
2009-01-14 13:08:50 +00:00
Daniel Stenberg 8362245c42 - Phil Blundell added the internal function ares__expand_name_for_response()
that is now used by the ares_parse_*_reply() functions instead of the
  ares_expand_name() simply to easier return ARES_EBADRESP for the cases where
  the name expansion fails as in responses that really isn't expected.
2009-01-11 13:49:13 +00:00
Daniel Stenberg 1d37cac1b8 use the new URL 2008-12-09 22:49:51 +00:00
Daniel Stenberg 521fac69e9 start over on the 1.6.1 release... 2008-12-09 22:41:36 +00:00
Daniel Stenberg 70ff6e180a add space 2008-12-09 22:30:59 +00:00
Daniel Stenberg 9117775d49 the initial version of the ares_set_socket_callback man page 2008-12-04 12:54:43 +00:00
Daniel Stenberg 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
Daniel Stenberg 413f8dd2a7 Let's not call ares_save_options() deprecated just yet 2008-12-03 10:03:07 +00:00
Daniel Stenberg 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
Daniel Stenberg 7ff288f0b9 minor indent fix 2008-12-01 22:36:39 +00:00
Daniel Stenberg 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
Daniel Stenberg 3b6b1979bf updated with changes, preparing for a release soon 2008-11-28 15:44:01 +00:00
Daniel Stenberg acf5ca090a use unsigned short better intead of mixing with ints to prevent compiler
warnings
2008-11-20 07:50:48 +00:00
Daniel Stenberg 5ff47a7b1d please the picky compilers by staying with short as the data we get is short
only
2008-11-20 07:41:26 +00:00
Daniel Stenberg 8a6b51d560 - Brad Spencer brought the new function ares_gethostbyname_file() which simply
resolves a host name from the given file, using the regular hosts syntax.
2008-11-19 15:16:16 +00:00
Daniel Stenberg 54056b2063 Fixed an OOM condition reported by Jim Meyering 2008-11-15 23:07:35 +00:00
Daniel Stenberg 3c2da5eae1 Added a TODO file to list things we want changed, added or fixed. 2008-11-01 23:39:07 +00:00
Daniel Stenberg 1a1b4eb4f2 - Carlo Contavalli added support for the glibc "rotate" option, as documented
in man resolv.conf:

  causes round robin selection of nameservers from among those listed.  This
  has the effect of spreading the query load among all listed servers, rather
  than having all clients try the first listed server first every time.

  You can enable it with ARES_OPT_ROTATE
2008-11-01 18:35:19 +00:00
Daniel Stenberg 43daf6decd Charles Hardin made adig support a regular numerical dotted IP address for the
-s option as well.
2008-10-17 11:26:36 +00:00
Daniel Stenberg 4f33fdb183 we start over working towards 1.5.4 2008-08-29 08:55:02 +00:00
Daniel Stenberg d71fd1b305 Version 1.5.3 2008-08-29 08:33:02 +00:00
Daniel Stenberg 2682c714df added the three people from RELEASE-NOTES and sorted the list alphabetically 2008-08-29 08:29:47 +00:00
Daniel Stenberg 3f1bde7664 - Fix by Tofu Linden:
The symptom:
  * Users (usually, but not always) on 2-Wire routers and the Comcast service
  and a wired connection to their router would find that the second and
  subsequent DNS lookups from fresh processes using c-ares to resolve the same
  address would cause the process to never see a reply (it keeps polling for
  around 1m15s before giving up).

  The repro:
  * On such a machine (and yeah, it took us a lot of QA to find the systems
  that reproduce such a specific problem!), do 'ahost www.secondlife.com',
  then do it again.  The first process's lookup will work, subsequent lookups
  will time-out and fail.

  The cause:
  * init_id_key() was calling randomize_key() *before* it initialized
  key->state, meaning that the randomness generated by randomize_key() is
  immediately overwritten with deterministic values. (/dev/urandom was also
  being read incorrectly in the c-ares version we were using, but this was
  fixed in a later version.)
  * This makes the stream of generated query-IDs from any new c-ares process
  be an identical and predictable sequence of IDs.
  * This makes the 2-Wire's default built-in DNS server detect these queries
  as probable-duplicates and (erroneously) not respond at all.
2008-08-04 20:23:12 +00:00
Daniel Stenberg d5c3a696fc just to clarify that c-ares actually have some ipv6 support 2008-07-03 11:41:11 +00:00
Daniel Stenberg 5e74e48177 ares_gethostbyname() fallback from AAA to A records with CNAME present 2008-07-03 11:34:34 +00:00
Daniel Stenberg 93e7573628 - Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup and
the target host has only A records, it automatically falls back to an
  AF_INET lookup and gives you the A results.  However, if the target host has
  a CNAME record, this behaviour is defeated since the original query does
  return some data even though ares_parse_aaa_reply() doesn't consider it
  relevant. Here's a small patch to make it behave the same with and without
  the CNAME.
2008-07-03 11:32:35 +00:00
Daniel Stenberg 705c749aa1 - As was pointed out to me by Andreas Schuldei, the MAXHOSTNAMELEN define is
not posix or anything and thus c-ares failed to build on hurd (and possibly
  elsewhere). The define was also somewhat artificially used in the windows
  port. Now, I instead rewrote the use of gethostbyname to enlarge the host
  name buffer in case of need and totally avoid the use of the MAXHOSTNAMELEN
  define. I thus also removed the defien from the namser.h file where it was
  once added for the windows build.

  I also fixed init_by_defaults() function to not leak memory in case if
  error.
2008-06-30 12:48:25 +00:00
Daniel Stenberg 41f303a6bd start working on 1.5.3 2008-05-29 20:39:18 +00:00
Daniel Stenberg 2d09f0bf7c 1.5.2 2008-05-29 20:10:40 +00:00
Daniel Stenberg 9fae0a48b1 list all local sources the (demo) tools need, add a few missing scripts to
the dist tarball and remove a two duplicate file names from EXTRA_DIST
(most of it pointed out by Yang Tse)
2008-05-23 21:52:56 +00:00
Daniel Stenberg f0d0df9e9b this is not used (anymore) 2008-05-23 21:46:29 +00:00
Daniel Stenberg d7c4f9ad16 make sure the configure.ac file with the correct version number is shipped
in the tarball
2008-05-22 17:41:29 +00:00
Daniel Stenberg 46dbd9461a - Introducing millisecond resolution support for the timeout option. See
ares_init_options()'s ARES_OPT_TIMEOUTMS.
2008-05-13 20:48:48 +00:00
Daniel Stenberg fd5fdecf30 Removed AC_PROG_CC_STDC again. It enforces C99/gnu99 stdandard which is too
liberal for me. Also, autoconf 2.61 and earlier doesn't work with icc 10.1
for this macro. (2.62 confirmed to work though). See discusson on the mailing
list starting here:

http://daniel.haxx.se/projects/c-ares/mail/c-ares-archive-2008-05/0001.shtml
2008-05-09 13:10:34 +00:00
Daniel Stenberg d4d2f9dc22 include strings.h (if available) for the strcasecmp() proto 2008-05-08 22:14:17 +00:00
Daniel Stenberg 7829b79768 check for strings.h in configure and use it for the strcasecmp() proto 2008-05-08 22:11:38 +00:00
Daniel Stenberg 7a68a3342b adjusted to work with the updated configure.ac 2008-05-07 21:27:35 +00:00
Daniel Stenberg 0645b841d0 - Sebastian made c-ares able to return all PTR-records when doing reverse
lookups. It is not common practice to have multiple PTR-Records for a single
  IP, but its perfectly legal and some sites have those.
2008-05-07 21:20:45 +00:00
Daniel Stenberg 3994a0be7f - Doug Goldstein provided a configure patch: updates autoconf 2.13 usage to
autoconf 2.57 usage (which is the version you have specified as the minimum
  version). It's a minor change but it does clean up some warnings with newer
  autoconf (specifically 2.62).
2008-05-07 21:16:06 +00:00
Daniel Stenberg 2b31a21d91 - Alexey Simak fixed the VC dsp file by adding the missing source file
ares_expand_string.c
2008-04-04 20:26:06 +00:00
Daniel Stenberg b1c3cc0cfe Alexey Simak made adig support NAPTR records 2008-04-04 20:24:41 +00:00
Daniel Stenberg cb4a169f75 Eino Tuominen improved the code when a file is used to seed the randomizer 2008-04-04 20:05:23 +00:00
Daniel Stenberg ad10862b8d build acountry too 2007-12-11 19:34:31 +00:00
Daniel Stenberg 6d913add78 grrr, the previous commit was meant to properly make sure that we don't
link any executables when doing debug builds since they kind of assume
symbols provided by libcurl, but it also wrongly included acountry.c
2007-12-10 22:20:26 +00:00
Daniel Stenberg 03431e22b2 when building 2007-12-10 22:19:06 +00:00
Daniel Stenberg 80dbaf63be build ahost and adig by default but don't install them 2007-12-10 21:42:04 +00:00
Daniel Stenberg aae96300a4 Erik Kline cleaned up ares_gethostbyaddr.c:next_lookup() somewhat 2007-12-03 10:25:05 +00:00