platform/upstream/c-ares.git
18 years agoUse native type SOCKET instead of int when testing functionality of ioctlsocket on...
Yang Tse [Tue, 20 Dec 2005 00:27:59 +0000 (00:27 +0000)]
Use native type SOCKET instead of int when testing functionality of ioctlsocket on Windows

18 years agoOoops
Yang Tse [Mon, 19 Dec 2005 23:32:52 +0000 (23:32 +0000)]
Ooops

18 years agoAdd checking for type DWORD as argument 4 and 6 of getnameinfo
Yang Tse [Mon, 19 Dec 2005 21:45:43 +0000 (21:45 +0000)]
Add checking for type DWORD as argument 4 and 6 of getnameinfo

18 years agoAdjust more windows header includes
Yang Tse [Mon, 19 Dec 2005 21:38:10 +0000 (21:38 +0000)]
Adjust more windows header includes

18 years agoFix guard detection of _WIN32_WINNT for MingW in CURL_FUNC_GETNAMEINFO_ARGTYPES
Yang Tse [Mon, 19 Dec 2005 05:57:17 +0000 (05:57 +0000)]
Fix guard detection of _WIN32_WINNT for MingW in CURL_FUNC_GETNAMEINFO_ARGTYPES

18 years agoAdd check for 'unsigned int' as type of arguments 4 and 6 of getnameinfo
Yang Tse [Mon, 19 Dec 2005 05:32:33 +0000 (05:32 +0000)]
Add check for 'unsigned int' as type of arguments 4 and 6 of getnameinfo

18 years agoUndo previous change. This header file belongs to the public
Yang Tse [Mon, 19 Dec 2005 00:15:04 +0000 (00:15 +0000)]
Undo previous change. This header file belongs to the public
interface and the change could break the compilation of thrid
party apps which link against this library.

18 years agoWhen checking the type of the first argument of getnameinfo do it in the
Yang Tse [Sun, 18 Dec 2005 20:24:36 +0000 (20:24 +0000)]
When checking the type of the first argument of getnameinfo do it in the
following order: 'struct sockaddr *' 'const struct sockaddr *' 'void *'.

18 years agoFix spacing. When defining, define to 1.
Yang Tse [Sun, 18 Dec 2005 16:50:33 +0000 (16:50 +0000)]
Fix spacing. When defining, define to 1.

18 years agoCleanup windows header includes. Where aplicable, inclusion of
Yang Tse [Sun, 18 Dec 2005 15:36:14 +0000 (15:36 +0000)]
Cleanup windows header includes. Where aplicable, inclusion of
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h

18 years agoMingW guards getnameinfo, getaddrinfo and freeaddrinfo with _WIN32_WINNT >= 0x0501
Yang Tse [Sun, 18 Dec 2005 06:07:11 +0000 (06:07 +0000)]
MingW guards getnameinfo, getaddrinfo and freeaddrinfo with _WIN32_WINNT >= 0x0501

18 years agoFix Msys/Mingw not detecting getnameinfo() with AC_CHECK_FUNCS
Yang Tse [Sun, 18 Dec 2005 04:47:29 +0000 (04:47 +0000)]
Fix Msys/Mingw not detecting getnameinfo() with AC_CHECK_FUNCS

18 years agoMake it compatible with vc60 and vc71
Yang Tse [Sun, 18 Dec 2005 00:27:12 +0000 (00:27 +0000)]
Make it compatible with vc60 and vc71

18 years agoFix typo
Yang Tse [Sat, 17 Dec 2005 23:35:25 +0000 (23:35 +0000)]
Fix typo

18 years agoFix compiler warning
Yang Tse [Sat, 17 Dec 2005 23:34:21 +0000 (23:34 +0000)]
Fix compiler warning

18 years agoCleanup
Yang Tse [Sat, 17 Dec 2005 21:20:35 +0000 (21:20 +0000)]
Cleanup

18 years agoWindows related cleanup
Yang Tse [Sat, 17 Dec 2005 20:37:53 +0000 (20:37 +0000)]
Windows related cleanup

18 years agoCheck first arg of getnameinfo with and without const qualifier.
Yang Tse [Sat, 17 Dec 2005 17:33:14 +0000 (17:33 +0000)]
Check first arg of getnameinfo with and without const qualifier.

18 years agoAvoid breaking configure due to CURL_FUNC_GETNAMEINFO_ARGTYPES failure, since at...
Yang Tse [Sat, 17 Dec 2005 02:41:33 +0000 (02:41 +0000)]
Avoid breaking configure due to CURL_FUNC_GETNAMEINFO_ARGTYPES failure, since at this point nothing depends on it.

18 years agoconst qualifier in getnameinfo check
Yang Tse [Sat, 17 Dec 2005 02:32:55 +0000 (02:32 +0000)]
const qualifier in getnameinfo check

18 years agoSince there is no proof of the existence of a platform which would
Yang Tse [Fri, 16 Dec 2005 23:15:33 +0000 (23:15 +0000)]
Since there is no proof of the existence of a platform which would
justify checking for socklen_t in more than one function, the code
used to find a valid socklen_t replacement is simplified back. The
only function that will be used to find a socklen_t replacement is
getpeername, as it has been since revision 1.4 of curl/acinclude.m4

18 years ago'Fix' windows builds
Yang Tse [Fri, 16 Dec 2005 20:55:07 +0000 (20:55 +0000)]
'Fix' windows builds

18 years agoTYPE_SOCKLEN_T completely replaced by CURL_CHECK_TYPE_SOCKLEN_T.
Yang Tse [Fri, 16 Dec 2005 18:18:00 +0000 (18:18 +0000)]
TYPE_SOCKLEN_T completely replaced by CURL_CHECK_TYPE_SOCKLEN_T.
CURL_FUNC_GETNAMEINFO_ARGTYPES now also checks first argument.
All related changes taken to cares configuration scripts.

18 years agoUndo last changes
Yang Tse [Sun, 11 Dec 2005 23:37:58 +0000 (23:37 +0000)]
Undo last changes

18 years agoFix compiler warning and compatibility issue with the type of the parameter used...
Yang Tse [Sun, 11 Dec 2005 12:03:01 +0000 (12:03 +0000)]
Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.

18 years agoModified lookup_service() to avoid the risk of a potential buffer overflow
Yang Tse [Sat, 10 Dec 2005 19:21:59 +0000 (19:21 +0000)]
Modified lookup_service() to avoid the risk of a potential buffer overflow

18 years agoFix compiler warning
Yang Tse [Fri, 9 Dec 2005 22:23:50 +0000 (22:23 +0000)]
Fix compiler warning

18 years agoFix compiler warning
Yang Tse [Fri, 9 Dec 2005 21:09:21 +0000 (21:09 +0000)]
Fix compiler warning

18 years agoYang Tse fixed compiler warnings
Daniel Stenberg [Fri, 25 Nov 2005 22:45:06 +0000 (22:45 +0000)]
Yang Tse fixed compiler warnings

18 years agoread_tcp_data() fix to get the proper buffer pointer and size
Daniel Stenberg [Fri, 25 Nov 2005 22:23:28 +0000 (22:23 +0000)]
read_tcp_data() fix to get the proper buffer pointer and size

18 years agoYang Tse: fixed compiler warnings
Daniel Stenberg [Fri, 25 Nov 2005 22:14:53 +0000 (22:14 +0000)]
Yang Tse: fixed compiler warnings

18 years agoChange based on Yang Tse's excellent fix to reduce buffer overflow risk and
Daniel Stenberg [Fri, 25 Nov 2005 22:14:28 +0000 (22:14 +0000)]
Change based on Yang Tse's excellent fix to reduce buffer overflow risk and
fixing a compiler warning in the append_scopeid() function.

18 years agoavoid doing #if an a predef symbol that might not be defined
Daniel Stenberg [Thu, 24 Nov 2005 23:03:25 +0000 (23:03 +0000)]
avoid doing #if an a predef symbol that might not be defined

19 years agocheck for and use winsock2.h instead of winsock.h and I fixed a typo in the
Daniel Stenberg [Wed, 16 Nov 2005 07:12:37 +0000 (07:12 +0000)]
check for and use winsock2.h instead of winsock.h and I fixed a typo in the
ifdefs where . was used instead of _!

19 years agoinclude ws2tcpip.h in an attempt to detect some of the ipv6 structs better
Daniel Stenberg [Tue, 15 Nov 2005 14:39:52 +0000 (14:39 +0000)]
include ws2tcpip.h in an attempt to detect some of the ipv6 structs better
in mingw builds

19 years agoDetect big/little endian in the configure script and adjust the ares_dns.h
Daniel Stenberg [Mon, 14 Nov 2005 23:14:54 +0000 (23:14 +0000)]
Detect big/little endian in the configure script and adjust the ares_dns.h
macros accordingly.

19 years agoAdded '-DHAVE_SOCKADDR_IN6_SIN6_SCOPE_ID'.
Gisle Vanem [Mon, 14 Nov 2005 13:40:16 +0000 (13:40 +0000)]
Added '-DHAVE_SOCKADDR_IN6_SIN6_SCOPE_ID'.

19 years agoAdded CVS id.
Gisle Vanem [Mon, 14 Nov 2005 13:26:17 +0000 (13:26 +0000)]
Added CVS id.
Avoid warning 'x might be used uninitialized in this function'.

19 years agoWe have HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID.
Gisle Vanem [Mon, 14 Nov 2005 12:32:56 +0000 (12:32 +0000)]
We have HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID.

19 years agoFixed typo. Detabified.
Gisle Vanem [Sat, 12 Nov 2005 18:33:32 +0000 (18:33 +0000)]
Fixed typo. Detabified.

19 years agoSupport big-endian machines.
Gisle Vanem [Sat, 12 Nov 2005 15:15:27 +0000 (15:15 +0000)]
Support big-endian machines.

19 years agoAdded CVS id, Detabified, applied c-ares coding-style.
Gisle Vanem [Sat, 12 Nov 2005 14:59:33 +0000 (14:59 +0000)]
Added CVS id, Detabified, applied c-ares coding-style.

19 years agoAdded CVS id. Detabified.
Gisle Vanem [Sat, 12 Nov 2005 14:44:26 +0000 (14:44 +0000)]
Added CVS id. Detabified.

19 years agoInclude <getopt.h>.
Gisle Vanem [Sat, 12 Nov 2005 14:41:12 +0000 (14:41 +0000)]
Include <getopt.h>.
Use DNS__32BIT() and DNS__16BIT()  (How about BE machines?).
Display T_AAAA resource.

19 years agoremoved files no longer existing
Daniel Stenberg [Sat, 12 Nov 2005 00:01:50 +0000 (00:01 +0000)]
removed files no longer existing

19 years agoSquelch gcc 4.x warning.
Gisle Vanem [Fri, 11 Nov 2005 19:25:29 +0000 (19:25 +0000)]
Squelch gcc 4.x warning.

19 years agoDetabified. Added CVS id.
Gisle Vanem [Fri, 11 Nov 2005 19:20:22 +0000 (19:20 +0000)]
Detabified. Added CVS id.

19 years agoHAVE_xx defines moved to config-win32.h.
Gisle Vanem [Fri, 11 Nov 2005 19:14:51 +0000 (19:14 +0000)]
HAVE_xx defines moved to config-win32.h.

19 years agoUpdate using ares_inet_pton() and ares_inet_ntop().
Gisle Vanem [Fri, 11 Nov 2005 04:28:23 +0000 (04:28 +0000)]
Update using ares_inet_pton() and ares_inet_ntop().

19 years agoUse config-win32.h on Windows. Fixes for djgpp.
Gisle Vanem [Thu, 10 Nov 2005 16:55:59 +0000 (16:55 +0000)]
Use config-win32.h on Windows. Fixes for djgpp.

19 years agoDefines moved to config-win32.h.
Gisle Vanem [Thu, 10 Nov 2005 16:52:43 +0000 (16:52 +0000)]
Defines moved to config-win32.h.

19 years agoEasy configuration with this file.
Gisle Vanem [Thu, 10 Nov 2005 16:50:21 +0000 (16:50 +0000)]
Easy configuration with this file.

19 years agoRemove generated files areslib.plg areslib.mak from CVS.
Gisle Vanem [Thu, 10 Nov 2005 16:42:07 +0000 (16:42 +0000)]
Remove generated files areslib.plg areslib.mak from CVS.

19 years agoRemove generated files ahost.plg ahost.mak from CVS.
Gisle Vanem [Thu, 10 Nov 2005 16:40:08 +0000 (16:40 +0000)]
Remove generated files ahost.plg ahost.mak from CVS.

19 years agoRemove generated files adig.plg adig.mak from CVS.
Gisle Vanem [Thu, 10 Nov 2005 16:38:17 +0000 (16:38 +0000)]
Remove generated files adig.plg adig.mak from CVS.

19 years agoUpdate with "new" HAVE_xx.
Gisle Vanem [Wed, 9 Nov 2005 22:52:45 +0000 (22:52 +0000)]
Update with "new" HAVE_xx.

19 years agoReplace <winsock.h> with <winsock2.h>
Gisle Vanem [Wed, 9 Nov 2005 22:32:45 +0000 (22:32 +0000)]
Replace <winsock.h> with <winsock2.h>
since IPv6 support is required.

19 years agoAdd cvs id.
Gisle Vanem [Wed, 9 Nov 2005 22:18:13 +0000 (22:18 +0000)]
Add cvs id.

19 years agoAdded Makefile.vc6.
Gisle Vanem [Wed, 9 Nov 2005 22:17:13 +0000 (22:17 +0000)]
Added Makefile.vc6.

19 years agoI hate MS-devstudio project files.
Gisle Vanem [Wed, 9 Nov 2005 22:16:58 +0000 (22:16 +0000)]
I hate MS-devstudio project files.

19 years agoUpdated for MingW. Added inet_ntop.o inet_net_pton.o bitncmp.o.
Gisle Vanem [Wed, 9 Nov 2005 21:51:44 +0000 (21:51 +0000)]
Updated for MingW. Added inet_ntop.o inet_net_pton.o bitncmp.o.
Added -D'efines'.

19 years agoMSVC fix for 'socklen_t'. Replace <winsock.h> with <winsock2.h> +
Gisle Vanem [Wed, 9 Nov 2005 21:38:58 +0000 (21:38 +0000)]
MSVC fix for 'socklen_t'. Replace <winsock.h> with <winsock2.h> +
<ws2tcpip.h> since IPv6 is no longer optional (was it ever?)

19 years agoFixes for building with MSVC-6/7. Added inet*.c.
Gisle Vanem [Wed, 9 Nov 2005 21:32:47 +0000 (21:32 +0000)]
Fixes for building with MSVC-6/7. Added inet*.c.
Replace <winsock.h> with <winsock2.h> + <ws2tcpip.h>
(ala libcurl since IPv6 is not optional now).

19 years agoFixes for building ahost with MSVC-6/7. Added inet*.c.
Gisle Vanem [Wed, 9 Nov 2005 21:29:34 +0000 (21:29 +0000)]
Fixes for building ahost with MSVC-6/7. Added inet*.c.

19 years agoOk, based on the online docs for AIX'es getservbyport_r() I adjusted to code
Daniel Stenberg [Mon, 3 Oct 2005 10:12:06 +0000 (10:12 +0000)]
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

19 years ago1 - attempted fix of uninitialized variable
Daniel Stenberg [Wed, 21 Sep 2005 10:45:25 +0000 (10:45 +0000)]
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

19 years agosimplified the sin6_scope_id test and removed some left-overs from the previous
Daniel Stenberg [Wed, 21 Sep 2005 09:10:17 +0000 (09:10 +0000)]
simplified the sin6_scope_id test and removed some left-overs from the previous
way of detecting it

19 years agofixed the check for the addrinfo struct
Daniel Stenberg [Wed, 21 Sep 2005 09:01:44 +0000 (09:01 +0000)]
fixed the check for the addrinfo struct

19 years agoAdded constants that will be used by ares_getaddrinfo. Made ares_getnameinfo use...
Dominick Meglio [Sun, 18 Sep 2005 16:44:49 +0000 (16:44 +0000)]
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

19 years agomention the configure change
Daniel Stenberg [Thu, 15 Sep 2005 19:23:31 +0000 (19:23 +0000)]
mention the configure change

19 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.

19 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

19 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...

19 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

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

19 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.

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

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

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

19 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.

19 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.

19 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.

19 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.