Commit Graph
100 Commits
Author SHA1 Message Date
Daniel Stenberg 19fb255f9e Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
not always zero!
2006-08-03 18:20:45 +00:00
Daniel Stenberg ca324db453 include config-win32.h in release archives 2006-06-26 08:56:04 +00:00
Daniel Stenberg 0e07499e96 1.3.1 2006-06-24 18:29:18 +00:00
Daniel Stenberg 2fc66d7b01 Copied the NO_UNDEFINED magic from libcurl to make this build fine again with
libtool cross-compiled on linux with mingw32
2006-05-24 23:02:51 +00:00
Daniel Stenberg 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
Daniel Stenberg c8878fb584 two more contributors 2006-05-05 21:08:09 +00:00
Daniel Stenberg f4f25e3282 moved the curl_off_t check to within the --enable-debug block where it belongs since it is a somewhat ugly hack 2006-05-03 22:39:49 +00:00
Daniel Stenberg 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
Daniel Stenberg de713cb37d Alexander Lazic improved the getservbyport_r() configure check. 2006-01-09 08:31:48 +00:00
Daniel Stenberg 7a03bdaf34 buildconf fixes 2006-01-06 22:59:34 +00:00
Daniel Stenberg acf6edf7e9 Use $ACLOCAL_FLAGS too, pointed out by Alexander Lazic 2006-01-06 22:07:51 +00:00
Daniel Stenberg 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
Daniel Stenberg dccda3c237 Yang Tse has been helping out 2006-01-05 07:56:43 +00:00
Daniel Stenberg dc59499966 we're working on 1.3.1 (or more) 2006-01-02 09:13:56 +00:00
Daniel Stenberg ab18b895e8 This function was added in c-ares [version] 2005-12-22 15:31:32 +00:00
Daniel Stenberg 7b650b80c1 added ares_getsock() 2005-12-22 15:29:12 +00:00
Daniel Stenberg 8d63eb75a9 Added ares_getsock() to extract sockets to wait for action on, without being
limited to select().
2005-12-22 15:27:41 +00:00
Daniel Stenberg 05c21d8684 fix closing parentheses 2005-12-20 08:51:48 +00:00
Daniel Stenberg a08aed3147 use AC_PROG_LIBTOOL after AC_DISABLE_SHARED 2005-12-20 08:51:34 +00:00
Daniel Stenberg 513f448061 Yang Tse fixed compiler warnings 2005-11-25 22:45:06 +00:00
Daniel Stenberg 006698a1ed read_tcp_data() fix to get the proper buffer pointer and size 2005-11-25 22:23:28 +00:00
Daniel Stenberg c24e66c057 Yang Tse: fixed compiler warnings 2005-11-25 22:14:53 +00:00
Daniel Stenberg 1638613891 Change based on Yang Tse's excellent fix to reduce buffer overflow risk and
fixing a compiler warning in the append_scopeid() function.
2005-11-25 22:14:28 +00:00
Daniel Stenberg fab5b5e116 avoid doing #if an a predef symbol that might not be defined 2005-11-24 23:03:25 +00:00
Daniel Stenberg f06e65fa65 check for and use winsock2.h instead of winsock.h and I fixed a typo in the
ifdefs where . was used instead of _!
2005-11-16 07:12:37 +00:00
Daniel Stenberg 264f2a4cf1 include ws2tcpip.h in an attempt to detect some of the ipv6 structs better
in mingw builds
2005-11-15 14:39:52 +00:00
Daniel Stenberg 374bc69deb Detect big/little endian in the configure script and adjust the ares_dns.h
macros accordingly.
2005-11-14 23:14:54 +00:00
Daniel Stenberg 617c3100f5 removed files no longer existing 2005-11-12 00:01:50 +00:00
Daniel Stenberg 876ea69745 Ok, based on the online docs for AIX'es getservbyport_r() I adjusted to code
to do (what I believe is) "right". See docs on:
http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/libs/commtrf2/getservbyport_r.htm
2005-10-03 10:12:06 +00:00
Daniel Stenberg 209e8147a1 1 - attempted fix of uninitialized variable
2 - indented and edited to fit better within 80 columns
3 - fixed possible buffer overflow in the service name lookup function
2005-09-21 10:45:25 +00:00
Daniel Stenberg af27d8743d simplified the sin6_scope_id test and removed some left-overs from the previous
way of detecting it
2005-09-21 09:10:17 +00:00
Daniel Stenberg cbe5ec4597 fixed the check for the addrinfo struct 2005-09-21 09:01:44 +00:00
Daniel Stenberg 8df407ed7d mention the configure change 2005-09-15 19:23:31 +00:00
Daniel Stenberg f22a6589bf Use the AC_CHECK_MEMBER() function for check struct members instead of
inventing and providing our own. Hopefully this solves a HP-UX 11.00 problem.
2005-09-10 21:09:44 +00:00
Daniel Stenberg 7885baf74d 1.3.0 coming just up 2005-08-29 07:03:05 +00:00
Daniel Stenberg 86f22ffb66 well hit me, that wasn't possible, use 1:0:0 anyway... 2005-08-21 21:27:19 +00:00
Daniel Stenberg d8263771f5 modified the version-info, we only added functions 2005-08-21 21:25:42 +00:00
Daniel Stenberg 59f2a579bc increase version info 2005-08-21 21:25:07 +00:00
Daniel Stenberg 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
Daniel Stenberg b117fef909 detabified 2005-08-18 08:48:31 +00:00
Daniel Stenberg be551e6a00 killed trailing whitespace, narrowed a few lines to 80 cols 2005-08-04 08:07:44 +00:00
Daniel Stenberg 01118be8ae FIONBIO is in sys/ioctl.h on AIX 2005-06-03 07:39:18 +00:00
Daniel Stenberg c94c020c96 sigh, define TRUE if not already 2005-06-02 21:10:21 +00:00
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
Daniel Stenberg cac87c7fc7 replaced the CRLF newlines with plain LF ones 2005-05-14 20:45:49 +00:00
Daniel Stenberg 05d8fa0a57 prevent NS_IN6ADDRSZ from getting set to zero if the struct doesn't exist 2005-05-11 06:47:09 +00:00
Daniel Stenberg f09adbcbc2 the new functions and the upcoming ipv6 calls for the next version to become
1.3.0
2005-05-02 22:33:57 +00:00
Daniel Stenberg fce7f4a6f2 Fixed for Mac OS X builds based on excellent feedback from Heinz Stockinger. 2005-04-22 15:01:02 +00:00
Daniel Stenberg b6f7715488 added missing headers 2005-04-21 20:11:31 +00:00
Daniel Stenberg af3a246f32 indented source to look more like other ares code,
added (somewhat ugly) typecasts to build warning-free on 64bit platforms (the
result of a (char *) - (char *) cannot be stored in an int universally)
2005-04-19 23:36:21 +00:00
Daniel Stenberg 86661ab646 sortlist_alloc() is never used on win32, so ifdef out it to prevent warning 2005-04-19 23:26:14 +00:00
Daniel Stenberg c0eb11ec6c avoid warning on windows 2005-04-16 12:30:01 +00:00
Daniel Stenberg f2058d6a9f add needed include 2005-04-15 21:51:46 +00:00
Daniel Stenberg c02df16ef5 credits 2005-04-11 14:07:02 +00:00
Daniel Stenberg 2a0239bab1 include sys/types.h too when checking for headers as otherwise this breaks
on Solaris and FreeBSD. At least.
2005-04-08 08:48:17 +00:00
Daniel Stenberg 77244a784f Try harder to see if arpa/nameser_compat.h REALLY is a good header file to
include, as it seems at least some AIX versions don't really allow it to be
include at the same time as the original nameser.h.
2005-04-07 07:38:53 +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
Daniel Stenberg 3a80a3eb01 better errno constant replacements, as mentioned by Gisle Vanem 2005-04-06 21:14:58 +00:00
Daniel Stenberg 81d0042414 check for struct sizes and use those sizes if the NS_* defines are lacking
(IRIX 6.5.22 it seems)
2005-04-06 14:11:50 +00:00
Daniel Stenberg e10e4843c6 moved the *_inet_pton protos to inet_net_pton.h instead 2005-04-06 14:02:37 +00:00
Daniel Stenberg 06e8c9fe3f made the ares_inet_net_pton() proto use size_t size, as the function in the
code uses that
2005-04-06 13:54:02 +00:00
Daniel Stenberg 3d90cb252b with these changes, it builds on my win32 cross-compiler 2005-04-05 20:20:14 +00:00
Daniel Stenberg 39ea207306 check for another arpa header 2005-04-05 20:19:55 +00:00
Daniel Stenberg 3f15ec783b check for the arpa/* headers 2005-04-05 20:08:15 +00:00
Daniel Stenberg 784cc294b1 Updated the copyright year since changes have been this year. 2005-03-31 07:02:02 +00:00
Daniel Stenberg 61aec67fe5 the same fix here too, typecast to prevent win32 compiler warning 2005-03-21 22:38:45 +00:00
Daniel Stenberg 6010f4503c typecase to fix win32 compiler warning (and intended as other code is) 2005-03-21 22:37:18 +00:00
Daniel Stenberg 9d89bc0179 silence win32 compiler warnings 2005-03-20 12:29:15 +00:00
Daniel Stenberg da97171445 attempt to fix the ares link breakage with --enable-debug in libcurl and here 2005-03-20 00:38:50 +00:00
Daniel Stenberg bb42658b06 silence warnings on win32 about static functions that are never used 2005-03-19 01:03:46 +00:00
Daniel Stenberg e1e80ecdd6 the ares_parse_aaaa_reply man page 2005-03-11 08:34:51 +00:00
Daniel Stenberg e0c8f58697 Check for winsock.h to work with win32. Only include system headers we know
exist.
2005-03-11 08:14:36 +00:00
Daniel Stenberg 14ff3282cd Replace AC_TRY_RUN() with AC_EGREP_CPP() when checking for constants to
work fine with cross-compiled builds.
2005-03-11 08:06:57 +00:00
Daniel Stenberg 49f3631b43 oops, once is enough! ;-) 2005-03-11 08:03:20 +00:00
Daniel Stenberg 22309ec988 Define HAVE_AF_INET6_H for Netware too, as Guenter Knauf's builds indicate. 2005-03-11 07:53:42 +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 9898493661 Samuel Díaz García's correction 2005-03-05 00:04:52 +00:00
Daniel Stenberg e1290d3410 Updated as suggested by Samuel Díaz García 2005-02-22 18:39:40 +00:00
Daniel Stenberg 994f16d733 untabified 2004-12-10 21:46:00 +00:00
Daniel Stenberg 93538d6a9d NORECURSE clarification, minor formatting update 2004-12-07 10:43:21 +00:00
Daniel Stenberg 93689c0d94 fix the -I path to the proper include dir when --enable-debug is used 2004-11-11 14:15:41 +00:00
Daniel Stenberg eadf3e7f0d fix CURL_EXTERN for debug builds 2004-11-09 18:10:51 +00:00
Daniel Stenberg ae935201f5 two post-1.2.1 changes 2004-11-07 23:48:42 +00:00
Daniel Stenberg 0d17141733 added ares_cancel and ares_version 2004-11-07 13:37:07 +00:00
Daniel Stenberg 2c27c35fe3 mention incompatibilities with ares 2004-10-26 08:08:41 +00:00
Daniel Stenberg 0d930dd22c ignore this 2004-10-24 13:02:46 +00:00
Daniel Stenberg 902015cfd9 maketgz now creates a ares_version.h.dist file with the given version data
properly set, and the Makefile.am is now fixed to use that when building
a new package with make dist.
2004-10-24 13:02:09 +00:00
Daniel Stenberg 9b9d36f848 1.2.1 release time 2004-10-20 08:01:38 +00:00
Daniel Stenberg 3e748f4b50 removed tabs and trailing whitespace from source 2004-10-06 07:50:18 +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 db2efff373 ignore more 2004-09-14 21:31:06 +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 5d6bdc38cb Harshal Pradhan made minor syntax change to make this build with MSVC 7.1 2004-08-13 12:00:33 +00:00
Daniel Stenberg 9c47514118 ignore more files 2004-08-10 10:43:10 +00:00
Daniel Stenberg 06534bf195 variable type fix 2004-07-29 07:24:39 +00:00
Daniel Stenberg 3d0de826a5 removed C++ comment to please picky source checkers 2004-07-29 07:19:27 +00:00