1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-22 20:29:16 +00:00
Commit Graph

66 Commits

Author SHA1 Message Date
1bec3073dc Brad Spencer did
o made ares_version.h use extern "C" for c++ compilers
 o fixed compiler warnings in ares_getnameinfo.c
 o fixed a buffer position init for TCP reads
2006-08-29 15:17:47 +00:00
19fb255f9e Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
not always zero!
2006-08-03 18:20:45 +00:00
08ce30f216 Added getopt() processing. 2006-07-23 10:10:52 +00:00
0e07499e96 1.3.1 2006-06-24 18:29:18 +00:00
d1ad89f943 Remove "big endian" DNS section and RR data integer parser macros from
ares_dns.h, which break c-ares on my Sparc64. Bit-wise operations in C
operate on logical values. And in any event the octets are already in
big-endian (aka network) byte order so they're being reversed (thus the
source of the breakage).
2006-06-19 06:41:55 +00:00
70dbc3725d Handle EAGAIN/EWOULDBLOCK readiness errors, which can occur for both TCP and
UDP even when a poll(2) or select(2) suggest otherwise.
2006-06-19 01:18:05 +00:00
e75c876ac5 Bram Matthys brought my attention to a libtool peculiarity where detecting
things such as C++ compiler actually is a bad thing and since we don't need
that detection I added a work-around, much inspired by a previous patch by
Paolo Bonzini. This also shortens the configure script quite a lot.
2006-05-10 08:03:54 +00:00
22e34b53e4 Nick Mathewson added the ARES_OPT_SOCK_STATE_CB option that when set makes
c-ares call a callback on socket state changes. A better way than the
ares_getsock() to get full control over the socket state.
2006-05-03 06:11:44 +00:00
de713cb37d Alexander Lazic improved the getservbyport_r() configure check. 2006-01-09 08:31:48 +00:00
7a03bdaf34 buildconf fixes 2006-01-06 22:59:34 +00:00
d07656e76d James Bursa fixes: find the hosts file on RISC OS, and made it build with
newer gcc versions that no longer defines "riscos".
2006-01-05 07:57:32 +00:00
7b650b80c1 added ares_getsock() 2005-12-22 15:29:12 +00:00
513f448061 Yang Tse fixed compiler warnings 2005-11-25 22:45:06 +00:00
6afd5c16d3 Added constants that will be used by ares_getaddrinfo. Made ares_getnameinfo use the reentrant getservbyport (getservbyport_r) if it isavailable to ensure it works properly in a threaded environment 2005-09-18 16:44:49 +00:00
8df407ed7d mention the configure change 2005-09-15 19:23:31 +00:00
7885baf74d 1.3.0 coming just up 2005-08-29 07:03:05 +00:00
a8bb249d07 Alfredo Tupone provided a fix for the Windows code in get_iphlpapi_dns_info()
when getting the DNS server etc.
2005-08-21 21:09:44 +00:00
ebcf14a69b Added some checks for the addrinfo structure. 2005-06-19 16:58:40 +00:00
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
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
aba0b775ea Added ares_getnameinfo which mimics the getnameinfo API 2005-05-16 18:06:54 +00:00
eeb6aa6b01 Added an inet_ntop function from BIND for systems that do not have it 2005-05-14 18:35:20 +00:00
7012fc65d9 Made sortlist support IPv6 (this can probably use some testing) 2005-04-09 19:59:59 +00:00
61f1399c2f Made sortlist support CIDR matching for IPv4 2005-04-09 16:49:47 +00:00
00b7a550b5 Added preliminary IPv6 support to ares_gethostbyname 2005-04-08 19:46:46 +00:00
29d71bd499 Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family 2005-04-08 15:41:31 +00:00
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
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
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
ae935201f5 two post-1.2.1 changes 2004-11-07 23:48:42 +00:00
9b9d36f848 1.2.1 release time 2004-10-20 08:01:38 +00:00
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
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
2bf866b0ce Dominick Meglio host file path discovery patch for windows 2004-09-26 18:20:58 +00:00
f8f6e2e55a mention Gisle's recent fixes 2004-08-30 09:16:31 +00:00
12e3fda5ac mention Harshal Pradhan's windows fix 2004-08-13 12:01:20 +00:00
0b6c1345eb --enable-debug builds static only, Gisle fixed a memory leak and more 2004-07-24 21:51:43 +00:00
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
865101ac74 Günter Knauf made c-ares build and run on Novell Netware. 2004-07-04 22:20:26 +00:00
e7293e0779 djgpp fixes by Gisle 2004-07-01 13:55:13 +00:00
2c465e6dc3 Gisle's djgpp magic 2004-07-01 06:59:43 +00:00
d37a866e8d Gisle Vanem's init patch for Windows 2004-06-10 13:11:32 +00:00
e926081105 fix 2004-06-08 21:26:03 +00:00
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
727cd05fab 1.2.0 2004-04-13 07:44:26 +00:00
2ee4c913e1 mention the man page updates from the other day 2004-04-06 15:12:50 +00:00
86ae23430c Dirk Manske's ares_cancel() function was added. 2004-04-01 08:25:58 +00:00
af26fa53f3 Dominick Meglio's new ares_expand_string() function 2004-03-30 09:06:42 +00:00
7325b5ca07 Gisle Vanem improved build on Windows. 2004-03-10 11:28:34 +00:00
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