1 |
27 |
unneback |
2003-03-03 Jonathan Larmour
|
2 |
|
|
|
3 |
|
|
* tests/dns1.c: Use BOOTP info where possible in preference to
|
4 |
|
|
(likely incorrect!) hardcoded info. Use non-Red Hat test
|
5 |
|
|
addresses.
|
6 |
|
|
|
7 |
|
|
* tests/dns2.c: Use non-Red Hat test addresses. And don't check
|
8 |
|
|
BOOTP-derived domainname as we don't know what it should be!
|
9 |
|
|
|
10 |
|
|
2003-02-24 Jonathan Larmour
|
11 |
|
|
|
12 |
|
|
* cdl/dns.cdl: Add doc link.
|
13 |
|
|
|
14 |
|
|
2003-01-22 Jonathan Larmour
|
15 |
|
|
|
16 |
|
|
* doc/dns.sgml: Use correct (and working!) docbook.
|
17 |
|
|
|
18 |
|
|
2003-01-18 Jonathan Larmour
|
19 |
|
|
|
20 |
|
|
* include/dns_impl.inl (setdomainname): define with const name
|
21 |
|
|
argument.
|
22 |
|
|
* include/dns.h: Ditto.
|
23 |
|
|
* doc/dns.sgml: Document const in setdomainname proto here.
|
24 |
|
|
|
25 |
|
|
2003-01-10 Andrew Lunn
|
26 |
|
|
|
27 |
|
|
* cdl/dns.cdl: Added the ability to hard code a domain name.
|
28 |
|
|
Inspired by Motoya Kurotsu.
|
29 |
|
|
* doc/dns.sgml: Documentation for this.
|
30 |
|
|
|
31 |
|
|
2003-01-10 Motoya Kurotsu
|
32 |
|
|
|
33 |
|
|
* tests/dns2.c: Verify domain name from the DHCP server with
|
34 |
|
|
_LOOKUP_DOMAINNAME, not _DNS_IP which is the address of the DNS
|
35 |
|
|
server.
|
36 |
|
|
|
37 |
|
|
2003-01-09 Andrew Lunn
|
38 |
|
|
|
39 |
|
|
* cdl/dns.cdl: Added the ability to hard code a DNS server
|
40 |
|
|
address into the image which is used as the default.
|
41 |
|
|
* doc/dns.sgml: Documentation for this.
|
42 |
|
|
|
43 |
|
|
2002-10-18 Jonathan Larmour
|
44 |
|
|
|
45 |
|
|
* cdl/dns.cdl: Move CYGBLD_ISO_DNS_HEADER requires in with
|
46 |
|
|
CYGINT_ISO_DNS which is where it should always be beside.
|
47 |
|
|
|
48 |
|
|
2002-10-11 Andrew Lunn
|
49 |
|
|
|
50 |
|
|
* cdl/dns.cdl: If CYGPKG_NS_DNS_BUILD is disable we don't
|
51 |
|
|
implement the CYGINT_ISO_DNS interface.
|
52 |
|
|
|
53 |
|
|
2002-08-29 Roland Caßebohm
|
54 |
|
|
|
55 |
|
|
* include/dns_priv.h: Make dns_header structure endian dependent.
|
56 |
|
|
|
57 |
|
|
* include/dns_impl.inl: Don't use htons() for bitfields <= 8 bit.
|
58 |
|
|
Change the way setting the type and class fields in build_query()
|
59 |
|
|
to work with big-endian.
|
60 |
|
|
|
61 |
|
|
2002-05-30 Jesper Skov
|
62 |
|
|
|
63 |
|
|
* src/dns.c: fixed index->ptdindex oversight.
|
64 |
|
|
|
65 |
|
|
2002-05-24 Jonathan Larmour
|
66 |
|
|
|
67 |
|
|
* src/dns.c (free_hent): Actually free hent itself!
|
68 |
|
|
|
69 |
|
|
2002-05-23 Jonathan Larmour
|
70 |
|
|
|
71 |
|
|
* cdl/dns.cdl (CYGPKG_NS_DNS_BUILD): Require thread destructors in
|
72 |
|
|
kernel.
|
73 |
|
|
* include/dns_impl.inl: Instead of using cyg_thread_get_data
|
74 |
|
|
and _set_data directly, instead use store_hent and free_stored_hent
|
75 |
|
|
defined by includer.
|
76 |
|
|
* src/dns.c: Define store_hent() and free_stored_hent() and make
|
77 |
|
|
them use thread destructors thus fixing a memory leak.
|
78 |
|
|
|
79 |
|
|
2002-05-14 Jesper Skov
|
80 |
|
|
|
81 |
|
|
* tests/dns2.c: Fix warning.
|
82 |
|
|
|
83 |
|
|
2002-02-22 Hugo Tyson
|
84 |
|
|
|
85 |
|
|
* doc/dns.sgml: New file. Documentation separated from monolithic
|
86 |
|
|
network component.
|
87 |
|
|
|
88 |
|
|
2002-02-01 Gary Thomas
|
89 |
|
|
|
90 |
|
|
* src/dns.c (cyg_dns_res_init): Need valid value for sin_len.
|
91 |
|
|
|
92 |
|
|
2002-01-31 Jonathan Larmour
|
93 |
|
|
|
94 |
|
|
* cdl/dns.cdl: Don't build tests if no DNS!
|
95 |
|
|
|
96 |
|
|
2001-12-06 Andrew Lunn
|
97 |
|
|
|
98 |
|
|
* src/dns.c (cyg_dns_res_init): Allow this to be called more than
|
99 |
|
|
once. The DHCP client will do this when interfaces YoYo.
|
100 |
|
|
Restarting requires closing the socket (if any) and freeing the
|
101 |
|
|
per-thread-data slot number.
|
102 |
|
|
|
103 |
|
|
* include/dns_impl.inl (setdomainname): Allow the name to be
|
104 |
|
|
cleared. Check for NULL pointers variously before checking for
|
105 |
|
|
valid pointer asserts.
|
106 |
|
|
|
107 |
|
|
* tests/dns2.c: New file: Test the DNS configuration via DHCP.
|
108 |
|
|
|
109 |
|
|
* tests/dns1.c: Initially clear the domainname.
|
110 |
|
|
|
111 |
|
|
2001-11-29 Jonathan Larmour
|
112 |
|
|
|
113 |
|
|
* src/dns.c: Rename index -> ptdindex to avoid conflict with BSD
|
114 |
|
|
index() function.
|
115 |
|
|
* include/dns_impl.inl: Ditto.
|
116 |
|
|
|
117 |
|
|
2001-09-28 Jesper Skov
|
118 |
|
|
|
119 |
|
|
* tests/dns1.c (_DNS_IP): Changed to IP used in farm.
|
120 |
|
|
|
121 |
|
|
2001-09-27 Jesper Skov
|
122 |
|
|
|
123 |
|
|
* include/dns_priv.h: Added DNS_REPLY definitions.
|
124 |
|
|
|
125 |
|
|
* include/dns_impl.inl: Handle NXDomain returns.
|
126 |
|
|
|
127 |
|
|
* include/dns_impl.inl: Added tracing.
|
128 |
|
|
* src/dns.c: Same.
|
129 |
|
|
|
130 |
|
|
2001-09-26 Jesper Skov
|
131 |
|
|
|
132 |
|
|
* tests/dns1.c (dns_test): Use hstrerror instead of strerror.
|
133 |
|
|
|
134 |
|
|
* include/dns.h: Added h_errno support.
|
135 |
|
|
* include/dns_impl.inl: Use h_errno instead of errno. Added
|
136 |
|
|
hstrerror(). Make hostname lookups before hostname.domainmain
|
137 |
|
|
lookups.
|
138 |
|
|
|
139 |
|
|
2001-09-25 Jesper Skov
|
140 |
|
|
|
141 |
|
|
* include/dns.h: Moved some more defs to..
|
142 |
|
|
* include/dns_priv.h: ...here.
|
143 |
|
|
|
144 |
|
|
* src/dns-priv.h: [deleted]
|
145 |
|
|
* include/dns_priv.h: [added]
|
146 |
|
|
|
147 |
|
|
* tests/dns1.c: Include netdb.h instead of dns.h.
|
148 |
|
|
|
149 |
|
|
* src/dns.c: Moved all DNS protocol functions into
|
150 |
|
|
dns_impl.inl. Allow for RedBoot to share the implementation with a
|
151 |
|
|
smaller overhead.
|
152 |
|
|
* include/dns_impl.inl: Added.
|
153 |
|
|
|
154 |
|
|
* cdl/dns.cdl: Moved compile statement and requirements into
|
155 |
|
|
CYGPKG_NS_DNS_BUILD option which can be forced off by RedBoot.
|
156 |
|
|
Moved headers to cyg/ns/dns.
|
157 |
|
|
|
158 |
|
|
* src/dns.c (alloc_hent, free_hent, alloc_string, free_string):
|
159 |
|
|
Added these wrapper functions for malloc/free calls - allow easier
|
160 |
|
|
maintaining of cloned function in RedBoot which uses static
|
161 |
|
|
variables for storage. Incidently removed a little code
|
162 |
|
|
duplication.
|
163 |
|
|
|
164 |
|
|
* include/dns.h: Only include exported information.
|
165 |
|
|
* src/dns-priv.h: Everything else moved to this file.
|
166 |
|
|
|
167 |
|
|
* cdl/dns.cdl: Added feature requirements and CYGINT_ISO_DNS
|
168 |
|
|
magic.
|
169 |
|
|
|
170 |
|
|
* include/dns.h: Renamed res_init to cyg_dns_res_init.
|
171 |
|
|
* src/dns.c: Same.
|
172 |
|
|
* tests/dns1.c: Same.
|
173 |
|
|
|
174 |
|
|
* src/dns.c: Use drv_api mutex, removed some include statements.
|
175 |
|
|
* include/dns.h: Provide hostent definition and function
|
176 |
|
|
declarations.
|
177 |
|
|
|
178 |
|
|
* tests/dns1.c: Use cambridge.redhat.com addresses. Changed to
|
179 |
|
|
output PASS/FAIL.
|
180 |
|
|
|
181 |
|
|
* src/dns.c (parse_answer): On PTR lookups, alloc space for
|
182 |
|
|
in_addr, so caller can copy data there. Fix gethostbyaddr() to
|
183 |
|
|
do so.
|
184 |
|
|
Note that error values do not match gethostbyaddr(3).
|
185 |
|
|
|
186 |
|
|
2001-09-20 Jesper Skov
|
187 |
|
|
|
188 |
|
|
* src/dns.c: More cosmetic changes, a few htons -> ntohs changes,
|
189 |
|
|
reducing size of critical section a few places, rely on
|
190 |
|
|
build_query setting errno, and set errno when getdomainname can't
|
191 |
|
|
copy domain name out due to size limitation.
|
192 |
|
|
|
193 |
|
|
2001-09-19 Jesper Skov
|
194 |
|
|
|
195 |
|
|
* tests/dns1.c (dns_test): Fix inet_aton check.
|
196 |
|
|
* src/dns.c: A few comment and cosmetic changes.
|
197 |
|
|
|
198 |
|
|
2001-09-18 Jesper Skov
|
199 |
|
|
|
200 |
|
|
* src/dns.c: Added DNS code contributed by Andrew Lunn
|
201 |
|
|
|
202 |
|
|
* include/dns.h: Same.
|
203 |
|
|
* tests/dns1.c: Same.
|
204 |
|
|
|
205 |
|
|
//===========================================================================
|
206 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
207 |
|
|
// -------------------------------------------
|
208 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
209 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
210 |
|
|
//
|
211 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
212 |
|
|
// the terms of the GNU General Public License as published by the Free
|
213 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
214 |
|
|
//
|
215 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
216 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
217 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
218 |
|
|
// for more details.
|
219 |
|
|
//
|
220 |
|
|
// You should have received a copy of the GNU General Public License along
|
221 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
222 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
223 |
|
|
//
|
224 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
225 |
|
|
// or inline functions from this file, or you compile this file and link it
|
226 |
|
|
// with other works to produce a work based on this file, this file does not
|
227 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
228 |
|
|
// License. However the source code for this file must still be made available
|
229 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
230 |
|
|
//
|
231 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
232 |
|
|
// this file might be covered by the GNU General Public License.
|
233 |
|
|
//
|
234 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
235 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
236 |
|
|
// -------------------------------------------
|
237 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
238 |
|
|
//===========================================================================
|