Yang Tse
5e5c0132e6
renamed getplatform() to ares__getplatform() to avoid namespace pollution
14 years ago
Yang Tse
e49ce8f973
configure: fix libtool warning
...
Recent versions of libtool are now tracing usage of AC_CONFIG_MACRO_DIR
macro and warn heavily when not used in configure script along with
ACLOCAL_AMFLAGS in Makefile.am. So in order to make libtool happy
while keeping backwards compatibility this is added.
14 years ago
Yang Tse
2c2e2d839e
adig: RFC4034 resource record type detection
...
Can be tested with: adig -s 8.8.8.8 -t ANY example.com
14 years ago
Yang Tse
ebc9a9d958
nameser.h: RFC4034 resource record type definitions
14 years ago
Yang Tse
5b6a188909
build: move platform stuff to ares_platform.c and ares_platform.h
14 years ago
Yang Tse
bd066ab8ef
build: find out windows platform using GetVersionEx()
14 years ago
Yang Tse
822fd0f877
build: use getenv() replacement function for systems which lack it
14 years ago
Yang Tse
3abad87d88
setup_once: system error codes for Windows CE
14 years ago
Yang Tse
c7ce7c7d45
ares_search: use ERRNO macro for portability sake
14 years ago
Yang Tse
9099a9eb0c
System's errno.h inclusion cleanup follow-up.
...
System's errno.h is conditionally included from setup_once.h
14 years ago
Yang Tse
d81cae7a67
Windows CE specific adjustment
...
All versions of Windows CE support Winsock 1.1
14 years ago
Yang Tse
8c503ddf79
System's errno.h inclusion cleanup.
...
System's errno.h is conditionally included from setup_once.h
14 years ago
Yang Tse
ef8e2ad601
ares_init: fix gethostname error detection on winsock platforms
14 years ago
Yang Tse
cd753ffe14
configure: r-enable temporarily disabled detection of system's inet_ntop()
...
Detection was temporarily disabled in commit 674e044ccb
14 years ago
Daniel Stenberg
1bd524dd4a
configure: stop using the deprecated AM_INIT_AUTOMAKE syntax
14 years ago
Gisle Vanem
0f226fb8e4
Watt-32: use errno
...
Make sure Watt-32 programs use 'errno' even on Win32 targets
14 years ago
Guenter Knauf
ffb7697ac8
Removed commented CLFAGS no longer needed.
14 years ago
Guenter Knauf
6e3e66dc5c
Fixed CFLAGS for NetWare.
...
Added -m32 to enable compilation with x86_64 compilers;
added conditional to set -fpcc-struct-return only for gcc compiler.
14 years ago
Gisle Vanem
9a11973403
Watt32: fix server init
...
Somewhere in the process, programs using the Watt-32 tcp/ip stack
stopped working.
14 years ago
Dima Tisnek
e14f136aa3
config_sortlist: (win32) missing else
...
Without an else there, contents of "pat" that could have been
successfully set just above, may be clobbered by successive unsuccessful
calls to "xxx_pton" or "ip_addr".
14 years ago
Yang Tse
dec9f79d0a
Makefile.msvc: add a couple of VS version strings
14 years ago
Yang Tse
e5fe34eea6
Makefile.msvc: add a couple of VS version strings
14 years ago
Yang Tse
5a21ba2b66
build: add install target to Makefile.msvc
14 years ago
Daniel Stenberg
d70721eb65
ares_set_servers_csv: remove unused variables
14 years ago
Daniel Stenberg
bd6636c138
init_by_resolv_conf: fix compiler warnings
...
The code received the return codes in the 'status' variable without
using it. Instead we just ignore those particular errors.
14 years ago
Daniel Stenberg
39d7f64361
getv4: Value stored to 'dst' is never read
14 years ago
Daniel Stenberg
366cd6d54d
advance_tcp_send_queue: avoid NULL ptr dereference
...
If given a too large 'num_bytes' value, it would cause a NULL ptr
dereference. Instead the code will now break out of the loop at the end
of the list.
14 years ago
Peter Pentchev
766a5aaf86
configure: fix a bashism
14 years ago
Daniel Stenberg
2d5ed6400b
cleanup: avoid unsafe typecasts
...
Avoid the risk of reading 16bit data from an unaligned address by using
a macro that is adapted for this.
14 years ago
Stefan Bühler
70b726c334
ares_expand_name: Fix encoded length for indirect root
14 years ago
Yang Tse
a44f4c33e9
build: add some explicit file references to VS project files
14 years ago
Yang Tse
1cfd800d4a
config-win32: provide HAVE_ASSERT_H definition
14 years ago
Yang Tse
7a4ec5ce61
build: include ares_nowarn in sample program VS project files
14 years ago
Yang Tse
e566cc100f
build: include ares_nowarn among SAMPLESOURCES and SAMPLEHEADERS
14 years ago
Yang Tse
674e044ccb
configure: temporarily disable detection of system's inet_ntop()
...
This is done to allow compilation of ares_inet_ntop() by some daily
builds picky compilers that otherwise do not need this function.
14 years ago
Yang Tse
d8c830f33e
changes: mention last fix
14 years ago
Yang Tse
3670427a0b
ares_inet_ntop: remove definition and usage of macro SPRINTF
...
Existing definition of SPRINTF always resulted in sprintf() being used,
and sprintf() returning 'int' is already used throughout the library.
14 years ago
Yang Tse
52f493c931
ares_inet_ntop: reapply changes from previous c-ares version (III)
...
- Replace 'u_char' with 'unsigned char'.
- Replace 'u_int' with 'unsigned int'.
- use macros ERRNO and SET_ERRNO() for errno handling.
14 years ago
Yang Tse
2c9bdd7856
ares_inet_ntop: reapply changes from previous c-ares version (II)
...
- Remove rcsid.
- Adjust header file inclusions.
- ares_inet_ntop used only on systems without a proper inet_ntop function.
14 years ago
Yang Tse
fd6f4dbe1e
ares_inet_ntop: reapply changes from previous c-ares version (I)
...
- Replace tabs with spaces.
- Use ANSI C style for function declarations and definitions.
- Use sizeof with parentheses.
14 years ago
Yang Tse
0d738bab0d
ares_inet_ntop: fix off by one error triggering out of bounds write
...
ares_inet_ntop would trigger an out of bounds write when the representation
of the address required 15 characters, due to not taking in account null
termination character.
Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes.
14 years ago
Yang Tse
b9959cbf36
ares_nowarn: add conditional inclusion of assert.h header
14 years ago
Yang Tse
f5e0858d2f
fix compiler warning: conversion may lose significant bits
14 years ago
Yang Tse
e03a65c3d9
ares_inet_net_pton: fix non-rejection of some malformed literals
...
ares_inet_net_pton would return wrong values when excessively large,
and invalid, netmasks are used. Fixes are from bind-9.5.3rc1,
issue also described in the WLB-2008080064 advisory.
14 years ago
Yang Tse
2c26d7d254
setup_once: provide ISASCII macro
14 years ago
Yang Tse
623f3cb531
configure: inet_net_pton function check adjustments
...
Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
capable and is not affected by the WLB-2008080064 advisory.
HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
14 years ago
Yang Tse
b2dafb6974
ares_init: fix detection of semicolon comments in resolv.conf
...
File resolv.conf may either use a hash '#' or a semicolon ';' character as an
indication that the rest of the line is a comment. This fixes not recognizing
the semicolon as a valid comment indicator in resolv.conf.
14 years ago
Yang Tse
0b497f70e1
version: start working on 1.7.5
14 years ago
Daniel Stenberg
b354607aed
release-preps: CHANGES and RELEASE-NOTES synced
14 years ago
Daniel Stenberg
0ae8dbb22d
ares_set_local_*: added in 1.7.4, not before
14 years ago