1 |
786 |
skrzyp |
2012-03-13 Grant Edwards
|
2 |
|
|
|
3 |
|
|
* src/bootp_support.c (init_net): Fix compiler warning by removing
|
4 |
|
|
'netmask' variable which is set but then never used.
|
5 |
|
|
[ Bugzilla 1001516 ]
|
6 |
|
|
|
7 |
|
|
2012-03-06 Grant Edwards
|
8 |
|
|
|
9 |
|
|
* current/src/inet_ntop.c (inet_ntop6): Fixed compiler warnings
|
10 |
|
|
about variables possibly used before they are initialized.
|
11 |
|
|
[ Bugzilla 1001509 ]
|
12 |
|
|
|
13 |
|
|
2011-03-09 Jay Foster
|
14 |
|
|
Sergei Gavrikov
|
15 |
|
|
|
16 |
|
|
* src/bootp_support.c (show_bootp): Fixed output for some fields.
|
17 |
|
|
* src/dhcp_prot.c (do_dhcp): Convert bp_secs field to network byte
|
18 |
|
|
order. Inspired by Kelvin Lawson. [ Bugzilla 1001170 ]
|
19 |
|
|
|
20 |
|
|
2009-09-17 Jay Foster
|
21 |
|
|
|
22 |
|
|
* src/dhcp_prot.c (do_dhcp): Fix packet parsing for DHCP servers
|
23 |
|
|
that do not terminate the options with an END tag.
|
24 |
|
|
|
25 |
|
|
2009-06-23 Rene Schipp von Branitz Nielsen
|
26 |
|
|
|
27 |
|
|
* src/ifaddrs.c (getifaddrs): If socket() call for IPv6 fails,
|
28 |
|
|
a stray pointer was freed.
|
29 |
|
|
|
30 |
|
|
2009-03-09 John Dallaway
|
31 |
|
|
|
32 |
|
|
* cdl/net.cdl: Reference test executable filenames for compatibility
|
33 |
|
|
with the eCos Configuration Tool.
|
34 |
|
|
|
35 |
|
|
2008-04-13 Andrew Lunn
|
36 |
|
|
|
37 |
|
|
* tests/server_test.c (server_test): Fix typo with atoi which
|
38 |
|
|
should really be ultoa(). Cleanup to use diag_sprintf() which is
|
39 |
|
|
always available. Bug reported by Grant Edwards.
|
40 |
|
|
|
41 |
|
|
2007-12-21 Oyvind Harboe
|
42 |
|
|
|
43 |
|
|
* src/tftp_client.c, include/arpa/tftp.h, cdl/net.cdl: tftp
|
44 |
|
|
blksize negotiation support. >512 byte block sizes improves tftp
|
45 |
|
|
GET performance. Switched to memcpy(), which matters for larger
|
46 |
|
|
blocks.
|
47 |
|
|
|
48 |
|
|
2007-01-15 Gary Thomas
|
49 |
|
|
|
50 |
|
|
* src/dhcp_support.c (dhcp_mgt_entry): Better handling when restarting
|
51 |
|
|
interfaces after expired lease(s). Keep trying in case the DHCP server
|
52 |
|
|
has gone down.
|
53 |
|
|
|
54 |
|
|
2007-01-09 Jonathan Larmour
|
55 |
|
|
|
56 |
|
|
* doc/manpages/net/getaddrinfo.3: Remove obsolete comment about
|
57 |
|
|
not being thread-safe.
|
58 |
|
|
|
59 |
|
|
2007-01-07 Andrew Lunn
|
60 |
|
|
|
61 |
|
|
* src/dhcp_support.c:
|
62 |
|
|
* cdl/net.cdl:
|
63 |
|
|
Added CDL to control the size of the stack used by
|
64 |
|
|
the DHCP management thread.
|
65 |
|
|
|
66 |
|
|
2006-12-18 Sergei Gavrikov
|
67 |
|
|
|
68 |
|
|
* tests/ga_server_test.c: Updated flags argument in call of
|
69 |
|
|
getnameinfo().
|
70 |
|
|
|
71 |
|
|
2006-05-25 Andrew Lunn
|
72 |
|
|
|
73 |
|
|
* cdl/net.cdl: Fix calculation of TFTPD stack
|
74 |
|
|
size. CYGNUM_HAL_STACK_SIZE_TYPICAL is not a CDL variable, it is a
|
75 |
|
|
#define, so we need to ensure that the compiler evaluates the
|
76 |
|
|
expression, not the CDL library.
|
77 |
|
|
|
78 |
|
|
2006-03-26 Andrew Lunn
|
79 |
|
|
|
80 |
|
|
* tests/nc_test_framework.h:
|
81 |
|
|
* tests/nc_test_master.c: Fix the compiler warnings when
|
82 |
|
|
building for Linux.
|
83 |
|
|
|
84 |
|
|
2006-02-27 Jay Foster
|
85 |
|
|
|
86 |
|
|
* src/dhcp_prot.c: Updated set_fixed_tag(), set_variable_tag(),
|
87 |
|
|
and unset_tag() to handle TAG_PAD bytes properly. Also updated
|
88 |
|
|
set_fixed_tag() and set_variable_tag() to permit setting options that
|
89 |
|
|
already exist, but are a different size, rather than asserting.
|
90 |
|
|
This corrects problems interacting with mis-behaving DHCP servers
|
91 |
|
|
that reply with modified versions of a DHCP option sent by the eCos
|
92 |
|
|
client, such as TAG_HOST_NAME.
|
93 |
|
|
|
94 |
|
|
2005-10-24 Andrew Lunn
|
95 |
|
|
|
96 |
|
|
* include/network.h: Include to stop warnings.
|
97 |
|
|
|
98 |
|
|
2005-10-23 Andrew Lunn
|
99 |
|
|
|
100 |
|
|
* test/nc*_test_master.c: gettimeofday is now in POSIX
|
101 |
|
|
|
102 |
|
|
2005-10-13 Andrew Lunn
|
103 |
|
|
|
104 |
|
|
* docs/manpages/sys/socketpair.2: Removed this man page since
|
105 |
|
|
socketpair(2) is not supported.
|
106 |
|
|
|
107 |
|
|
2005-09-16 Andrew Lunn
|
108 |
|
|
|
109 |
|
|
* tests/server_test.c: use socklen_t.
|
110 |
|
|
* tests/nc_test_slave.c: use socklen_t and diag_print type fixes
|
111 |
|
|
to stop warnings with gcc4.x
|
112 |
|
|
* tests/tcp_echo.c: use socklen_t and diag_print type fixes to
|
113 |
|
|
stop warnings with gcc4.x
|
114 |
|
|
* tests/ping_test.c: use socklen_t.
|
115 |
|
|
* tests/dhcp_test.c: use socklen_t.
|
116 |
|
|
|
117 |
|
|
2005-09-05 David Vrabel
|
118 |
|
|
Andrew Lunn
|
119 |
|
|
|
120 |
|
|
* src/tftp_client.c, include/tftp_support.h: const parameters
|
121 |
|
|
where appropriate.
|
122 |
|
|
* doc/tcpip.sgml: Update for the above.
|
123 |
|
|
|
124 |
|
|
2005-08-02 Andrew Lunn
|
125 |
|
|
|
126 |
|
|
* tests/ping_lo_test.c (ping_host): Use socklen_t to avoid
|
127 |
|
|
compiler warnings.
|
128 |
|
|
* tests/tcp_lo_test.c (server): Ditto
|
129 |
|
|
* tests/udp_lo_test.c (server): Ditto
|
130 |
|
|
* tests/tcp_lo_select.c (server): Ditto
|
131 |
|
|
|
132 |
|
|
2005-07-29 Andrew Lunn
|
133 |
|
|
|
134 |
|
|
* src/tftp_dummy_file.c: unsigned char when needed to prevent warnings.
|
135 |
|
|
* src/tftp_server.c: fromlen in recvfrom should be of socklen_t.
|
136 |
|
|
* src/tftp_client.c: fromlen in recvfrom should be of socklen_t.
|
137 |
|
|
* src/dhcp_prot.c (do_dhcp): Casts etc so that it compiles cleanly
|
138 |
|
|
with gcc4.0
|
139 |
|
|
|
140 |
|
|
2005-03-27 Andrew Lunn
|
141 |
|
|
|
142 |
|
|
* src/tftp_server.c (tftpd_server): Fixed compiler warning about
|
143 |
|
|
type of argument to printf.
|
144 |
|
|
|
145 |
|
|
2004-10-04 Andrew Lunn
|
146 |
|
|
|
147 |
|
|
* include/tftp_support.h: Use the definitions of O_RDONLY and
|
148 |
|
|
O_WRONLY from fcntl.h instead of defining them ourselves.
|
149 |
|
|
|
150 |
|
|
2004-06-17 Oyvind Harboe
|
151 |
|
|
|
152 |
|
|
* src/tftp_server.c:
|
153 |
|
|
* cdl/net.cdl: Made tftp server stack size configurable via cdl.
|
154 |
|
|
|
155 |
|
|
2004-06-17 Andrew Lunn
|
156 |
|
|
|
157 |
|
|
* src/ifaddrs.c (getifaddrs): Return destination address for P2P
|
158 |
|
|
devices. Also don't bother trying to get the broadcast address for
|
159 |
|
|
interfaces that don't have a valid broadcast address. Inspired by
|
160 |
|
|
Kelvin Lawson
|
161 |
|
|
|
162 |
|
|
2004-06-08 Andrew Lunn
|
163 |
|
|
|
164 |
|
|
* include/network.h: Added a __THROW to perror so that it matches
|
165 |
|
|
what is in stdio.h. Problem pointed out by Øyvid Harboe.
|
166 |
|
|
|
167 |
|
|
2004-05-04 Jay Foster
|
168 |
|
|
|
169 |
|
|
* src/bootp_support.c (get_bootp_option, show_bootp):
|
170 |
|
|
* src/dhcp_prot.c (scan_dhcp_size): Fixed bug that didn't handle
|
171 |
|
|
the pad option.
|
172 |
|
|
|
173 |
|
|
2004-04-19 Oyvind Harboe
|
174 |
|
|
|
175 |
|
|
* src/tftp_server.c: files are now created with the
|
176 |
|
|
O_CREAT|O_TRUNC|O_WRONLY so it is possible to write to
|
177 |
|
|
non-existing files and that overwriting a larger file with
|
178 |
|
|
a smaller file does not leave a garbage at the end.
|
179 |
|
|
|
180 |
|
|
2004-04-19 John Dallaway
|
181 |
|
|
|
182 |
|
|
* doc/tcpip.sgml: Remove reference to RedBoot documentation
|
183 |
|
|
which is now built separately.
|
184 |
|
|
|
185 |
|
|
2004-04-13 Sandeep Kumar
|
186 |
|
|
|
187 |
|
|
* src/network_support.c (init_all_network_interfaces): Fix argument to
|
188 |
|
|
cyg_dns_res_start and removed errneaous extra closing brace around it.
|
189 |
|
|
|
190 |
|
|
2004-04-13 Jay Foster
|
191 |
|
|
|
192 |
|
|
* src/bootp_support.c (do_bootp): Return false when we should.
|
193 |
|
|
* src/dhcp_prot.c (do_dhcp_down_net): correctly close the IPv6 socket.
|
194 |
|
|
|
195 |
|
|
2004-04-11 Andrew Lunn
|
196 |
|
|
|
197 |
|
|
* src/bootp_support.c:
|
198 |
|
|
* src/dhcp_prot.c: Close sockets before exiting so we don't leak
|
199 |
|
|
them.
|
200 |
|
|
* src/dhcp_prot.c (new_lease): Use a smaller infinite so we don't get
|
201 |
|
|
a compiler warning.
|
202 |
|
|
|
203 |
|
|
2004-02-27 Robert Chenault
|
204 |
|
|
|
205 |
|
|
* cdl/net.cdl:
|
206 |
|
|
* src/dhcp_prot.c: Added CYGNUM_NET_DHCP_MIN_RETRY_TIME
|
207 |
|
|
|
208 |
|
|
2004-02-17 Matt Jerdonek
|
209 |
|
|
|
210 |
|
|
* src/dhcp_prot.c: Fix initialization of DHCP sec field
|
211 |
|
|
|
212 |
|
|
2003-12-10 Gary Thomas
|
213 |
|
|
|
214 |
|
|
* src/inet_ntoa.c: Add thread safe inet_ntoa_r() and change
|
215 |
|
|
inet_ntoa() to use it. Inspired by Matt Jerdonek.
|
216 |
|
|
|
217 |
|
|
* include/net/netdb.h:
|
218 |
|
|
* include/arpa/inet.h: Prototype for inet_ntoa_r()
|
219 |
|
|
|
220 |
|
|
2003-11-25 Manu Sharma
|
221 |
|
|
|
222 |
|
|
* tests/bridge.c: Changes to enable Spanning Tree Protocol if the
|
223 |
|
|
corresponding CDL component is enabled.
|
224 |
|
|
|
225 |
|
|
2003-11-24 Jani Monoses
|
226 |
|
|
|
227 |
|
|
* cdl/net.cdl: Close quote for test list.
|
228 |
|
|
|
229 |
|
|
2003-11-22 Andrew Lunn
|
230 |
|
|
|
231 |
|
|
* cdl/net.cdl: Added control for IPSEC
|
232 |
|
|
* doc/ipsec.sgml: General documentation of ipsec.
|
233 |
|
|
|
234 |
|
|
2003-10-30 Gary Thomas
|
235 |
|
|
|
236 |
|
|
* tests/ping_test.c: Enable profiling if configured in - example use only.
|
237 |
|
|
|
238 |
|
|
2003-10-16 Jay Foster
|
239 |
|
|
Andrew Lunn
|
240 |
|
|
|
241 |
|
|
* doc/tcpip.sgml: Added documentation for
|
242 |
|
|
CYGOPT_NET_DHCP_OPTION_HOST_NAME,
|
243 |
|
|
CYGNUM_NET_DHCP_OPTION_HOST_NAME_LEN,
|
244 |
|
|
CYGOPT_NET_DHCP_OPTION_DHCP_CLIENTID_MAC,
|
245 |
|
|
CYGOPT_NET_DHCP_PARM_REQ_LIST_REPLACE and
|
246 |
|
|
CYGOPT_NET_DHCP_PARM_REQ_LIST_ADDITIONAL.
|
247 |
|
|
* cdl/net.cdl: Added legal_values definition for the
|
248 |
|
|
CYGNUM_NET_DHCP_OPTION_HOST_NAME_LEN option.
|
249 |
|
|
|
250 |
|
|
2003-10-21 Andrew Lunn
|
251 |
|
|
|
252 |
|
|
* src/dhcp_prot.c (set_default_dhcp_tags):
|
253 |
|
|
* src/bootp_support.c (show_bootp): Added support for TAG_NTP_SERVER
|
254 |
|
|
|
255 |
|
|
2003-10-13 Jay Foster
|
256 |
|
|
|
257 |
|
|
* include/dhcp.h: Added prototype for dhcp_set_hostname().
|
258 |
|
|
* src/dhcp_prot.c (set_default_dhcp_tags): Added TAG_HOST_NAME and
|
259 |
|
|
TAG_DHCP_CLIENTID DHCP/BOOTP option support.
|
260 |
|
|
* cdl/net.cdl: Added host name (CYGOPT_NET_DHCP_OPTION_HOST_NAME) and
|
261 |
|
|
MAC address client ID (CYGOPT_NET_DHCP_OPTION_DHCP_CLIENTID_MAC)
|
262 |
|
|
support.
|
263 |
|
|
|
264 |
|
|
2003-10-12 Jay Foster
|
265 |
|
|
|
266 |
|
|
* cdl/net.cdl: Added configuration interface for
|
267 |
|
|
CYGOPT_NET_DHCP_PARM_REQ_LIST_REPLACE and
|
268 |
|
|
CYGOPT_NET_DHCP_PARM_REQ_LIST_ADDITIONAL.
|
269 |
|
|
|
270 |
|
|
2003-10-09 Eric Doenges
|
271 |
|
|
|
272 |
|
|
* src/tftp_client.c: Changed the code so that if a packet is
|
273 |
|
|
received out of sequence we don't close the connection but wait
|
274 |
|
|
for the missing packets.
|
275 |
|
|
|
276 |
|
|
2003-10-06 Andrew Lunn
|
277 |
|
|
|
278 |
|
|
* tests/bridge.c: Build the test when we have the bridge
|
279 |
|
|
handler code enabled and so presumably a bridge.
|
280 |
|
|
|
281 |
|
|
2003-09-16 Jay Foster
|
282 |
|
|
|
283 |
|
|
* src/ifaddrs.c (getifaddrs): Fix up allocation and freeing of
|
284 |
|
|
work buffers and data buffers.
|
285 |
|
|
|
286 |
|
|
2003-07-29 Motoya Kurotsu
|
287 |
|
|
|
288 |
|
|
* src/dhcp_prot.c (do_dhcp): (re)Initialize the lease when
|
289 |
|
|
dhcp is (re)initialized or retried.
|
290 |
|
|
Return true when the state falls into DHCPSTATE_NOTBOUND so that it
|
291 |
|
|
knows the interface it still up and can later bring it down when
|
292 |
|
|
cleaning up.
|
293 |
|
|
|
294 |
|
|
2003-07-25 Andrew Lunn
|
295 |
|
|
|
296 |
|
|
* src/ipv6_routing_thread.c: Fix compiler warnings
|
297 |
|
|
* cd/net.cdl: The routing thread needs the posix package.
|
298 |
|
|
|
299 |
|
|
2003-07-24 Nick Garnett
|
300 |
|
|
|
301 |
|
|
* src/dhcp_prot.c: Added a declaration for cyg_arc4random() to
|
302 |
|
|
eliminate a compiler warning.
|
303 |
|
|
|
304 |
|
|
2003-07-15 Nick Garnett
|
305 |
|
|
|
306 |
|
|
* include/net/netdb.h: Added include for . the in.h
|
307 |
|
|
file included later needs this.
|
308 |
|
|
|
309 |
|
|
2003-05-23 Andrew Lunn
|
310 |
|
|
|
311 |
|
|
* src/network_support.c (init_all_network_interfaces): Allow IPv4
|
312 |
|
|
or IPv6 addresses to be used when configuring a default DNS
|
313 |
|
|
server.
|
314 |
|
|
|
315 |
|
|
2003-05-21 Andrew Lunn
|
316 |
|
|
|
317 |
|
|
* src/getaddrinfo.c (getaddrinfo): Corrected a bad patch merge
|
318 |
|
|
from earlier which failed to delete some code. This fixed the dns1
|
319 |
|
|
tests for IPv6 lookups.
|
320 |
|
|
|
321 |
|
|
2003-05-19 Michael Checky
|
322 |
|
|
Andrew Lunn
|
323 |
|
|
|
324 |
|
|
* src/getaddrinfo.c: Changed '#ifdef CYGPKG_NS_DNS' to
|
325 |
|
|
'#ifdef CYGPKG_NS_DNS_BUILD', so it would compile if this CDL
|
326 |
|
|
option is not selected. Changed the call to 'numeric_node_addr'
|
327 |
|
|
so it uses the correct number of arguments.
|
328 |
|
|
|
329 |
|
|
2003-05-14 Bob Holmberg
|
330 |
|
|
|
331 |
|
|
* src/tftp_server.c (tftpd_read_file): Open the file for reading,
|
332 |
|
|
not writing.
|
333 |
|
|
|
334 |
|
|
2003-05-09 Andrew Lunn
|
335 |
|
|
|
336 |
|
|
* src/ifaddrs.c (getifaddrs): Fill in flags, netmask and broadcast
|
337 |
|
|
addresses, for both IPv4 and IPv6 and enabled.
|
338 |
|
|
* src/ipv6_routing_thread.c (ipv6_start_routing_thread): Only
|
339 |
|
|
start the thread once.
|
340 |
|
|
|
341 |
|
|
2003-04-26 Andrew Lunn
|
342 |
|
|
|
343 |
|
|
* src/getaddrinfo.c (getaddrinfo): Correctly return TCP when it is!
|
344 |
|
|
* tests/addr_test.c (net_test): Added a test which uses protocol TCP
|
345 |
|
|
* src/tftp_client.c (tftp_get): If we timeout on the first block,
|
346 |
|
|
try other addresses for the server if we have any.
|
347 |
|
|
* src/network_support.c (init_all_network_interfaces): After
|
348 |
|
|
router solicitation has given us an address, wait a couple of
|
349 |
|
|
seconds for duplicate address detection to do its work. While DAD
|
350 |
|
|
is active, we cannot use the new address.
|
351 |
|
|
|
352 |
|
|
2003-04-24 Jonathan Larmour
|
353 |
|
|
|
354 |
|
|
* doc/tcpip.sgml: Fix some docbook errors only reported by certain
|
355 |
|
|
Jade versions.
|
356 |
|
|
|
357 |
|
|
2003-04-24 Andrew Lunn
|
358 |
|
|
|
359 |
|
|
* src/tftp_client.c (tftp_client_put): Fixed compiler warning.
|
360 |
|
|
|
361 |
|
|
2003-04-21 Andrew Lunn
|
362 |
|
|
|
363 |
|
|
* src/getaddrinfo.c (getnameinfo): Fixed some endian issues with
|
364 |
|
|
port numbers and a typo. Added an interface to the DNS client for
|
365 |
|
|
reverse lookups.
|
366 |
|
|
* tests/addr_test.c (net_test): Added tests for getnameinfo. Fixed
|
367 |
|
|
some memory leaks.
|
368 |
|
|
|
369 |
|
|
2003-04-20 Andrew Lunn
|
370 |
|
|
|
371 |
|
|
* src/getaddrinfo.c (getaddrinfo): Virtually a re-write to
|
372 |
|
|
interface to the DNS client.
|
373 |
|
|
|
374 |
|
|
2003-04-14 Andrew Lunn
|
375 |
|
|
|
376 |
|
|
* include/net/netdb.h: const correctness.
|
377 |
|
|
|
378 |
|
|
2003-04-12 Andrew Lunn
|
379 |
|
|
|
380 |
|
|
* src/network_support.c (init_loopback_interface): Close the
|
381 |
|
|
socket when things go wrong otherwise we leak sockets.
|
382 |
|
|
|
383 |
|
|
* src/tftp_server.c (tftpd_server): Added support for IPv6 as well
|
384 |
|
|
as IPv4. Extended the multithreading support so that it works
|
385 |
|
|
correctly when there are multiple servers on multiple ports.
|
386 |
|
|
* doc/tcpip.sgml: Documentation for the changes made to the tftp
|
387 |
|
|
server.
|
388 |
|
|
|
389 |
|
|
2003-04-11 Jonathan Larmour
|
390 |
|
|
|
391 |
|
|
* tests/linux_echo.c: Renamed to....
|
392 |
|
|
* tests/host_echo.c: this new file. Change comment to indicate this.
|
393 |
|
|
|
394 |
|
|
* tests/make.linux: Renamed to....
|
395 |
|
|
* tests/make.host: this new file. Change comment to indicate this.
|
396 |
|
|
Also linux_echo -> host_echo, and add clean target.
|
397 |
|
|
|
398 |
|
|
* doc/tcpip.sgml: Reflect above.
|
399 |
|
|
|
400 |
|
|
2003-04-11 Michael Checky
|
401 |
|
|
|
402 |
|
|
* tests/nc_test_framework.h: deleted '#include '.
|
403 |
|
|
* tests/linux_echo.c: added '#include ',
|
404 |
|
|
deleted '#include '.
|
405 |
|
|
* tests/tcp_sink.c: ditto.
|
406 |
|
|
* tests/tcp_souce.c: ditto.
|
407 |
|
|
* tests/nc_test_slave.c: changed 'bool' to 'int' because the compiler
|
408 |
|
|
didn't like 'bool'.
|
409 |
|
|
|
410 |
|
|
2003-04-10 Andrew Lunn
|
411 |
|
|
|
412 |
|
|
* src/network_support.c (init_all_network_interfaces): Wait upto 4
|
413 |
|
|
seconds for a router solicit message to be received. Once we have
|
414 |
|
|
received the message we know we have a valid IPv6 address.
|
415 |
|
|
|
416 |
|
|
* src/tftp_client.c: Added support for IPv6. This requires two new
|
417 |
|
|
functions, tftp_client_{get|put} which are protocol version
|
418 |
|
|
independent.
|
419 |
|
|
* tests/tftp_client_test.c (tftp_test): Added tests which use IPv6
|
420 |
|
|
addresses.
|
421 |
|
|
|
422 |
|
|
2003-04-07 Andrew Lunn
|
423 |
|
|
|
424 |
|
|
* src/getaddrinfo.c (getaddrinfo): Correctly deal with node when
|
425 |
|
|
its not NULL. Its OK for the address to not parse for an address
|
426 |
|
|
family when AF_UNSPEC is passed in hints. Also get the socktype
|
427 |
|
|
correct when wildcarding for services that use UDP.
|
428 |
|
|
* tests/addr_test.c: Added more test cases which test IP addresses
|
429 |
|
|
in number format as node.
|
430 |
|
|
|
431 |
|
|
2003-04-05 Andrew Lunn
|
432 |
|
|
|
433 |
|
|
* cdl/net.cdl: Added addr_tests to the HW tests.
|
434 |
|
|
* tests/addr_test.c (net_test): void function not int.
|
435 |
|
|
* tests/ping_test.c (net_test): Added IPv6 ping test. This pings
|
436 |
|
|
the router which answers our router solicit message.
|
437 |
|
|
* src/ipv6_routing_thread.c (cyg_rs): Print out the router
|
438 |
|
|
advertisement message. Cleaned up the debug messages so they can
|
439 |
|
|
be disabled.
|
440 |
|
|
* src/ipv6_routing_thread.c (cyg_net_get_ipv6_advrouter): New
|
441 |
|
|
function to return the address of the router.
|
442 |
|
|
* include/network.h: Added prototype for above and
|
443 |
|
|
ipv6_start_routing_thread which did not have a prototype.
|
444 |
|
|
* src/ipv6_routing_thread.c (cyg_rs): Only wait 2 seconds before
|
445 |
|
|
sending the first solicit request rather than 10.
|
446 |
|
|
* src/dhcp_prot.c (do_dhcp_down_net): clear the if_laddrreq
|
447 |
|
|
before using it. If the request fails finish the IPv4 code rather
|
448 |
|
|
than returning,.
|
449 |
|
|
|
450 |
|
|
2003-04-02 Andrew Lunn
|
451 |
|
|
|
452 |
|
|
* tests/ping_lo_test.c: Added IPv6 ping test.
|
453 |
|
|
* src/getproto.c: Added the protocol ipv6-icmp.
|
454 |
|
|
|
455 |
|
|
2003-04-02 Andrew Lunn
|
456 |
|
|
|
457 |
|
|
* src/dhcp_prot.c (do_dhcp_down_net): SIOCGLIFADDR and
|
458 |
|
|
SIOCDLIFADDR take if_laddrreq not ifreq. This caused stack
|
459 |
|
|
corruption. Also initialise the if_laddrreq to zero and only do
|
460 |
|
|
the second IOCTL call if the first once succeeds.
|
461 |
|
|
|
462 |
|
|
2003-03-21 Nick Garnett
|
463 |
|
|
|
464 |
|
|
* include/network.h: Added include of pkgconf/io_eth_drivers.h
|
465 |
|
|
since the recent move of CYGHWR_NET_DRIVERS prevented some tests
|
466 |
|
|
building. This fixes the problem.
|
467 |
|
|
|
468 |
|
|
* tests/dhcp_test2.c: Sorted out ifdefs so that this test builds
|
469 |
|
|
when DHCP is disabled.
|
470 |
|
|
|
471 |
|
|
* cdl/net.cdl: Reinstated dhcp_test2 into list of tests: it was
|
472 |
|
|
accidentally removed in the 2003-03-14 checkin.
|
473 |
|
|
|
474 |
|
|
2003-03-20 Mark Salter
|
475 |
|
|
|
476 |
|
|
* cdl/net.cdl (CYGHWR_NET_DRIVERS): Removed to io/eth.
|
477 |
|
|
|
478 |
|
|
2003-03-18 Barton Meeks
|
479 |
|
|
|
480 |
|
|
* src/tftp_client.c: Reduce size of initial request packet
|
481 |
|
|
for compatibility with some tftp servers.
|
482 |
|
|
|
483 |
|
|
2003-03-14 Nick Garnett
|
484 |
|
|
|
485 |
|
|
* cdl/net.cdl: Added CYGDBG_NET_SHOW_MBUFS option to turn on
|
486 |
|
|
accumulation and display of mbuf state information.
|
487 |
|
|
|
488 |
|
|
2003-03-06 Gary Thomas
|
489 |
|
|
|
490 |
|
|
* src/getaddrinfo.c: Need to clear any addresses - malloc() can
|
491 |
|
|
return garbage which the stack desn't like.
|
492 |
|
|
|
493 |
|
|
2003-03-05 Gary Thomas
|
494 |
|
|
|
495 |
|
|
* src/getaddrinfo.c: Allow getaddrinfo() to use DNS gethostbyXXX()
|
496 |
|
|
routines if DNS is present. Also, eliminate some debug messages.
|
497 |
|
|
|
498 |
|
|
2003-02-25 Andrew Lunn
|
499 |
|
|
|
500 |
|
|
* src/getserv.c: Added a servent structure for SNTP.
|
501 |
|
|
|
502 |
|
|
2003-02-24 Jonathan Larmour
|
503 |
|
|
|
504 |
|
|
* cdl/net.cdl: Improve doc links.
|
505 |
|
|
|
506 |
|
|
* doc/prepare-manpages.sh: Generate namespaced IDs, without shouting.
|
507 |
|
|
* doc/tcpip-manpages.sgml: Regenerated.
|
508 |
|
|
|
509 |
|
|
2003-01-31 Jonathan Larmour
|
510 |
|
|
|
511 |
|
|
* cdl/net.cdl (CYGPKG_NET_BUILD_HW_TESTS): Requires eth hardware
|
512 |
|
|
devices.
|
513 |
|
|
(CYGPKG_NET_TESTS): Remove from under CYGPKG_NET_BUILD_TESTS (which
|
514 |
|
|
became CYGPKG_NET_BUILD_HW_TESTS) so the loopback tests are always
|
515 |
|
|
built.
|
516 |
|
|
|
517 |
|
|
2003-01-20 Gary Thomas
|
518 |
|
|
|
519 |
|
|
* tests/nc_test_slave.c: Improve handling of UDP buffer space - try
|
520 |
|
|
to minimize amount of "idle" time when this occurs. Since this test
|
521 |
|
|
is just for show, these changes just make the numbers "look" better.
|
522 |
|
|
|
523 |
|
|
2003-01-18 Jonathan Larmour
|
524 |
|
|
|
525 |
|
|
* src/network_support.c (init_all_network_interfaces): Define buf
|
526 |
|
|
as const.
|
527 |
|
|
|
528 |
|
|
2003-01-10 Andrew Lunn
|
529 |
|
|
|
530 |
|
|
* src/network_support.c (init_all_network_interfaces): Added
|
531 |
|
|
support for a hard coded domain name. Inspired by Motoya Kurotsu.
|
532 |
|
|
|
533 |
|
|
2003-01-09 Andrew Lunn
|
534 |
|
|
|
535 |
|
|
* src/network_support.c (init_all_network_interfaces): Added
|
536 |
|
|
support for a hard coded, default DNS server address.
|
537 |
|
|
|
538 |
|
|
2003-01-12 Jonathan Larmour
|
539 |
|
|
|
540 |
|
|
* src/bootp_support.c: Fix licence which should always have been
|
541 |
|
|
GPL since no BSD licensed code was in fact involved.
|
542 |
|
|
* src/dhcp_prot.c: Ditto.
|
543 |
|
|
* src/dhcp_support.c: Ditto.
|
544 |
|
|
* src/network_support.c: Ditto.
|
545 |
|
|
* src/tftp_client.c: Ditto.
|
546 |
|
|
* src/tftp_dummy_file.c: Ditto.
|
547 |
|
|
* src/tftp_server.c: Ditto.
|
548 |
|
|
|
549 |
|
|
2003-01-04 Jonathan Larmour
|
550 |
|
|
|
551 |
|
|
* doc/tcpip.sgml: Use new entity name for tcpip manpages.
|
552 |
|
|
|
553 |
|
|
2002-10-06 Andrew Lunn
|
554 |
|
|
|
555 |
|
|
* tests/multi_lo_select.c: Need the io_fileio.h header file
|
556 |
|
|
* tests/tcp_echo.c: (max): definition clashes with the one in
|
557 |
|
|
the header file lib/libkern/libkern.h
|
558 |
|
|
|
559 |
|
|
2002-08-16 Gary Thomas (on behalf of)
|
560 |
|
|
2002-08-16 Louis Hamilton
|
561 |
|
|
|
562 |
|
|
* src/ipv6_routing_thread.c: General improvements (from Red Hat)
|
563 |
|
|
for better compliance.
|
564 |
|
|
|
565 |
|
|
2002-08-14 Jonathan Larmour
|
566 |
|
|
|
567 |
|
|
* src/getserv.c: Include errno.h as errno is used.
|
568 |
|
|
|
569 |
|
|
2002-08-07 Gary Thomas
|
570 |
|
|
|
571 |
|
|
* src/tftp_server.c:
|
572 |
|
|
* src/tftp_client.c:
|
573 |
|
|
* include/arpa/tftp.h: Make block numbers unsigned to handle files
|
574 |
|
|
larger than 16MB.
|
575 |
|
|
|
576 |
|
|
2002-07-26 Gary Thomas
|
577 |
|
|
2002-07-26 Ken Cox
|
578 |
|
|
|
579 |
|
|
* src/dhcp_prot.c: The IPv6 link local address would not be
|
580 |
|
|
recognized if configured to use dhcp. When dhcp reconfigures
|
581 |
|
|
the interface after obtaining it's info, it needs to delete
|
582 |
|
|
the IPv6 link local address (as well as the IPv4) address before
|
583 |
|
|
reconfiguring.
|
584 |
|
|
|
585 |
|
|
2002-07-10 Gary Thomas
|
586 |
|
|
|
587 |
|
|
* src/inet_addr.c:
|
588 |
|
|
* src/getproto.c:
|
589 |
|
|
* src/dhcp_prot.c:
|
590 |
|
|
* src/bootp_support.c: Pedantic - make sure "errno" is defined.
|
591 |
|
|
|
592 |
|
|
2002-07-04 Jonathan Larmour
|
593 |
|
|
|
594 |
|
|
* src/dhcp_prot.c (_dhcp_copy): Remove. Unnecessary as we can never
|
595 |
|
|
receive a packet longer than sizeof(struct bootp)
|
596 |
|
|
(do_dhcp): Also set giaddr to 0 before sends.
|
597 |
|
|
Verify length of received packets, especially to check for truncation.
|
598 |
|
|
|
599 |
|
|
2002-06-20 Gary Thomas
|
600 |
|
|
|
601 |
|
|
* src/inet_ntop.c: Fix build error when used with newer compilers.
|
602 |
|
|
|
603 |
|
|
2002-06-05 Gary Thomas
|
604 |
|
|
|
605 |
|
|
* src/dhcp_prot.c (_dhcp_copy): New function used to better handle
|
606 |
|
|
replies that can be variable length.
|
607 |
|
|
|
608 |
|
|
2002-05-30 Gary Thomas
|
609 |
|
|
|
610 |
|
|
* tests/tcp_echo.c: Build with either stack (no libkern.h).
|
611 |
|
|
|
612 |
|
|
* tests/bridge.c: Don't do anything (should not even be built,
|
613 |
|
|
but that's a CDL complication) if no BRIDGE support in system.
|
614 |
|
|
|
615 |
|
|
2002-05-30 Jesper Skov
|
616 |
|
|
|
617 |
|
|
* tests/flood.c (floodsend): Fixed warning.
|
618 |
|
|
|
619 |
|
|
2002-05-28 Jonathan Larmour
|
620 |
|
|
|
621 |
|
|
* src/dhcp_prot.c (do_dhcp): xmit2 need not be static.
|
622 |
|
|
|
623 |
|
|
2002-05-27 Gary Thomas
|
624 |
|
|
|
625 |
|
|
* src/dhcp_prot.c (do_dhcp): Suppress my_ip and server_ip fields
|
626 |
|
|
in all messages where they should not be set. Also be more careful
|
627 |
|
|
about size of messages as they are copied.
|
628 |
|
|
|
629 |
|
|
2002-05-24 Gary Thomas
|
630 |
|
|
|
631 |
|
|
* src/dhcp_prot.c (do_dhcp): Suppress my_ip and server_ip fields
|
632 |
|
|
when returning DHCP request (acceptance phase) because some DHCP
|
633 |
|
|
servers insist (and the RFC says it must be this way).
|
634 |
|
|
|
635 |
|
|
2002-05-21 Jesper Skov
|
636 |
|
|
|
637 |
|
|
* include/net/netdb.h: Include netinet/in.h for the in_addr use in
|
638 |
|
|
declarations.
|
639 |
|
|
|
640 |
|
|
2002-05-14 Jesper Skov
|
641 |
|
|
|
642 |
|
|
* src/tftp_dummy_file.c: Fixed warnings.
|
643 |
|
|
|
644 |
|
|
* src/getaddrinfo.c: Fixed warnings.
|
645 |
|
|
|
646 |
|
|
2002-04-26 Gary Thomas
|
647 |
|
|
|
648 |
|
|
* cdl/net.cdl: Add option for making random IP packet IDs random.
|
649 |
|
|
|
650 |
|
|
2002-04-22 Gary Thomas
|
651 |
|
|
|
652 |
|
|
* src/ifaddrs.c: Reorg include files - remove warnings.
|
653 |
|
|
|
654 |
|
|
2002-04-17 Gary Thomas
|
655 |
|
|
|
656 |
|
|
* src/ipv6_routing_thread.c: New function - separate thread used to
|
657 |
|
|
send router soliciation messages periodically.
|
658 |
|
|
|
659 |
|
|
* cdl/net.cdl:
|
660 |
|
|
* src/network_support.c (init_all_network_interfaces):
|
661 |
|
|
Support IPv6 routing thread.
|
662 |
|
|
|
663 |
|
|
* src/getaddrinfo.c (_getaddr): Set ai_addrlen fields.
|
664 |
|
|
|
665 |
|
|
2002-04-11 Gary Thomas
|
666 |
|
|
|
667 |
|
|
* tests/ga_server_test.c:
|
668 |
|
|
* tests/nc6_test_slave.c: Fix handling of multiple sockets.
|
669 |
|
|
|
670 |
|
|
2002-04-05 Gary Thomas
|
671 |
|
|
|
672 |
|
|
* tests/ga_server_test.c: Use getnameinfo().
|
673 |
|
|
|
674 |
|
|
* include/net/netdb.h:
|
675 |
|
|
* src/getaddrinfo.c (getnameinfo): New [minimal] implementation.
|
676 |
|
|
|
677 |
|
|
2002-04-04 Gary Thomas
|
678 |
|
|
|
679 |
|
|
* src/network_support.c (build_bootp_record): Query device for hardware
|
680 |
|
|
address (required change in function profile). Bug #59369
|
681 |
|
|
|
682 |
|
|
2002-03-27 Gary Thomas
|
683 |
|
|
|
684 |
|
|
* tests/make.linux: Add slave tests.
|
685 |
|
|
|
686 |
|
|
* tests/nc_test_framework.h:
|
687 |
|
|
* tests/nc6_test_master.c:
|
688 |
|
|
* tests/nc6_test_slave.c: Fixing build problems on Linux & FreeBSD.
|
689 |
|
|
|
690 |
|
|
* include/machine/types.h: Added [empty to keep OpenBSD stack happy].
|
691 |
|
|
|
692 |
|
|
2002-03-27 Jonathan Larmour
|
693 |
|
|
|
694 |
|
|
* doc/tcpip.sgml: Place TCP/IP manpages here.
|
695 |
|
|
|
696 |
|
|
2002-03-25 Gary Thomas
|
697 |
|
|
|
698 |
|
|
* tests/nc_test_master.c: Fix problem with buffer size (static
|
699 |
|
|
buffer was only 8192 bytes, but the code tried to use 10240!)
|
700 |
|
|
|
701 |
|
|
* tests/nc6_test_slave.c: Print memory statistics on failures and
|
702 |
|
|
at the end of each test.
|
703 |
|
|
|
704 |
|
|
* tests/nc6_test_master.c: Fix problem with buffer size (static
|
705 |
|
|
buffer was only 8192 bytes, but the code tried to use 10240!)
|
706 |
|
|
Lots of improvements, including command line processing to suppress
|
707 |
|
|
certain classes of tests.
|
708 |
|
|
|
709 |
|
|
* src/inet_addr.c: Add cast to isascii() macro to avoid warnings.
|
710 |
|
|
|
711 |
|
|
2002-03-21 Gary Thomas
|
712 |
|
|
|
713 |
|
|
* tests/nc6_test_slave.c: Minor cleanups - allow building without IPv6.
|
714 |
|
|
|
715 |
|
|
2002-03-20 Gary Thomas
|
716 |
|
|
|
717 |
|
|
* tests/tcp_source.c:
|
718 |
|
|
* tests/tcp_sink.c: Fix build problems on Linux (no sin_len).
|
719 |
|
|
|
720 |
|
|
* tests/make.linux:
|
721 |
|
|
* tests/nc6_test_slave.c:
|
722 |
|
|
* tests/nc6_test_master.c: New tests using getaddrinfo() which
|
723 |
|
|
can test both IPv4 and IPv6 environments.
|
724 |
|
|
|
725 |
|
|
2002-03-19 Gary Thomas
|
726 |
|
|
|
727 |
|
|
* tests/addr_test.c: New test of getaddrinfo() functionality.
|
728 |
|
|
|
729 |
|
|
* src/inet_ntop.c (_inet_port):
|
730 |
|
|
* src/getaddrinfo.c (_getaddr): Fix some byte-order problems.
|
731 |
|
|
|
732 |
|
|
* src/network_support.c: Fix build when PCMCIA defined.
|
733 |
|
|
|
734 |
|
|
* src/bootp_support.c (do_bootp):
|
735 |
|
|
* include/network.h: route_reinit renamed cyg_route_reinit.
|
736 |
|
|
|
737 |
|
|
* include/bootp.h: Clean up warnings (add prototypes, etc).
|
738 |
|
|
|
739 |
|
|
2002-03-12 Hugo Tyson
|
740 |
|
|
|
741 |
|
|
* tests/dhcp_test2.c (cyg_user_start): Change priority of test
|
742 |
|
|
thread to CYGPKG_NET_DHCP_THREAD_PRIORITY, so that it is lower
|
743 |
|
|
than the network service thread. Otherwise down-up cycling the
|
744 |
|
|
state of some types of driver leaks MBUFs because of tx-done
|
745 |
|
|
events being lost.
|
746 |
|
|
|
747 |
|
|
2002-03-11 Hugo Tyson
|
748 |
|
|
|
749 |
|
|
* cdl/net.cdl: Add dhcp_test2 to the list.
|
750 |
|
|
|
751 |
|
|
* tests/dhcp_test2.c: New testcase: repeatedly cycle interface(s)
|
752 |
|
|
up and down using DHCP to test for storeleaks. The test cannot
|
753 |
|
|
tell unless you run it forever, of course, but that it completes
|
754 |
|
|
without timeout is a fair test in itself.
|
755 |
|
|
|
756 |
|
|
2002-03-08 Gary Thomas
|
757 |
|
|
|
758 |
|
|
* tests/tcp_lo_test.c (server): Need to set 'len', otherwise
|
759 |
|
|
the source socket address is undefined.
|
760 |
|
|
|
761 |
|
|
2002-03-07 Gary Thomas
|
762 |
|
|
|
763 |
|
|
* src/dhcp_prot.c: Some [internal] function names have changed.
|
764 |
|
|
In particular, route_reinit() and arc4random().
|
765 |
|
|
|
766 |
|
|
2002-03-06 Gary Thomas
|
767 |
|
|
|
768 |
|
|
* tests/ga_server_test.c: New test - used to exercise getaddrinfo().
|
769 |
|
|
|
770 |
|
|
* src/inet_pton.c: Minor source code cleanups.
|
771 |
|
|
|
772 |
|
|
* src/inet_ntop.c (_inet_ntop): Add [non-standard] functions
|
773 |
|
|
which make it easier for code to be generic in the handling
|
774 |
|
|
of network addresses (struct sockaddr).
|
775 |
|
|
|
776 |
|
|
* include/net/netdb.h:
|
777 |
|
|
* include/network.h: Reorg - network address functions are now
|
778 |
|
|
all in
|
779 |
|
|
|
780 |
|
|
* cdl/net.cdl: Add getaddrinfo support.
|
781 |
|
|
* src/getaddrinfo.c: New file.
|
782 |
|
|
|
783 |
|
|
* include/arpa/nameser.h: Fix some warnings.
|
784 |
|
|
|
785 |
|
|
2002-02-26 Hugo Tyson
|
786 |
|
|
|
787 |
|
|
* src/dhcp_prot.c (do_dhcp): Two things: a) not all ACK packets
|
788 |
|
|
contain all the information that we in the OFFER packet, so do not
|
789 |
|
|
overwrite the offer with any ACKs we receive. b) REQUEST packets
|
790 |
|
|
when in the RENEWING or REBINDING states "MUST NOT" contain REQ_IP
|
791 |
|
|
nor SERVER_ID tags. So remove 'em. Hence:
|
792 |
|
|
(unset_tag): New routine.
|
793 |
|
|
|
794 |
|
|
2002-02-22 Hugo Tyson
|
795 |
|
|
|
796 |
|
|
* doc/tcpip.sgml: New file. Separated generic documentation
|
797 |
|
|
of network support from the specific stack docs. Also much
|
798 |
|
|
tidying and improvement.
|
799 |
|
|
|
800 |
|
|
2002-02-19 Gary Thomas
|
801 |
|
|
|
802 |
|
|
* tests/ipv6_server_test.c: New file. Test TCP/IPv6 sockets.
|
803 |
|
|
|
804 |
|
|
* src/bootp_support.c:
|
805 |
|
|
* src/inet_pton.c: Remove some warnings.
|
806 |
|
|
|
807 |
|
|
* src/inet_ntop.c: New file().
|
808 |
|
|
* cdl/net.cdl:
|
809 |
|
|
* include/network.h: Add prototypes for inet_ntop() and
|
810 |
|
|
inet_pton() - generic [numeric] address support.
|
811 |
|
|
|
812 |
|
|
2002-02-18 Gary Thomas
|
813 |
|
|
|
814 |
|
|
* cdl/net.cdl:
|
815 |
|
|
Add new interface CYGINT_IO_ETH_MULTICAST which is used to
|
816 |
|
|
insure that drivers support multicast addresses if IPv6 is used.
|
817 |
|
|
|
818 |
|
|
2002-02-18 Gary Thomas
|
819 |
|
|
|
820 |
|
|
* src/bootp_support.c (init_net_IPv6): Fix problem with static address
|
821 |
|
|
prefix mask(length). This kept the stack from accepting neighborhood
|
822 |
|
|
routing for that same prefix.
|
823 |
|
|
|
824 |
|
|
2002-02-16 Gary Thomas
|
825 |
|
|
|
826 |
|
|
* src/inet_pton.c:
|
827 |
|
|
New file - parse from presentation (ASCII) to network.
|
828 |
|
|
Useful for handling IPv6 addresses.
|
829 |
|
|
|
830 |
|
|
2002-02-15 Gary Thomas
|
831 |
|
|
|
832 |
|
|
* src/network_support.c (init_all_network_interfaces): Set IPv6
|
833 |
|
|
static addresses if configured.
|
834 |
|
|
|
835 |
|
|
* src/bootp_support.c (init_net_IPv6): New function used to set
|
836 |
|
|
static IPv6 addresses.
|
837 |
|
|
|
838 |
|
|
* cdl/net.cdl: Improve layering to better support multiple
|
839 |
|
|
stacks. Move IPv4/IPv6 control to this level.
|
840 |
|
|
|
841 |
|
|
2002-02-01 Hugo Tyson
|
842 |
|
|
|
843 |
|
|
* tests/nc_test_slave.c (do_tcp_test): Make it build. There is no
|
844 |
|
|
test_chan here, only test_chan_slave and test_chan_master.
|
845 |
|
|
|
846 |
|
|
2002-02-01 Gary Thomas
|
847 |
|
|
|
848 |
|
|
* tests/udp_lo_test.c (server):
|
849 |
|
|
* tests/tcp_source.c (source_test):
|
850 |
|
|
* tests/tcp_sink.c (sink_test):
|
851 |
|
|
* tests/tcp_lo_test.c (server):
|
852 |
|
|
* tests/tcp_lo_select.c (server):
|
853 |
|
|
* tests/ping_test.c (ping_test):
|
854 |
|
|
* tests/ping_lo_test.c (ping_test_loopback):
|
855 |
|
|
* tests/nc_test_slave.c (do_udp_test):
|
856 |
|
|
* tests/multi_lo_select.c (dummy):
|
857 |
|
|
* tests/ftp_test.c (ftp_test):
|
858 |
|
|
* tests/flood.c (net_test):
|
859 |
|
|
* tests/dhcp_test.c (ping_test):
|
860 |
|
|
* src/tftp_server.c (tftpd_write_file):
|
861 |
|
|
* src/tftp_client.c (tftp_get):
|
862 |
|
|
* src/network_support.c (init_loopback_interface):
|
863 |
|
|
* src/dhcp_prot.c (bring_half_up): Need valid value for sin_len.
|
864 |
|
|
|
865 |
|
|
2002-01-31 Hugo Tyson
|
866 |
|
|
|
867 |
|
|
* src/dhcp_prot.c (do_dhcp): Also check the ESA in any received
|
868 |
|
|
answer matches, in case of an XID clash anyway.
|
869 |
|
|
|
870 |
|
|
2002-01-31 Hugo Tyson
|
871 |
|
|
|
872 |
|
|
* src/dhcp_prot.c (do_dhcp): Generate a new XID (transaction ID)
|
873 |
|
|
every time this routine is entered. Use the ESA and a random
|
874 |
|
|
source to avoid clashes with other net presences. (The ESA was
|
875 |
|
|
used uninitialized before this change.) Also use new macro
|
876 |
|
|
NEW_XID to increment the XID when we move to a new phase of the
|
877 |
|
|
protocol - one XID covers a question (identically transmitted
|
878 |
|
|
several times if necessary) and its answer. A new question => a
|
879 |
|
|
new XID.
|
880 |
|
|
|
881 |
|
|
Also fixed a gedankenbug about the timeouts. Old version tried
|
882 |
|
|
RENEWING the lease when T1 timed out as it should; but if that
|
883 |
|
|
failed (after the normal retries), it went straight into REBINDING
|
884 |
|
|
whether or not T2 had already timed out. Likewise if REBINDING
|
885 |
|
|
failed, it terminated the lease, whether or not the EX time had
|
886 |
|
|
timed out. This is wrong - it meant that a lease of 600 seconds
|
887 |
|
|
would actually shutdown the interface after about 340 (T1 + some)
|
888 |
|
|
if the server was gone.
|
889 |
|
|
|
890 |
|
|
The fix is to return to state BOUND from either RENEWING or
|
891 |
|
|
REBINDING (without resetting the lease timeouts) even if the
|
892 |
|
|
attempt failed; the rest of the lease machinery will take care of
|
893 |
|
|
things as and when the right time ticks by. It's still the case
|
894 |
|
|
that if a timeout occurs whilst trying on part or another, the
|
895 |
|
|
machine will be forced to the next state - all that is in order as
|
896 |
|
|
it always was.
|
897 |
|
|
|
898 |
|
|
2002-01-29 Gary Thomas
|
899 |
|
|
|
900 |
|
|
* tests/server_test.c (server_test): Add message for timeout.
|
901 |
|
|
|
902 |
|
|
2002-01-28 Gary Thomas
|
903 |
|
|
|
904 |
|
|
* tests/udp_lo_test.c:
|
905 |
|
|
* tests/tftp_server_test.c:
|
906 |
|
|
* tests/tftp_client_test.c:
|
907 |
|
|
* tests/tcp_source.c:
|
908 |
|
|
* tests/tcp_sink.c:
|
909 |
|
|
* tests/tcp_lo_test.c:
|
910 |
|
|
* tests/tcp_lo_select.c:
|
911 |
|
|
* tests/tcp_echo.c:
|
912 |
|
|
* tests/socket_test.c:
|
913 |
|
|
* tests/set_mac_address.c:
|
914 |
|
|
* tests/server_test.c:
|
915 |
|
|
* tests/ping_test.c:
|
916 |
|
|
* tests/ping_lo_test.c:
|
917 |
|
|
* tests/nc_test_slave.c:
|
918 |
|
|
* tests/nc_test_master.c:
|
919 |
|
|
* tests/nc_test_framework.h:
|
920 |
|
|
* tests/multi_lo_select.c:
|
921 |
|
|
* tests/mbuf_test.c:
|
922 |
|
|
* tests/make.linux:
|
923 |
|
|
* tests/linux_echo.c:
|
924 |
|
|
* tests/ftp_test.c:
|
925 |
|
|
* tests/flood.c:
|
926 |
|
|
* tests/dhcp_test.c:
|
927 |
|
|
* tests/bridge.c:
|
928 |
|
|
|
929 |
|
|
* src/tftp_server.c:
|
930 |
|
|
* src/tftp_dummy_file.c:
|
931 |
|
|
* src/tftp_client.c:
|
932 |
|
|
* src/network_support.c:
|
933 |
|
|
* src/inet_ntoa.c:
|
934 |
|
|
* src/inet_addr.c:
|
935 |
|
|
* src/getserv.c:
|
936 |
|
|
* src/getproto.c:
|
937 |
|
|
* src/dhcp_support.c:
|
938 |
|
|
* src/dhcp_prot.c:
|
939 |
|
|
* src/bootp_support.c:
|
940 |
|
|
|
941 |
|
|
* include/net/netdb.h:
|
942 |
|
|
* include/machine/endian.h:
|
943 |
|
|
* include/machine/ansi.h:
|
944 |
|
|
* include/arpa/tftp.h:
|
945 |
|
|
* include/arpa/telnet.h:
|
946 |
|
|
* include/arpa/nameser.h:
|
947 |
|
|
* include/arpa/inet.h:
|
948 |
|
|
* include/arpa/ftp.h:
|
949 |
|
|
* include/tftp_support.h:
|
950 |
|
|
* include/network.h:
|
951 |
|
|
* include/dhcp.h:
|
952 |
|
|
* include/bootp.h:
|
953 |
|
|
|
954 |
|
|
* cdl/net.cdl: New [common] networking package. Actual stacks
|
955 |
|
|
are implementations provided alongside this package.
|
956 |
|
|
|
957 |
|
|
# ####GPLCOPYRIGHTBEGIN####
|
958 |
|
|
# -------------------------------------------
|
959 |
|
|
# This file is part of eCos, the Embedded Configurable Operating System.
|
960 |
|
|
# Copyright (C) 2002, 2009 Free Software Foundation, Inc.
|
961 |
|
|
#
|
962 |
|
|
# This program is free software; you can redistribute it and/or modify
|
963 |
|
|
# it under the terms of the GNU General Public License as published by
|
964 |
|
|
# the Free Software Foundation; either version 2 or (at your option) any
|
965 |
|
|
# later version.
|
966 |
|
|
#
|
967 |
|
|
# This program is distributed in the hope that it will be useful, but
|
968 |
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
969 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
970 |
|
|
# General Public License for more details.
|
971 |
|
|
#
|
972 |
|
|
# You should have received a copy of the GNU General Public License
|
973 |
|
|
# along with this program; if not, write to the
|
974 |
|
|
# Free Software Foundation, Inc., 51 Franklin Street,
|
975 |
|
|
# Fifth Floor, Boston, MA 02110-1301, USA.
|
976 |
|
|
# -------------------------------------------
|
977 |
|
|
# ####GPLCOPYRIGHTEND####
|