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