platform/upstream/c-ares.git
18 years agoUse the AC_CHECK_MEMBER() function for check struct members instead of
Daniel Stenberg [Sat, 10 Sep 2005 21:09:44 +0000 (21:09 +0000)]
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.

18 years ago1.3.0 coming just up
Daniel Stenberg [Mon, 29 Aug 2005 07:03:05 +0000 (07:03 +0000)]
1.3.0 coming just up

18 years agowell hit me, that wasn't possible, use 1:0:0 anyway...
Daniel Stenberg [Sun, 21 Aug 2005 21:27:19 +0000 (21:27 +0000)]
well hit me, that wasn't possible, use 1:0:0 anyway...

18 years agomodified the version-info, we only added functions
Daniel Stenberg [Sun, 21 Aug 2005 21:25:42 +0000 (21:25 +0000)]
modified the version-info, we only added functions

18 years agoincrease version info
Daniel Stenberg [Sun, 21 Aug 2005 21:25:07 +0000 (21:25 +0000)]
increase version info

18 years agoAlfredo Tupone provided a fix for the Windows code in get_iphlpapi_dns_info()
Daniel Stenberg [Sun, 21 Aug 2005 21:09:44 +0000 (21:09 +0000)]
Alfredo Tupone provided a fix for the Windows code in get_iphlpapi_dns_info()
when getting the DNS server etc.

18 years agodetabified
Daniel Stenberg [Thu, 18 Aug 2005 08:48:31 +0000 (08:48 +0000)]
detabified

18 years agominor Makefile fix.
Gunter Knauf [Wed, 10 Aug 2005 21:45:59 +0000 (21:45 +0000)]
minor Makefile fix.

18 years agominor Makefile fix.
Gunter Knauf [Wed, 10 Aug 2005 20:45:49 +0000 (20:45 +0000)]
minor Makefile fix.

18 years agomake ares compile again for NetWare.
Gunter Knauf [Wed, 10 Aug 2005 17:03:53 +0000 (17:03 +0000)]
make ares compile again for NetWare.

18 years agomake ares compile again for NetWare.
Gunter Knauf [Wed, 10 Aug 2005 16:55:06 +0000 (16:55 +0000)]
make ares compile again for NetWare.

18 years agofixed line endings so it works again with gnu make on Win32.
Gunter Knauf [Wed, 10 Aug 2005 16:54:00 +0000 (16:54 +0000)]
fixed line endings so it works again with gnu make on Win32.

18 years agokilled trailing whitespace, narrowed a few lines to 80 cols
Daniel Stenberg [Thu, 4 Aug 2005 08:07:44 +0000 (08:07 +0000)]
killed trailing whitespace, narrowed a few lines to 80 cols

19 years agoAdded some checks for the addrinfo structure.
Dominick Meglio [Sun, 19 Jun 2005 16:58:40 +0000 (16:58 +0000)]
Added some checks for the addrinfo structure.

19 years agoFIONBIO is in sys/ioctl.h on AIX
Daniel Stenberg [Fri, 3 Jun 2005 07:39:18 +0000 (07:39 +0000)]
FIONBIO is in sys/ioctl.h on AIX

19 years agosigh, define TRUE if not already
Daniel Stenberg [Thu, 2 Jun 2005 21:10:21 +0000 (21:10 +0000)]
sigh, define TRUE if not already

19 years agoWilliam Ahern:
Daniel Stenberg [Thu, 2 Jun 2005 11:58:04 +0000 (11:58 +0000)]
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.)

19 years agoWilliam Ahern:
Daniel Stenberg [Thu, 2 Jun 2005 11:09:10 +0000 (11:09 +0000)]
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.

19 years agoMore of the same
Dominick Meglio [Tue, 17 May 2005 04:20:58 +0000 (04:20 +0000)]
More of the same

19 years agoMore compiler warning cleanups
Dominick Meglio [Tue, 17 May 2005 04:18:41 +0000 (04:18 +0000)]
More compiler warning cleanups

19 years agoMade ares_free_hostent man page refer to ares_parse_aaaa_reply
Dominick Meglio [Mon, 16 May 2005 19:23:57 +0000 (19:23 +0000)]
Made ares_free_hostent man page refer to ares_parse_aaaa_reply

19 years agoCleaned up some compile warnings
Dominick Meglio [Mon, 16 May 2005 19:14:25 +0000 (19:14 +0000)]
Cleaned up some compile warnings

19 years agoAdded ares_getnameinfo which mimics the getnameinfo API
Dominick Meglio [Mon, 16 May 2005 18:06:54 +0000 (18:06 +0000)]
Added ares_getnameinfo which mimics the getnameinfo API

19 years agoConverted some macros to use NS_* so they work on non-IPv6 systems
Dominick Meglio [Sun, 15 May 2005 16:31:01 +0000 (16:31 +0000)]
Converted some macros to use NS_* so they work on non-IPv6 systems

19 years agoForgot to ares_-ize inet_ntop
Dominick Meglio [Sun, 15 May 2005 04:38:53 +0000 (04:38 +0000)]
Forgot to ares_-ize inet_ntop

19 years agoreplaced the CRLF newlines with plain LF ones
Daniel Stenberg [Sat, 14 May 2005 20:45:49 +0000 (20:45 +0000)]
replaced the CRLF newlines with plain LF ones

19 years agoAdded an inet_ntop function from BIND for systems that do not have it
Dominick Meglio [Sat, 14 May 2005 18:35:20 +0000 (18:35 +0000)]
Added an inet_ntop function from BIND for systems that do not have it

19 years agoprevent NS_IN6ADDRSZ from getting set to zero if the struct doesn't exist
Daniel Stenberg [Wed, 11 May 2005 06:47:09 +0000 (06:47 +0000)]
prevent NS_IN6ADDRSZ from getting set to zero if the struct doesn't exist

19 years agothe new functions and the upcoming ipv6 calls for the next version to become
Daniel Stenberg [Mon, 2 May 2005 22:33:57 +0000 (22:33 +0000)]
the new functions and the upcoming ipv6 calls for the next version to become
1.3.0

19 years agofix for recent changes.
Gunter Knauf [Sat, 23 Apr 2005 11:59:06 +0000 (11:59 +0000)]
fix for recent changes.

19 years agoFixed for Mac OS X builds based on excellent feedback from Heinz Stockinger.
Daniel Stenberg [Fri, 22 Apr 2005 15:01:02 +0000 (15:01 +0000)]
Fixed for Mac OS X builds based on excellent feedback from Heinz Stockinger.

19 years agochanges for building with IPV6.
Gunter Knauf [Fri, 22 Apr 2005 13:03:17 +0000 (13:03 +0000)]
changes for building with IPV6.

19 years agoadded missing headers
Daniel Stenberg [Thu, 21 Apr 2005 20:11:31 +0000 (20:11 +0000)]
added missing headers

19 years agoindented source to look more like other ares code,
Daniel Stenberg [Tue, 19 Apr 2005 23:36:21 +0000 (23:36 +0000)]
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)

19 years agosortlist_alloc() is never used on win32, so ifdef out it to prevent warning
Daniel Stenberg [Tue, 19 Apr 2005 23:26:14 +0000 (23:26 +0000)]
sortlist_alloc() is never used on win32, so ifdef out it to prevent warning

19 years agoavoid warning on windows
Daniel Stenberg [Sat, 16 Apr 2005 12:30:01 +0000 (12:30 +0000)]
avoid warning on windows

19 years agoadd needed include
Daniel Stenberg [Fri, 15 Apr 2005 21:51:46 +0000 (21:51 +0000)]
add needed include

19 years agoAttempted to fix c-ares not building on non-IPv6 systems
Dominick Meglio [Fri, 15 Apr 2005 15:25:16 +0000 (15:25 +0000)]
Attempted to fix c-ares not building on non-IPv6 systems

19 years agoAllow environment variables to override default autotools.
Dan Fandrich [Wed, 13 Apr 2005 00:32:33 +0000 (00:32 +0000)]
Allow environment variables to override default autotools.

19 years agocredits
Daniel Stenberg [Mon, 11 Apr 2005 14:07:02 +0000 (14:07 +0000)]
credits

19 years agoRemoved usage of u_int and u_char
Dominick Meglio [Sat, 9 Apr 2005 23:46:31 +0000 (23:46 +0000)]
Removed usage of u_int and u_char

19 years agoMade sortlist support IPv6 (this can probably use some testing)
Dominick Meglio [Sat, 9 Apr 2005 19:59:59 +0000 (19:59 +0000)]
Made sortlist support IPv6 (this can probably use some testing)

19 years agoMade sortlist support CIDR matching for IPv4
Dominick Meglio [Sat, 9 Apr 2005 16:49:47 +0000 (16:49 +0000)]
Made sortlist support CIDR matching for IPv4

19 years agoAdded preliminary IPv6 support to ares_gethostbyname
Dominick Meglio [Fri, 8 Apr 2005 19:46:46 +0000 (19:46 +0000)]
Added preliminary IPv6 support to ares_gethostbyname

19 years agoAdded include for inet_net_pton.h to ares__get_hostent.c
Dominick Meglio [Fri, 8 Apr 2005 16:22:51 +0000 (16:22 +0000)]
Added include for inet_net_pton.h to ares__get_hostent.c

19 years agoMade ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family
Dominick Meglio [Fri, 8 Apr 2005 15:41:31 +0000 (15:41 +0000)]
Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family

19 years agoinclude sys/types.h too when checking for headers as otherwise this breaks
Daniel Stenberg [Fri, 8 Apr 2005 08:48:17 +0000 (08:48 +0000)]
include sys/types.h too when checking for headers as otherwise this breaks
on Solaris and FreeBSD. At least.

19 years agoTry harder to see if arpa/nameser_compat.h REALLY is a good header file to
Daniel Stenberg [Thu, 7 Apr 2005 07:38:53 +0000 (07:38 +0000)]
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.

19 years agoTupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OS
Daniel Stenberg [Wed, 6 Apr 2005 22:27:42 +0000 (22:27 +0000)]
Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OS
X.

19 years agobetter errno constant replacements, as mentioned by Gisle Vanem
Daniel Stenberg [Wed, 6 Apr 2005 21:14:58 +0000 (21:14 +0000)]
better errno constant replacements, as mentioned by Gisle Vanem

19 years agoInclude inet_net_pton.h for 'struct in6_addr'. Ideally this
Gisle Vanem [Wed, 6 Apr 2005 18:58:33 +0000 (18:58 +0000)]
Include inet_net_pton.h for 'struct in6_addr'. Ideally this
should come from <ws2tcpip.h>, but Winsock 1.1 should
suffice.

19 years agoMoved inet_net_pton.h to HHEADERS.
Gisle Vanem [Wed, 6 Apr 2005 18:55:59 +0000 (18:55 +0000)]
Moved  inet_net_pton.h to HHEADERS.

19 years agocheck for struct sizes and use those sizes if the NS_* defines are lacking
Daniel Stenberg [Wed, 6 Apr 2005 14:11:50 +0000 (14:11 +0000)]
check for struct sizes and use those sizes if the NS_* defines are lacking
(IRIX 6.5.22 it seems)

19 years agomoved the *_inet_pton protos to inet_net_pton.h instead
Daniel Stenberg [Wed, 6 Apr 2005 14:02:37 +0000 (14:02 +0000)]
moved the *_inet_pton protos to inet_net_pton.h instead

19 years agomade the ares_inet_net_pton() proto use size_t size, as the function in the
Daniel Stenberg [Wed, 6 Apr 2005 13:54:02 +0000 (13:54 +0000)]
made the ares_inet_net_pton() proto use size_t size, as the function in the
code uses that

19 years agowith these changes, it builds on my win32 cross-compiler
Daniel Stenberg [Tue, 5 Apr 2005 20:20:14 +0000 (20:20 +0000)]
with these changes, it builds on my win32 cross-compiler

19 years agocheck for another arpa header
Daniel Stenberg [Tue, 5 Apr 2005 20:19:55 +0000 (20:19 +0000)]
check for another arpa header

19 years agocheck for the arpa/* headers
Daniel Stenberg [Tue, 5 Apr 2005 20:08:15 +0000 (20:08 +0000)]
check for the arpa/* headers

19 years agoProvided implementations of inet_net_pton and inet_pton from BIND for systems that...
Dominick Meglio [Tue, 5 Apr 2005 18:26:55 +0000 (18:26 +0000)]
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.

19 years agoUpdated the copyright year since changes have been this year.
Daniel Stenberg [Thu, 31 Mar 2005 07:02:02 +0000 (07:02 +0000)]
Updated the copyright year since changes have been this year.

19 years agoCURL_EXTERN is already in <curl/curl.h>.
Gisle Vanem [Tue, 22 Mar 2005 10:37:26 +0000 (10:37 +0000)]
CURL_EXTERN is already in <curl/curl.h>.

19 years agoPrevent redefinition warning with CURLDEBUG.
Gisle Vanem [Tue, 22 Mar 2005 10:36:20 +0000 (10:36 +0000)]
Prevent redefinition warning with CURLDEBUG.

19 years agothe same fix here too, typecast to prevent win32 compiler warning
Daniel Stenberg [Mon, 21 Mar 2005 22:38:45 +0000 (22:38 +0000)]
the same fix here too, typecast to prevent win32 compiler warning

19 years agotypecase to fix win32 compiler warning (and intended as other code is)
Daniel Stenberg [Mon, 21 Mar 2005 22:37:18 +0000 (22:37 +0000)]
typecase to fix win32 compiler warning (and intended as other code is)

19 years agosilence win32 compiler warnings
Daniel Stenberg [Sun, 20 Mar 2005 12:29:15 +0000 (12:29 +0000)]
silence win32 compiler warnings

19 years agoattempt to fix the ares link breakage with --enable-debug in libcurl and here
Daniel Stenberg [Sun, 20 Mar 2005 00:38:50 +0000 (00:38 +0000)]
attempt to fix the ares link breakage with --enable-debug in libcurl and here

19 years agosilence warnings on win32 about static functions that are never used
Daniel Stenberg [Sat, 19 Mar 2005 01:03:46 +0000 (01:03 +0000)]
silence warnings on win32 about static functions that are never used

19 years agoPrevent gcc warning.
Gisle Vanem [Sun, 13 Mar 2005 09:21:54 +0000 (09:21 +0000)]
Prevent gcc warning.

19 years agothe ares_parse_aaaa_reply man page
Daniel Stenberg [Fri, 11 Mar 2005 08:34:51 +0000 (08:34 +0000)]
the ares_parse_aaaa_reply man page

19 years agoCheck for winsock.h to work with win32. Only include system headers we know
Daniel Stenberg [Fri, 11 Mar 2005 08:14:36 +0000 (08:14 +0000)]
Check for winsock.h to work with win32. Only include system headers we know
exist.

19 years agoReplace AC_TRY_RUN() with AC_EGREP_CPP() when checking for constants to
Daniel Stenberg [Fri, 11 Mar 2005 08:06:57 +0000 (08:06 +0000)]
Replace AC_TRY_RUN() with AC_EGREP_CPP() when checking for constants to
work fine with cross-compiled builds.

19 years agooops, once is enough! ;-)
Daniel Stenberg [Fri, 11 Mar 2005 08:03:20 +0000 (08:03 +0000)]
oops, once is enough! ;-)

19 years agoDefine HAVE_AF_INET6_H for Netware too, as Guenter Knauf's builds indicate.
Daniel Stenberg [Fri, 11 Mar 2005 07:53:42 +0000 (07:53 +0000)]
Define HAVE_AF_INET6_H for Netware too, as Guenter Knauf's builds indicate.

19 years agoAdded HAVE_AF_INET6 to Netware's config.h
Dan Fandrich [Fri, 11 Mar 2005 07:52:24 +0000 (07:52 +0000)]
Added HAVE_AF_INET6 to Netware's config.h

19 years agoAdded HAVE_STRUCT_IN6_ADDR to Netware's config.h
Dan Fandrich [Fri, 11 Mar 2005 05:39:37 +0000 (05:39 +0000)]
Added HAVE_STRUCT_IN6_ADDR to Netware's config.h

19 years agoDominick Meglio added ares_parse_aaaa_reply.c and did various adjustments. The
Daniel Stenberg [Thu, 10 Mar 2005 23:30:34 +0000 (23:30 +0000)]
Dominick Meglio added ares_parse_aaaa_reply.c and did various adjustments. The
first little steps towards IPv6 support!

19 years agoSamuel Díaz García's correction
Daniel Stenberg [Sat, 5 Mar 2005 00:04:52 +0000 (00:04 +0000)]
Samuel Díaz García's correction

19 years agoUpdated as suggested by Samuel Díaz García
Daniel Stenberg [Tue, 22 Feb 2005 18:39:40 +0000 (18:39 +0000)]
Updated as suggested by Samuel Díaz García

19 years agountabified
Daniel Stenberg [Fri, 10 Dec 2004 21:46:00 +0000 (21:46 +0000)]
untabified

19 years agoNORECURSE clarification, minor formatting update
Daniel Stenberg [Tue, 7 Dec 2004 10:43:21 +0000 (10:43 +0000)]
NORECURSE clarification, minor formatting update

19 years agofix the -I path to the proper include dir when --enable-debug is used
Daniel Stenberg [Thu, 11 Nov 2004 14:15:41 +0000 (14:15 +0000)]
fix the -I path to the proper include dir when --enable-debug is used

19 years agoAdapted for C++.
Gisle Vanem [Thu, 11 Nov 2004 12:25:40 +0000 (12:25 +0000)]
Adapted for C++.

19 years agoReplace IsNT with IS_NT().
Gisle Vanem [Wed, 10 Nov 2004 14:30:25 +0000 (14:30 +0000)]
Replace IsNT with IS_NT().

19 years agoReplace IsNT with IS_NT().
Gisle Vanem [Wed, 10 Nov 2004 14:23:20 +0000 (14:23 +0000)]
Replace IsNT with IS_NT().
Return correct timeval in windows_port.c.
Squelch gcc warnings:
  use 'ares_socket_t' in ares_fds.c.
  Don't cast a 'lvalue' in ares_init.c.

19 years agofix CURL_EXTERN for debug builds
Daniel Stenberg [Tue, 9 Nov 2004 18:10:51 +0000 (18:10 +0000)]
fix CURL_EXTERN for debug builds

19 years agotwo post-1.2.1 changes
Daniel Stenberg [Sun, 7 Nov 2004 23:48:42 +0000 (23:48 +0000)]
two post-1.2.1 changes

19 years agoadded ares_cancel and ares_version
Daniel Stenberg [Sun, 7 Nov 2004 13:37:07 +0000 (13:37 +0000)]
added ares_cancel and ares_version

19 years agomention incompatibilities with ares
Daniel Stenberg [Tue, 26 Oct 2004 08:08:41 +0000 (08:08 +0000)]
mention incompatibilities with ares

19 years agoignore this
Daniel Stenberg [Sun, 24 Oct 2004 13:02:46 +0000 (13:02 +0000)]
ignore this

19 years agomaketgz now creates a ares_version.h.dist file with the given version data
Daniel Stenberg [Sun, 24 Oct 2004 13:02:09 +0000 (13:02 +0000)]
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.

19 years ago1.2.1 release time
Daniel Stenberg [Wed, 20 Oct 2004 08:01:38 +0000 (08:01 +0000)]
1.2.1 release time

19 years agoremoved tabs and trailing whitespace from source
Daniel Stenberg [Wed, 6 Oct 2004 07:50:18 +0000 (07:50 +0000)]
removed tabs and trailing whitespace from source

19 years ago- Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
Daniel Stenberg [Tue, 28 Sep 2004 22:19:39 +0000 (22:19 +0000)]
- 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.

19 years ago- Henrik Stoerner: found out that C-ARES does not look at the /etc/host.conf
Daniel Stenberg [Sun, 26 Sep 2004 22:35:18 +0000 (22:35 +0000)]
- 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.

19 years agoDominick Meglio host file path discovery patch for windows
Daniel Stenberg [Sun, 26 Sep 2004 18:20:58 +0000 (18:20 +0000)]
Dominick Meglio host file path discovery patch for windows

19 years agoignore more
Daniel Stenberg [Tue, 14 Sep 2004 21:31:06 +0000 (21:31 +0000)]
ignore more

19 years agofixed nasty warnings with gcc 3.3.
Gunter Knauf [Fri, 3 Sep 2004 18:51:36 +0000 (18:51 +0000)]
fixed nasty warnings with gcc 3.3.

19 years agomention Gisle's recent fixes
Daniel Stenberg [Mon, 30 Aug 2004 09:16:31 +0000 (09:16 +0000)]
mention Gisle's recent fixes

19 years agoRemoved ares_free_errmem.c from MSCV project files.
Gisle Vanem [Sun, 29 Aug 2004 15:40:17 +0000 (15:40 +0000)]
Removed ares_free_errmem.c from MSCV project files.
Fixed line-endings to CR-LF.

19 years agoMore patches for Watt-32 on Win32; don't include "nameser.h".
Gisle Vanem [Fri, 20 Aug 2004 14:10:44 +0000 (14:10 +0000)]
More patches for Watt-32 on Win32; don't include "nameser.h".