Commit Graph
98 Commits
Author SHA1 Message Date
Daniel Stenberg 4e9c5b2dbb William Ahern:
Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
  read event can come back from poll() on a valid SOCK_DGRAM socket but
  recv(2) will still block. This patch doesn't ignore EAGAIN in
  read_udp_packets(), though maybe it should. (This patch was edited by Daniel
  Stenberg and a new configure test was added (imported from curl's configure)
  to properly detect what non-blocking socket approach to use.)
2005-06-02 11:58:04 +00:00
Daniel Stenberg ae75ee1423 William Ahern:
I'm not quite sure how this was happening, but I've been seeing PTR queries
  which seem to return empty responses. At least, they were empty when calling
  ares_expand_name() on the record. Here's a patch which guarantees to
  NUL-terminate the expanded name. The old behavior failed to NUL-terminate if
  len was 0, and this was causing strlen() to run past the end of the buffer
  after calling ares_expand_name() and getting ARES_SUCCESS as the return
  value. If q is not greater than *s then it's equal and *s is always
  allocated with at least one byte.
2005-06-02 11:09:10 +00:00
Dominick Meglio aba0b775ea Added ares_getnameinfo which mimics the getnameinfo API 2005-05-16 18:06:54 +00:00
Dominick Meglio eeb6aa6b01 Added an inet_ntop function from BIND for systems that do not have it 2005-05-14 18:35:20 +00:00
Dominick Meglio 7012fc65d9 Made sortlist support IPv6 (this can probably use some testing) 2005-04-09 19:59:59 +00:00
Dominick Meglio 61f1399c2f Made sortlist support CIDR matching for IPv4 2005-04-09 16:49:47 +00:00
Dominick Meglio 00b7a550b5 Added preliminary IPv6 support to ares_gethostbyname 2005-04-08 19:46:46 +00:00
Dominick Meglio 29d71bd499 Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family 2005-04-08 15:41:31 +00:00
Daniel Stenberg b41effd113 Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OS
X.
2005-04-06 22:27:42 +00:00
Dominick Meglio ffb4cf5554 Provided implementations of inet_net_pton and inet_pton from BIND for systems that do not include these functions. These will be necessary for CIDR support and IPv6 support. 2005-04-05 18:26:55 +00:00
Daniel Stenberg 9586905220 Dominick Meglio added ares_parse_aaaa_reply.c and did various adjustments. The
first little steps towards IPv6 support!
2005-03-10 23:30:34 +00:00
Daniel Stenberg ae935201f5 two post-1.2.1 changes 2004-11-07 23:48:42 +00:00
Daniel Stenberg 9b9d36f848 1.2.1 release time 2004-10-20 08:01:38 +00:00
Daniel Stenberg 47bd7d7548 - Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
when they made Alpha's) uses /etc/svc.conf for the purpose fixed below for
  other OSes. He made c-ares check for and understand it if present.

- Now c-ares will use local host name lookup _before_ DNS resolving by default
  if nothing else is told.
2004-09-28 22:19:39 +00:00
Daniel Stenberg 405d83852a - Henrik Stoerner: found out that C-ARES does not look at the /etc/host.conf
file to determine the sequence in which to search /etc/hosts and DNS.  So on
  systems where this order is defined by /etc/host.conf instead of a "lookup"
  entry in /etc/resolv.conf, C-ARES will always default to looking in DNS
  first, and /etc/hosts second.

  c-ares now looks at

  1) resolv.conf (for the "lookup" line);
  2) nsswitch.fon (for the "hosts:" line);
  3) host.conf (for the "order" line).

  First match wins.
2004-09-26 22:35:18 +00:00
Daniel Stenberg 2bf866b0ce Dominick Meglio host file path discovery patch for windows 2004-09-26 18:20:58 +00:00
Daniel Stenberg f8f6e2e55a mention Gisle's recent fixes 2004-08-30 09:16:31 +00:00
Daniel Stenberg 12e3fda5ac mention Harshal Pradhan's windows fix 2004-08-13 12:01:20 +00:00
Daniel Stenberg 0b6c1345eb --enable-debug builds static only, Gisle fixed a memory leak and more 2004-07-24 21:51:43 +00:00
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.
2004-07-22 22:18:45 +00:00
Daniel Stenberg 865101ac74 Günter Knauf made c-ares build and run on Novell Netware. 2004-07-04 22:20:26 +00:00
Daniel Stenberg e7293e0779 djgpp fixes by Gisle 2004-07-01 13:55:13 +00:00
Daniel Stenberg 2c465e6dc3 Gisle's djgpp magic 2004-07-01 06:59:43 +00:00
Daniel Stenberg d37a866e8d Gisle Vanem's init patch for Windows 2004-06-10 13:11:32 +00:00
Daniel Stenberg e926081105 fix 2004-06-08 21:26:03 +00:00
Daniel Stenberg 30f3594a7a - Nico Stappenbelt reported that when processing domain and search lines in
the resolv.conf file, the first entry encountered is processed and used as
  the search list. According to the manual pages for both Linux, Solaris and
  Tru64, the last entry of either a domain or a search field is used.
2004-05-11 21:12:10 +00:00
Daniel Stenberg 727cd05fab 1.2.0 2004-04-13 07:44:26 +00:00
Daniel Stenberg 2ee4c913e1 mention the man page updates from the other day 2004-04-06 15:12:50 +00:00
Daniel Stenberg 86ae23430c Dirk Manske's ares_cancel() function was added. 2004-04-01 08:25:58 +00:00
Daniel Stenberg af26fa53f3 Dominick Meglio's new ares_expand_string() function 2004-03-30 09:06:42 +00:00
Daniel Stenberg 7325b5ca07 Gisle Vanem improved build on Windows. 2004-03-10 11:28:34 +00:00
Daniel Stenberg 650fd8cee3 added the better debug option logic from curl by adding acinclude.m4 to the
configure stuff
2004-02-25 14:32:39 +00:00
Daniel Stenberg cfe7ce7a57 fix 2004-02-25 07:17:31 +00:00
Daniel Stenberg 4e10b07ab0 ares_free_errmem is gone 2004-02-23 13:35:28 +00:00
Daniel Stenberg bcc693e966 Dominick Meglio's fix for supporting multiple names in the Nameserver key
on Windows.
2004-02-22 22:42:20 +00:00
Daniel Stenberg c2f765495d memdebug build, 'make' no longer builds the demo tools 2004-02-17 07:41:10 +00:00
Daniel Stenberg 87308b0e3a install ares_version.h as well 2004-02-11 12:59:16 +00:00
Daniel Stenberg f06464edd2 fixing 2004-02-04 09:16:05 +00:00
Daniel Stenberg 8dcc932588 libcares.a is here 2004-02-03 14:06:16 +00:00
Daniel Stenberg bca97dd567 modified *strerror() 2004-02-03 06:38:38 +00:00
Daniel Stenberg efe7020e54 cut off the initial blurb, moved that to README.cares 2004-01-29 11:32:01 +00:00
Daniel Stenberg d52f1884be Dirk Manske fixed a flaw in the setting of the socket to non-blocking 2004-01-29 11:23:36 +00:00
Daniel Stenberg d49a450fce the gettimeofday fix 2004-01-04 12:20:37 +00:00
Daniel Stenberg 1c5acf2089 c-ares is the new name and ares_version() was added 2003-10-24 20:30:14 +00:00
Daniel Stenberg c58664de21 name it pre1 2003-10-08 20:26:44 +00:00
Daniel Stenberg b7f29fd2de clarify why this package exists 2003-10-08 20:26:05 +00:00
Daniel Stenberg 13becb5e7c clarified the reason for this package 2003-10-08 20:18:01 +00:00
Daniel Stenberg 5e847a14bd ares 1.1.1 with collected applied patches 2003-10-07 21:54:04 +00:00