1 |
786 |
skrzyp |
2010-09-29 Kelvin Lawson
|
2 |
|
|
|
3 |
|
|
* src/dns.c: Remove spurious mutex unlock in cyg_res_getaddrinfo()
|
4 |
|
|
when name lookup string is too long.
|
5 |
|
|
|
6 |
|
|
2008-08-12 Jonathan Larmour
|
7 |
|
|
|
8 |
|
|
* src/dns.c: id global should be unsigned, in line with DNS header.
|
9 |
|
|
* include/dns_impl.inl (build_query): Guarantee id in header is only
|
10 |
|
|
16-bits.
|
11 |
|
|
Thanks to Frank Huang for the report.
|
12 |
|
|
|
13 |
|
|
2006-05-19 Andrew Lunn
|
14 |
|
|
|
15 |
|
|
* tests/dns1.c (dns_test_thread): Use CYG_NELEM from infra.
|
16 |
|
|
|
17 |
|
|
2005-07-29 Andrew Lunn
|
18 |
|
|
|
19 |
|
|
* src/dns.c Various casts and type fixes to stop gcc 4 warnings.
|
20 |
|
|
|
21 |
|
|
2004-07-13 Andrew Lunn
|
22 |
|
|
|
23 |
|
|
* src/dns.c (cyg_dns_getaddrinfo): Typo spotted by Andy Jackson.
|
24 |
|
|
* src/dns.c (cyg_dns_getnameinfo): And another typo
|
25 |
|
|
|
26 |
|
|
2003-09-04 Andrew Lunn
|
27 |
|
|
|
28 |
|
|
* cdl/dns.cdl: CDL control of what DNS server to use for the tests
|
29 |
|
|
* tests/dns1.c: Fine tuned the information for my server and added
|
30 |
|
|
Iztok Zupet's Server to the test.
|
31 |
|
|
|
32 |
|
|
2003-05-22 Andrew Lunn
|
33 |
|
|
|
34 |
|
|
* src/dns.c: (cyg_dns_res_start) New: Allow IPv6 to be used to
|
35 |
|
|
transport queries to the DNS server. This requires a new API
|
36 |
|
|
function to start the client which if protocol family
|
37 |
|
|
independent.
|
38 |
|
|
* tests/dns1.c: Added a test which uses IPv6 as the transport to
|
39 |
|
|
the DNS server.
|
40 |
|
|
* doc/dns.sgml: Documentation of new API function for IPv6.
|
41 |
|
|
* cdl/dns.cdl: Comment that the default DNS server can be an IPv6
|
42 |
|
|
address.
|
43 |
|
|
|
44 |
|
|
2003-05-14 Mark Salter
|
45 |
|
|
|
46 |
|
|
* include/dns_impl.inl: Use strrchr instead of rindex.
|
47 |
|
|
|
48 |
|
|
2003-04-25 Andrew Lunn
|
49 |
|
|
|
50 |
|
|
* doc/dns.sgml: Updated to reflect changes for IPv6.
|
51 |
|
|
|
52 |
|
|
2003-04-24 Andrew Lunn
|
53 |
|
|
|
54 |
|
|
* include/dns_impl.inl (setdomainname): Append a . to the end of
|
55 |
|
|
the domainname if it does not have one.
|
56 |
|
|
* cdl/dns.cdl: CYGOPT_NS_DNS_FIRST_FAMILTY to control order of
|
57 |
|
|
results.
|
58 |
|
|
* src/dns.c: Order the results from cyg_dns_getaddrinfo.
|
59 |
|
|
* test/dns1.c: Re-written to perform better testing and for
|
60 |
|
|
getaddrinfo and getnameinfo.
|
61 |
|
|
* test/dns2.c: Removed. It does not add anything useful.
|
62 |
|
|
|
63 |
|
|
2003-04-21 Andrew Lunn
|
64 |
|
|
|
65 |
|
|
* src/dns.c (cyg_dns_getnameinfo): New. Interface between
|
66 |
|
|
getnameinfo and the DNS client.
|
67 |
|
|
|
68 |
|
|
2003-04-19 Andrew Lunn
|
69 |
|
|
|
70 |
|
|
* src/dns.c (cyg_dns_getaddrinfo): New. Interface between
|
71 |
|
|
getaddrinfo and the DNS client. This supports both IPv4 and IPv6
|
72 |
|
|
* test/dns1.c: Added tests for getnameinfo using both IPv4 and
|
73 |
|
|
IPv6 addresses.
|
74 |
|
|
|
75 |
|
|
2003-03-03 Jonathan Larmour
|
76 |
|
|
|
77 |
|
|
* tests/dns1.c: Use BOOTP info where possible in preference to
|
78 |
|
|
(likely incorrect!) hardcoded info. Use non-Red Hat test
|
79 |
|
|
addresses.
|
80 |
|
|
|
81 |
|
|
* tests/dns2.c: Use non-Red Hat test addresses. And don't check
|
82 |
|
|
BOOTP-derived domainname as we don't know what it should be!
|
83 |
|
|
|
84 |
|
|
2003-02-24 Jonathan Larmour
|
85 |
|
|
|
86 |
|
|
* cdl/dns.cdl: Add doc link.
|
87 |
|
|
|
88 |
|
|
2003-01-22 Jonathan Larmour
|
89 |
|
|
|
90 |
|
|
* doc/dns.sgml: Use correct (and working!) docbook.
|
91 |
|
|
|
92 |
|
|
2003-01-18 Jonathan Larmour
|
93 |
|
|
|
94 |
|
|
* include/dns_impl.inl (setdomainname): define with const name
|
95 |
|
|
argument.
|
96 |
|
|
* include/dns.h: Ditto.
|
97 |
|
|
* doc/dns.sgml: Document const in setdomainname proto here.
|
98 |
|
|
|
99 |
|
|
2003-01-10 Andrew Lunn
|
100 |
|
|
|
101 |
|
|
* cdl/dns.cdl: Added the ability to hard code a domain name.
|
102 |
|
|
Inspired by Motoya Kurotsu.
|
103 |
|
|
* doc/dns.sgml: Documentation for this.
|
104 |
|
|
|
105 |
|
|
2003-01-10 Motoya Kurotsu
|
106 |
|
|
|
107 |
|
|
* tests/dns2.c: Verify domain name from the DHCP server with
|
108 |
|
|
_LOOKUP_DOMAINNAME, not _DNS_IP which is the address of the DNS
|
109 |
|
|
server.
|
110 |
|
|
|
111 |
|
|
2003-01-09 Andrew Lunn
|
112 |
|
|
|
113 |
|
|
* cdl/dns.cdl: Added the ability to hard code a DNS server
|
114 |
|
|
address into the image which is used as the default.
|
115 |
|
|
* doc/dns.sgml: Documentation for this.
|
116 |
|
|
|
117 |
|
|
2002-10-18 Jonathan Larmour
|
118 |
|
|
|
119 |
|
|
* cdl/dns.cdl: Move CYGBLD_ISO_DNS_HEADER requires in with
|
120 |
|
|
CYGINT_ISO_DNS which is where it should always be beside.
|
121 |
|
|
|
122 |
|
|
2002-10-11 Andrew Lunn
|
123 |
|
|
|
124 |
|
|
* cdl/dns.cdl: If CYGPKG_NS_DNS_BUILD is disable we don't
|
125 |
|
|
implement the CYGINT_ISO_DNS interface.
|
126 |
|
|
|
127 |
|
|
2002-08-29 Roland Caßebohm
|
128 |
|
|
|
129 |
|
|
* include/dns_priv.h: Make dns_header structure endian dependent.
|
130 |
|
|
|
131 |
|
|
* include/dns_impl.inl: Don't use htons() for bitfields <= 8 bit.
|
132 |
|
|
Change the way setting the type and class fields in build_query()
|
133 |
|
|
to work with big-endian.
|
134 |
|
|
|
135 |
|
|
2002-05-30 Jesper Skov
|
136 |
|
|
|
137 |
|
|
* src/dns.c: fixed index->ptdindex oversight.
|
138 |
|
|
|
139 |
|
|
2002-05-24 Jonathan Larmour
|
140 |
|
|
|
141 |
|
|
* src/dns.c (free_hent): Actually free hent itself!
|
142 |
|
|
|
143 |
|
|
2002-05-23 Jonathan Larmour
|
144 |
|
|
|
145 |
|
|
* cdl/dns.cdl (CYGPKG_NS_DNS_BUILD): Require thread destructors in
|
146 |
|
|
kernel.
|
147 |
|
|
* include/dns_impl.inl: Instead of using cyg_thread_get_data
|
148 |
|
|
and _set_data directly, instead use store_hent and free_stored_hent
|
149 |
|
|
defined by includer.
|
150 |
|
|
* src/dns.c: Define store_hent() and free_stored_hent() and make
|
151 |
|
|
them use thread destructors thus fixing a memory leak.
|
152 |
|
|
|
153 |
|
|
2002-05-14 Jesper Skov
|
154 |
|
|
|
155 |
|
|
* tests/dns2.c: Fix warning.
|
156 |
|
|
|
157 |
|
|
2002-02-22 Hugo Tyson
|
158 |
|
|
|
159 |
|
|
* doc/dns.sgml: New file. Documentation separated from monolithic
|
160 |
|
|
network component.
|
161 |
|
|
|
162 |
|
|
2002-02-01 Gary Thomas
|
163 |
|
|
|
164 |
|
|
* src/dns.c (cyg_dns_res_init): Need valid value for sin_len.
|
165 |
|
|
|
166 |
|
|
2002-01-31 Jonathan Larmour
|
167 |
|
|
|
168 |
|
|
* cdl/dns.cdl: Don't build tests if no DNS!
|
169 |
|
|
|
170 |
|
|
2001-12-06 Andrew Lunn
|
171 |
|
|
|
172 |
|
|
* src/dns.c (cyg_dns_res_init): Allow this to be called more than
|
173 |
|
|
once. The DHCP client will do this when interfaces YoYo.
|
174 |
|
|
Restarting requires closing the socket (if any) and freeing the
|
175 |
|
|
per-thread-data slot number.
|
176 |
|
|
|
177 |
|
|
* include/dns_impl.inl (setdomainname): Allow the name to be
|
178 |
|
|
cleared. Check for NULL pointers variously before checking for
|
179 |
|
|
valid pointer asserts.
|
180 |
|
|
|
181 |
|
|
* tests/dns2.c: New file: Test the DNS configuration via DHCP.
|
182 |
|
|
|
183 |
|
|
* tests/dns1.c: Initially clear the domainname.
|
184 |
|
|
|
185 |
|
|
2001-11-29 Jonathan Larmour
|
186 |
|
|
|
187 |
|
|
* src/dns.c: Rename index -> ptdindex to avoid conflict with BSD
|
188 |
|
|
index() function.
|
189 |
|
|
* include/dns_impl.inl: Ditto.
|
190 |
|
|
|
191 |
|
|
2001-09-28 Jesper Skov
|
192 |
|
|
|
193 |
|
|
* tests/dns1.c (_DNS_IP): Changed to IP used in farm.
|
194 |
|
|
|
195 |
|
|
2001-09-27 Jesper Skov
|
196 |
|
|
|
197 |
|
|
* include/dns_priv.h: Added DNS_REPLY definitions.
|
198 |
|
|
|
199 |
|
|
* include/dns_impl.inl: Handle NXDomain returns.
|
200 |
|
|
|
201 |
|
|
* include/dns_impl.inl: Added tracing.
|
202 |
|
|
* src/dns.c: Same.
|
203 |
|
|
|
204 |
|
|
2001-09-26 Jesper Skov
|
205 |
|
|
|
206 |
|
|
* tests/dns1.c (dns_test): Use hstrerror instead of strerror.
|
207 |
|
|
|
208 |
|
|
* include/dns.h: Added h_errno support.
|
209 |
|
|
* include/dns_impl.inl: Use h_errno instead of errno. Added
|
210 |
|
|
hstrerror(). Make hostname lookups before hostname.domainmain
|
211 |
|
|
lookups.
|
212 |
|
|
|
213 |
|
|
2001-09-25 Jesper Skov
|
214 |
|
|
|
215 |
|
|
* include/dns.h: Moved some more defs to..
|
216 |
|
|
* include/dns_priv.h: ...here.
|
217 |
|
|
|
218 |
|
|
* src/dns-priv.h: [deleted]
|
219 |
|
|
* include/dns_priv.h: [added]
|
220 |
|
|
|
221 |
|
|
* tests/dns1.c: Include netdb.h instead of dns.h.
|
222 |
|
|
|
223 |
|
|
* src/dns.c: Moved all DNS protocol functions into
|
224 |
|
|
dns_impl.inl. Allow for RedBoot to share the implementation with a
|
225 |
|
|
smaller overhead.
|
226 |
|
|
* include/dns_impl.inl: Added.
|
227 |
|
|
|
228 |
|
|
* cdl/dns.cdl: Moved compile statement and requirements into
|
229 |
|
|
CYGPKG_NS_DNS_BUILD option which can be forced off by RedBoot.
|
230 |
|
|
Moved headers to cyg/ns/dns.
|
231 |
|
|
|
232 |
|
|
* src/dns.c (alloc_hent, free_hent, alloc_string, free_string):
|
233 |
|
|
Added these wrapper functions for malloc/free calls - allow easier
|
234 |
|
|
maintaining of cloned function in RedBoot which uses static
|
235 |
|
|
variables for storage. Incidently removed a little code
|
236 |
|
|
duplication.
|
237 |
|
|
|
238 |
|
|
* include/dns.h: Only include exported information.
|
239 |
|
|
* src/dns-priv.h: Everything else moved to this file.
|
240 |
|
|
|
241 |
|
|
* cdl/dns.cdl: Added feature requirements and CYGINT_ISO_DNS
|
242 |
|
|
magic.
|
243 |
|
|
|
244 |
|
|
* include/dns.h: Renamed res_init to cyg_dns_res_init.
|
245 |
|
|
* src/dns.c: Same.
|
246 |
|
|
* tests/dns1.c: Same.
|
247 |
|
|
|
248 |
|
|
* src/dns.c: Use drv_api mutex, removed some include statements.
|
249 |
|
|
* include/dns.h: Provide hostent definition and function
|
250 |
|
|
declarations.
|
251 |
|
|
|
252 |
|
|
* tests/dns1.c: Use cambridge.redhat.com addresses. Changed to
|
253 |
|
|
output PASS/FAIL.
|
254 |
|
|
|
255 |
|
|
* src/dns.c (parse_answer): On PTR lookups, alloc space for
|
256 |
|
|
in_addr, so caller can copy data there. Fix gethostbyaddr() to
|
257 |
|
|
do so.
|
258 |
|
|
Note that error values do not match gethostbyaddr(3).
|
259 |
|
|
|
260 |
|
|
2001-09-20 Jesper Skov
|
261 |
|
|
|
262 |
|
|
* src/dns.c: More cosmetic changes, a few htons -> ntohs changes,
|
263 |
|
|
reducing size of critical section a few places, rely on
|
264 |
|
|
build_query setting errno, and set errno when getdomainname can't
|
265 |
|
|
copy domain name out due to size limitation.
|
266 |
|
|
|
267 |
|
|
2001-09-19 Jesper Skov
|
268 |
|
|
|
269 |
|
|
* tests/dns1.c (dns_test): Fix inet_aton check.
|
270 |
|
|
* src/dns.c: A few comment and cosmetic changes.
|
271 |
|
|
|
272 |
|
|
2001-09-18 Jesper Skov
|
273 |
|
|
|
274 |
|
|
* src/dns.c: Added DNS code contributed by Andrew Lunn
|
275 |
|
|
|
276 |
|
|
* include/dns.h: Same.
|
277 |
|
|
* tests/dns1.c: Same.
|
278 |
|
|
|
279 |
|
|
//===========================================================================
|
280 |
|
|
// ####GPLCOPYRIGHTBEGIN####
|
281 |
|
|
// -------------------------------------------
|
282 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
283 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
284 |
|
|
//
|
285 |
|
|
// This program is free software; you can redistribute it and/or modify
|
286 |
|
|
// it under the terms of the GNU General Public License as published by
|
287 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
288 |
|
|
// later version.
|
289 |
|
|
//
|
290 |
|
|
// This program is distributed in the hope that it will be useful, but
|
291 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
292 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
293 |
|
|
// General Public License for more details.
|
294 |
|
|
//
|
295 |
|
|
// You should have received a copy of the GNU General Public License
|
296 |
|
|
// along with this program; if not, write to the
|
297 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
298 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
299 |
|
|
// -------------------------------------------
|
300 |
|
|
// ####GPLCOPYRIGHTEND####
|
301 |
|
|
//===========================================================================
|