1 2006-05-19 Andrew Lunn <andrew.lunn@ascom.ch>
3 * tests/dns1.c (dns_test_thread): Use CYG_NELEM from infra.
5 2005-07-29 Andrew Lunn <andrew.lunn@ascom.ch>
7 * src/dns.c Various casts and type fixes to stop gcc 4 warnings.
9 2004-07-13 Andrew Lunn <andrew.lunn@ascom.ch>
11 * src/dns.c (cyg_dns_getaddrinfo): Typo spotted by Andy Jackson.
12 * src/dns.c (cyg_dns_getnameinfo): And another typo
14 2003-09-04 Andrew Lunn <andrew.lunn@ascom.ch>
16 * cdl/dns.cdl: CDL control of what DNS server to use for the tests
17 * tests/dns1.c: Fine tuned the information for my server and added
18 Iztok Zupet's Server to the test.
20 2003-05-22 Andrew Lunn <andrew.lunn@ascom.cd>
22 * src/dns.c: (cyg_dns_res_start) New: Allow IPv6 to be used to
23 transport queries to the DNS server. This requires a new API
24 function to start the client which if protocol family
26 * tests/dns1.c: Added a test which uses IPv6 as the transport to
28 * doc/dns.sgml: Documentation of new API function for IPv6.
29 * cdl/dns.cdl: Comment that the default DNS server can be an IPv6
32 2003-05-14 Mark Salter <msalter@redhat.com>
34 * include/dns_impl.inl: Use strrchr instead of rindex.
36 2003-04-25 Andrew Lunn <andrew.lunn@ascom.ch>
38 * doc/dns.sgml: Updated to reflect changes for IPv6.
40 2003-04-24 Andrew Lunn <andrew.lunn@ascom.ch>
42 * include/dns_impl.inl (setdomainname): Append a . to the end of
43 the domainname if it does not have one.
44 * cdl/dns.cdl: CYGOPT_NS_DNS_FIRST_FAMILTY to control order of
46 * src/dns.c: Order the results from cyg_dns_getaddrinfo.
47 * test/dns1.c: Re-written to perform better testing and for
48 getaddrinfo and getnameinfo.
49 * test/dns2.c: Removed. It does not add anything useful.
51 2003-04-21 Andrew Lunn <andrew.lunn@ascom.ch>
53 * src/dns.c (cyg_dns_getnameinfo): New. Interface between
54 getnameinfo and the DNS client.
56 2003-04-19 Andrew Lunn <andrew.lunn@ascom.ch>
58 * src/dns.c (cyg_dns_getaddrinfo): New. Interface between
59 getaddrinfo and the DNS client. This supports both IPv4 and IPv6
60 * test/dns1.c: Added tests for getnameinfo using both IPv4 and
63 2003-03-03 Jonathan Larmour <jifl@eCosCentric.com>
65 * tests/dns1.c: Use BOOTP info where possible in preference to
66 (likely incorrect!) hardcoded info. Use non-Red Hat test
69 * tests/dns2.c: Use non-Red Hat test addresses. And don't check
70 BOOTP-derived domainname as we don't know what it should be!
72 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
74 * cdl/dns.cdl: Add doc link.
76 2003-01-22 Jonathan Larmour <jifl@eCosCentric.com>
78 * doc/dns.sgml: Use correct (and working!) docbook.
80 2003-01-18 Jonathan Larmour <jifl@eCosCentric.com>
82 * include/dns_impl.inl (setdomainname): define with const name
84 * include/dns.h: Ditto.
85 * doc/dns.sgml: Document const in setdomainname proto here.
87 2003-01-10 Andrew Lunn <andrew.lunn@ascom.ch>
89 * cdl/dns.cdl: Added the ability to hard code a domain name.
90 Inspired by Motoya Kurotsu.
91 * doc/dns.sgml: Documentation for this.
93 2003-01-10 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
95 * tests/dns2.c: Verify domain name from the DHCP server with
96 _LOOKUP_DOMAINNAME, not _DNS_IP which is the address of the DNS
99 2003-01-09 Andrew Lunn <andrew.lunn@ascom.ch>
101 * cdl/dns.cdl: Added the ability to hard code a DNS server
102 address into the image which is used as the default.
103 * doc/dns.sgml: Documentation for this.
105 2002-10-18 Jonathan Larmour <jifl@eCosCentric.com>
107 * cdl/dns.cdl: Move CYGBLD_ISO_DNS_HEADER requires in with
108 CYGINT_ISO_DNS which is where it should always be beside.
110 2002-10-11 Andrew Lunn <andrew.lunn@ascom.ch>
112 * cdl/dns.cdl: If CYGPKG_NS_DNS_BUILD is disable we don't
113 implement the CYGINT_ISO_DNS interface.
115 2002-08-29 Roland Caßebohm <roland.cassebohm@visionsystems.de>
117 * include/dns_priv.h: Make dns_header structure endian dependent.
119 * include/dns_impl.inl: Don't use htons() for bitfields <= 8 bit.
120 Change the way setting the type and class fields in build_query()
121 to work with big-endian.
123 2002-05-30 Jesper Skov <jskov@redhat.com>
125 * src/dns.c: fixed index->ptdindex oversight.
127 2002-05-24 Jonathan Larmour <jlarmour@redhat.com>
129 * src/dns.c (free_hent): Actually free hent itself!
131 2002-05-23 Jonathan Larmour <jlarmour@redhat.com>
133 * cdl/dns.cdl (CYGPKG_NS_DNS_BUILD): Require thread destructors in
135 * include/dns_impl.inl: Instead of using cyg_thread_get_data
136 and _set_data directly, instead use store_hent and free_stored_hent
138 * src/dns.c: Define store_hent() and free_stored_hent() and make
139 them use thread destructors thus fixing a memory leak.
141 2002-05-14 Jesper Skov <jskov@redhat.com>
143 * tests/dns2.c: Fix warning.
145 2002-02-22 Hugo Tyson <hmt@redhat.com>
147 * doc/dns.sgml: New file. Documentation separated from monolithic
150 2002-02-01 Gary Thomas <gthomas@redhat.com>
152 * src/dns.c (cyg_dns_res_init): Need valid value for sin_len.
154 2002-01-31 Jonathan Larmour <jlarmour@redhat.com>
156 * cdl/dns.cdl: Don't build tests if no DNS!
158 2001-12-06 Andrew Lunn <andrew.lunn@ascom.ch>
160 * src/dns.c (cyg_dns_res_init): Allow this to be called more than
161 once. The DHCP client will do this when interfaces YoYo.
162 Restarting requires closing the socket (if any) and freeing the
163 per-thread-data slot number.
165 * include/dns_impl.inl (setdomainname): Allow the name to be
166 cleared. Check for NULL pointers variously before checking for
167 valid pointer asserts.
169 * tests/dns2.c: New file: Test the DNS configuration via DHCP.
171 * tests/dns1.c: Initially clear the domainname.
173 2001-11-29 Jonathan Larmour <jlarmour@redhat.com>
175 * src/dns.c: Rename index -> ptdindex to avoid conflict with BSD
177 * include/dns_impl.inl: Ditto.
179 2001-09-28 Jesper Skov <jskov@redhat.com>
181 * tests/dns1.c (_DNS_IP): Changed to IP used in farm.
183 2001-09-27 Jesper Skov <jskov@redhat.com>
185 * include/dns_priv.h: Added DNS_REPLY definitions.
187 * include/dns_impl.inl: Handle NXDomain returns.
189 * include/dns_impl.inl: Added tracing.
192 2001-09-26 Jesper Skov <jskov@redhat.com>
194 * tests/dns1.c (dns_test): Use hstrerror instead of strerror.
196 * include/dns.h: Added h_errno support.
197 * include/dns_impl.inl: Use h_errno instead of errno. Added
198 hstrerror(). Make hostname lookups before hostname.domainmain
201 2001-09-25 Jesper Skov <jskov@redhat.com>
203 * include/dns.h: Moved some more defs to..
204 * include/dns_priv.h: ...here.
206 * src/dns-priv.h: [deleted]
207 * include/dns_priv.h: [added]
209 * tests/dns1.c: Include netdb.h instead of dns.h.
211 * src/dns.c: Moved all DNS protocol functions into
212 dns_impl.inl. Allow for RedBoot to share the implementation with a
214 * include/dns_impl.inl: Added.
216 * cdl/dns.cdl: Moved compile statement and requirements into
217 CYGPKG_NS_DNS_BUILD option which can be forced off by RedBoot.
218 Moved headers to cyg/ns/dns.
220 * src/dns.c (alloc_hent, free_hent, alloc_string, free_string):
221 Added these wrapper functions for malloc/free calls - allow easier
222 maintaining of cloned function in RedBoot which uses static
223 variables for storage. Incidently removed a little code
226 * include/dns.h: Only include exported information.
227 * src/dns-priv.h: Everything else moved to this file.
229 * cdl/dns.cdl: Added feature requirements and CYGINT_ISO_DNS
232 * include/dns.h: Renamed res_init to cyg_dns_res_init.
234 * tests/dns1.c: Same.
236 * src/dns.c: Use drv_api mutex, removed some include statements.
237 * include/dns.h: Provide hostent definition and function
240 * tests/dns1.c: Use cambridge.redhat.com addresses. Changed to
243 * src/dns.c (parse_answer): On PTR lookups, alloc space for
244 in_addr, so caller can copy data there. Fix gethostbyaddr() to
246 Note that error values do not match gethostbyaddr(3).
248 2001-09-20 Jesper Skov <jskov@redhat.com>
250 * src/dns.c: More cosmetic changes, a few htons -> ntohs changes,
251 reducing size of critical section a few places, rely on
252 build_query setting errno, and set errno when getdomainname can't
253 copy domain name out due to size limitation.
255 2001-09-19 Jesper Skov <jskov@redhat.com>
257 * tests/dns1.c (dns_test): Fix inet_aton check.
258 * src/dns.c: A few comment and cosmetic changes.
260 2001-09-18 Jesper Skov <jskov@redhat.com>
262 * src/dns.c: Added DNS code contributed by Andrew Lunn
263 <andrew.lunn@ascom.ch>
264 * include/dns.h: Same.
265 * tests/dns1.c: Same.
267 //===========================================================================
268 //####ECOSGPLCOPYRIGHTBEGIN####
269 // -------------------------------------------
270 // This file is part of eCos, the Embedded Configurable Operating System.
271 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
273 // eCos is free software; you can redistribute it and/or modify it under
274 // the terms of the GNU General Public License as published by the Free
275 // Software Foundation; either version 2 or (at your option) any later version.
277 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
278 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
279 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
282 // You should have received a copy of the GNU General Public License along
283 // with eCos; if not, write to the Free Software Foundation, Inc.,
284 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
286 // As a special exception, if other files instantiate templates or use macros
287 // or inline functions from this file, or you compile this file and link it
288 // with other works to produce a work based on this file, this file does not
289 // by itself cause the resulting work to be covered by the GNU General Public
290 // License. However the source code for this file must still be made available
291 // in accordance with section (3) of the GNU General Public License.
293 // This exception does not invalidate any other reasons why a work based on
294 // this file might be covered by the GNU General Public License.
296 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
297 // at http://sources.redhat.com/ecos/ecos-license/
298 // -------------------------------------------
299 //####ECOSGPLCOPYRIGHTEND####
300 //===========================================================================