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