removed -fpack-struct because gcc4 seems to know its obsolete and warns...
[platform/upstream/c-ares.git] / CHANGES
1   Changelog for the c-ares project
2
3 * January 9, 2006
4
5 - Alexander Lazic improved the getservbyport_r() configure check.
6
7 * January 6, 2006
8
9 - Alexander Lazic pointed out that the buildconf should use the ACLOCAL_FLAGS
10   variable for easier controlling what it does and how it runs.
11
12 * January 5, 2006
13
14 - James Bursa fixed c-ares to find the hosts file on RISC OS, and made it
15   build with newer gcc versions that no longer defines "riscos".
16
17 * December 22
18
19 - Daniel Stenberg added ares_getsock() that extracts the set of sockets to
20   wait for action on. Similar to ares_fds() but not restricted to using
21   select() for the waiting.
22
23 * November 25
24
25 - Yang Tse fixed some send() / recv() compiler warnings
26
27 * September 18
28
29 - Added constants that will be used by ares_getaddrinfo
30
31 - Made ares_getnameinfo use the reentrant getservbyport (getservbyport_r) if it is
32   available to ensure it works properly in a threaded environment.
33
34 * September 10
35
36 - configure fix for detecting a member in the sockaddr_in6 struct which failed
37   on ipv6-enabled HP-UX 11.00
38
39 Version 1.3.0 (August 29, 2004)
40
41 * August 21
42
43 - Alfredo Tupone provided a fix for the Windows code in get_iphlpapi_dns_info()
44   when getting the DNS server etc.
45
46 * June 19
47
48 - Added some checks for the addrinfo structure.
49
50 * June 2
51
52 - William Ahern:
53
54   Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
55   read event can come back from poll() on a valid SOCK_DGRAM socket but
56   recv(2) will still block. This patch doesn't ignore EAGAIN in
57   read_udp_packets(), though maybe it should. (This patch was edited by Daniel
58   Stenberg and a new configure test was added (imported from curl's configure)
59   to properly detect what non-blocking socket approach to use.)
60
61   I'm not quite sure how this was happening, but I've been seeing PTR queries
62   which seem to return empty responses. At least, they were empty when calling
63   ares_expand_name() on the record. Here's a patch which guarantees to
64   NUL-terminate the expanded name. The old behavior failed to NUL-terminate if
65   len was 0, and this was causing strlen() to run past the end of the buffer
66   after calling ares_expand_name() and getting ARES_SUCCESS as the return
67   value. If q is not greater than *s then it's equal and *s is always
68   allocated with at least one byte.
69
70 * May 16
71
72 - Added ares_getnameinfo which mimics the getnameinfo API (another feature
73   that could use testing).
74
75 * May 14
76
77 - Added an inet_ntop function from BIND for systems that do not have it.
78
79 * April 9
80
81 - Made sortlist support IPv6 (this can probably use some testing).
82
83 - Made sortlist support CIDR matching for IPv4.
84
85 * April 8
86
87 - Added preliminary IPv6 support to ares_gethostbyname. Currently, sortlist
88   does not work with IPv6. Also provided an implementation of bitncmp from
89   BIND for systems that do not supply this function. This will be used to add
90   IPv6 support to sortlist.
91
92 - Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family.
93   The function can lookup IPv6 addresses both from files (/etc/hosts) and
94   DNS lookups.
95
96 * April 7
97
98 - Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac
99   OS X.
100
101 * April 5
102
103 - Dominick Meglio: Provided implementations of inet_net_pton and inet_pton
104   from BIND for systems that do not include these functions.
105
106 * March 11, 2005
107
108 - Dominick Meglio added ares_parse_aaaa_reply.c and did various
109   adjustments. The first little steps towards IPv6 support!
110
111 * November 7
112
113 - Fixed the VC project and makefile to use ares_cancel and ares_version
114
115 * October 24
116
117 - The released ares_version.h from 1.2.1 says 1.2.0 due to a maketgz flaw.
118   This is now fixed.
119
120 Version 1.2.1 (October 20, 2004)
121
122 * September 29
123
124 - Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
125   when they made Alpha's) uses /etc/svc.conf for the purpose fixed below for
126   other OSes. He made c-ares check for and understand it if present.
127
128 - Now c-ares will use local host name lookup _before_ DNS resolving by default
129   if nothing else is told.
130
131 * September 26
132
133 - Henrik Stoerner: found out that c-ares does not look at the /etc/host.conf
134   file to determine the sequence in which to search /etc/hosts and DNS.  So on
135   systems where this order is defined by /etc/host.conf instead of a "lookup"
136   entry in /etc/resolv.conf, c-ares will always default to looking in DNS
137   first, and /etc/hosts second.
138
139   c-ares now looks at
140
141   1) resolv.conf (for the "lookup" line);
142   2) nsswitch.fon (for the "hosts:" line);
143   3) host.conf (for the "order" line).
144
145   First match wins.
146
147 - Dominick Meglio patched: C-ares on Windows assumed that the HOSTS file is
148   located in a static location. It assumed
149   C:\Windows\System32\Drivers\Etc. This is a poor assumption to make. In fact,
150   the location of the HOSTS file can be changed via a registry setting.
151
152   There is a key called DatabasePath which specifies the path to the HOSTS
153   file:
154   http://www.microsoft.com/technet/itsolutions/network/deploy/depovg/tcpip2k.mspx
155
156   The patch will make c-ares correctly consult the registry for the location
157   of this file.
158
159 * August 29
160
161 - Gisle Vanem fixed the MSVC build files.
162
163 * August 20
164
165 - Gisle Vanem made c-ares build and work with his Watt-32 TCP/IP stack.
166
167 * August 13
168
169 - Harshal Pradhan made a minor syntax change in ares_init.c to make it build
170   fine with MSVC 7.1
171
172 * July 24
173
174 - Made the lib get built static only if --enable-debug is used.
175
176 - Gisle Vanem fixed:
177
178   Basically in loops like handle_errors(), 'query->next' was assigned a local
179   variable and then query was referenced after the memory was freed by
180   next_server(). I've changed that so next_server() and end_query() returns
181   the next query. So callers should use this ret-value.
182
183   The next problem was that 'server->tcp_buffer_pos' had a random value at
184   entry to 1st recv() (luckily causing Winsock to return ENOBUFS).
185
186   I've also added a ares_writev() for Windows to streamline the code a bit
187   more.
188
189 * July 20
190 - Fixed a few variable return types for some system calls. Made configure
191   check for ssize_t to make it possible to use that when receiving the send()
192   error code. This is necessary to prevent compiler warnings on some systems.
193
194 - Made configure create config.h, and all source files now include setup.h that
195   might include the proper config.h (or a handicrafted alternative).
196
197 - Switched to 'ares_socket_t' type for sockets in ares, since Windows don't
198   use 'int' for that.
199
200 - automake-ified and libool-ified c-ares. Now it builds libcares as a shared
201   lib on most platforms if wanted. (This bloated the size of the release
202   archive with another 200K!)
203
204 - Makefile.am now uses Makefile.inc for the c sources, h headers and man
205   pages, to make it easier for other makefiles to use the exact same set of
206   files.
207
208 - Adjusted 'maketgz' to use the new automake magic when building distribution
209   archives.
210
211 - Anyone desires HTML and/or PDF versions of the man pages in the release
212   archives?
213
214 * July 3
215 - Günter Knauf made c-ares build and run on Novell Netware.
216
217 * July 1
218 - Gisle Vanem provided Makefile.dj to build with djgpp, added a few more djgpp
219   fixes and made ares not use 'errno' to provide further info on Windows.
220
221 * June 30
222 - Gisle Vanem made it build with djgpp and run fine with the Watt-32 stack.
223
224 * June 10
225 - Gisle Vanem's init patch for Windows:
226
227   The init_by_resolv_conf() function fetches the DNS-server(s)
228   from a series of registry branches.
229
230   This can be wrong in the case where DHCP has assigned nameservers, but the
231   user has overridden these servers with other prefered settings. Then it's
232   wrong to use the DHCPNAMESERVER setting in registry.
233
234   In the case of no global DHCP-assigned or fixed servers, but DNS server(s)
235   per adapter, one has to query the adapter branches.  But how can c-ares know
236   which adapter is valid for use? AFAICS it can't. There could be one adapter
237   that is down (e.g. a VPN adapter).
238
239   So it's better to leave this to the IP Helper API (iphlapi) available in
240   Win-98/2000 and later. My patch falls-back to the old way if not available.
241
242 * June 8
243 - James Bursa fixed an init issue for RISC OS.
244
245 * May 11
246 - Nico Stappenbelt reported that when processing domain and search lines in
247   the resolv.conf file, the first entry encountered is processed and used as
248   the search list. According to the manual pages for both Linux, Solaris and
249   Tru64, the last entry of either a domain or a search field is used.
250
251   This is now adjusted in the code
252
253 Version 1.2.0 (April 13, 2004)
254
255 * April 2, 2004
256 - Updated various man pages to look nicer when converted to HTML on the web
257   site.
258
259 * April 1, 2004
260 - Dirk Manske provided a new function that is now named ares_cancel(). It is
261   used to cancel/cleanup a resolve/request made using ares functions on the
262   given ares channel. It does not destroy/kill the ares channel itself.
263
264 - Dominick Meglio cleaned up the formatting in several man pages.
265
266 * March 30, 2004
267 - Dominick Meglio's new ares_expand_string. A helper function when decoding
268   incoming DNS packages.
269
270 - Daniel Stenberg modified the Makefile.in to use a for loop for the man page
271   installation to improve overview and make it easier to add man pages.
272
273 Version 1.1.0 (March 11, 2004)
274
275 * March 9, 2004
276 - Gisle Vanem improved build on Windows.
277
278 * February 25, 2004
279 - Dan Fandrich found a flaw in the Feb 22 fix.
280
281 - Added better configure --enable-debug logic (taken from the curl configure
282   script). Added acinclude.m4 to the tarball.
283
284 * February 23, 2004
285 - Removed ares_free_errmem(), the function, the file and the man page. It was
286   not used and it did nothing.
287
288 - Fixed a lot of code that wasn't "64bit clean" and thus caused a lot of
289   compiler warnings on picky compilers.
290
291 * February 22, 2004
292 - Dominick Meglio made ares init support multiple name servers in the
293   NameServer key on Windows.
294
295 * February 16, 2004
296 - Modified ares_private.h to include libcurl's memory debug header if
297   CURLDEBUG is set. This makes all the ares-functions supervised properly by
298   the curl test suite. This also forced me to add inclusion of the
299   ares_private.h header in a few more files that are using some kind of
300   memory-related resources.
301
302 - Made the makefile only build ahost and adig if 'make demos' is used.
303
304 * February 10, 2004
305 - Dirk Manske made ares_version.h installed with 'make install'
306
307 * February 4, 2004
308 - ares_free_errmem() is subject for removal, it is simply present for future
309   purposes, and since we removed the extra parameter in strerror() it won't
310   be used by c-ares!
311 - configure --enable-debug now enables picky compiler options if gcc is used
312 - fixed several compiler warnings --enable-debug showed and Joerg Mueller-Tolk
313   reported
314
315 Version 1.0.0 (February 3, 2004)
316
317 * February 3, 2004
318 - now we produce the libcares.a library instead of the previous libares.a
319   since we are no longer compatible
320
321 * February 2, 2004
322
323 - ares_strerror() has one argument less. This is the first official
324   modification of the existing provided ares API.
325
326 * January 29, 2004
327
328 - Dirk Manske fixed how the socket is set non-blocking.
329
330 * January 4, 2004
331
332 - Dominick Meglio made the private gettimeofday() become ares_gettimeofday()
333   instead in order to not pollute the name space and risk colliding with
334   other libraries' versions of this function.
335
336 * October 24, 2003. Daniel Stenberg
337
338   Added ares_version().
339
340 Version 1.0-pre1 (8 October 2003)
341
342 - James Bursa made it run on RISC OS
343
344 - Dominick Meglio made it run fine on NT4
345
346 - Duncan Wilcox made it work fine on Mac OS X
347
348 - Daniel Stenberg adjusted the windows port
349
350 - liren at vivisimo.com made the initial windows port
351
352 * Imported the sources from ares 1.1.1