1 2005-08-02 Andrew Lunn <andrew.lunn@ascom.ch>
3 * tests/ping_lo_test.c (ping_host): Use socklen_t to avoid
5 * tests/tcp_lo_test.c (server): Ditto
6 * tests/udp_lo_test.c (server): Ditto
7 * tests/tcp_lo_select.c (server): Ditto
9 2005-07-29 Andrew Lunn <andrew.lunn@ascom.ch>
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
17 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch>
19 * src/tftp_server.c (tftpd_server): Fixed compiler warning about
20 type of argument to printf.
22 2004-10-04 Andrew Lunn <andrew.lunn@ascom.ch>
24 * include/tftp_support.h: Use the definitions of O_RDONLY and
25 O_WRONLY from fcntl.h instead of defining them ourselves.
27 2004-06-17 Oyvind Harboe <oyvind.harboe@zylin.com>
30 * cdl/net.cdl: Made tftp server stack size configurable via cdl.
32 2004-06-17 Andrew Lunn <andrew.lunn@ascom.ch>
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
39 2004-06-08 Andrew Lunn <andrew.lunn@ascom.ch>
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.
44 2004-05-04 Jay Foster <jay.foster@systech.com>
46 * src/bootp_support.c (get_bootp_option, show_bootp):
47 * src/dhcp_prot.c (scan_dhcp_size): Fixed bug that didn't handle
50 2004-04-19 Oyvind Harboe <oyvind.harboe@zylin.com>
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.
57 2004-04-19 John Dallaway <jld@ecoscentric.com>
59 * doc/tcpip.sgml: Remove reference to RedBoot documentation
60 which is now built separately.
62 2004-04-13 Sandeep Kumar <sandeep@codito.com>
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.
67 2004-04-13 Jay Foster <jay.foster@systech.com>
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.
72 2004-04-11 Andrew Lunn <andrew.lunn@ascom.ch>
74 * src/bootp_support.c:
75 * src/dhcp_prot.c: Close sockets before exiting so we don't leak
77 * src/dhcp_prot.c (new_lease): Use a smaller infinite so we don't get
80 2004-02-27 Robert Chenault <robertchenault@yahoo.com>
83 * src/dhcp_prot.c: Added CYGNUM_NET_DHCP_MIN_RETRY_TIME
85 2004-02-17 Matt Jerdonek <maj1224@yahoo.com>
87 * src/dhcp_prot.c: Fix initialization of DHCP sec field
89 2003-12-10 Gary Thomas <gary@mlbassoc.com>
91 * src/inet_ntoa.c: Add thread safe inet_ntoa_r() and change
92 inet_ntoa() to use it. Inspired by Matt Jerdonek.
94 * include/net/netdb.h:
95 * include/arpa/inet.h: Prototype for inet_ntoa_r()
97 2003-11-25 Manu Sharma <manu.sharma@ascom.com>
99 * tests/bridge.c: Changes to enable Spanning Tree Protocol if the
100 corresponding CDL component is enabled.
102 2003-11-24 Jani Monoses <jani@iv.ro>
104 * cdl/net.cdl: Close quote for test list.
106 2003-11-22 Andrew Lunn <andrew.lunn@ascom.ch>
108 * cdl/net.cdl: Added control for IPSEC
109 * doc/ipsec.sgml: General documentation of ipsec.
111 2003-10-30 Gary Thomas <gary@mlbassoc.com>
113 * tests/ping_test.c: Enable profiling if configured in - example use only.
115 2003-10-16 Jay Foster <jay@systech.com>
116 Andrew Lunn <andrew.lunn@ascom.ch>
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.
127 2003-10-21 Andrew Lunn <andrew.lunn@ascom.ch>
129 * src/dhcp_prot.c (set_default_dhcp_tags):
130 * src/bootp_support.c (show_bootp): Added support for TAG_NTP_SERVER
132 2003-10-13 Jay Foster <jay@systech.com>
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)
141 2003-10-12 Jay Foster <jay@systech.com>
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.
147 2003-10-09 Eric Doenges <Eric.Doenges@DynaPel.com>
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.
153 2003-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
155 * tests/bridge.c: Build the test when we have the bridge
156 handler code enabled and so presumably a bridge.
158 2003-09-16 Jay Foster <jay@systech.com>
160 * src/ifaddrs.c (getifaddrs): Fix up allocation and freeing of
161 work buffers and data buffers.
163 2003-07-29 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
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
171 2003-07-25 Andrew Lunn <andrew.lunn@ascom.ch>
173 * src/ipv6_routing_thread.c: Fix compiler warnings
174 * cd/net.cdl: The routing thread needs the posix package.
176 2003-07-24 Nick Garnett <nickg@balti.calivar.com>
178 * src/dhcp_prot.c: Added a declaration for cyg_arc4random() to
179 eliminate a compiler warning.
181 2003-07-15 Nick Garnett <nickg@balti.calivar.com>
183 * include/net/netdb.h: Added include for <sys/param.h>. the in.h
184 file included later needs this.
186 2003-05-23 Andrew Lunn <andrew.lunn@ascom.ch>
188 * src/network_support.c (init_all_network_interfaces): Allow IPv4
189 or IPv6 addresses to be used when configuring a default DNS
192 2003-05-21 Andrew Lunn <andrew.lunn@ascom.ch>
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.
198 2003-05-19 Michael Checky <Michael_Checky@ThermoKing.com>
199 Andrew Lunn <andrew.lunn@ascom.ch>
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.
206 2003-05-14 Bob Holmberg <bob_holmberg@yahoo.com>
208 * src/tftp_server.c (tftpd_read_file): Open the file for reading,
211 2003-05-09 Andrew Lunn <andrew.lunn@ascom.ch>
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.
218 2003-04-26 Andrew Lunn <andrew.lunn@ascom.ch>
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.
229 2003-04-24 Jonathan Larmour <jifl@eCosCentric.com>
231 * doc/tcpip.sgml: Fix some docbook errors only reported by certain
234 2003-04-24 Andrew Lunn <andrew.lunn@ascom.ch>
236 * src/tftp_client.c (tftp_client_put): Fixed compiler warning.
238 2003-04-21 Andrew Lunn <andrew.lunn@ascom.ch>
240 * src/getaddrinfo.c (getnameinfo): Fixed some endian issues with
241 port numbers and a typo. Added an interface to the DNS client for
243 * tests/addr_test.c (net_test): Added tests for getnameinfo. Fixed
246 2003-04-20 Andrew Lunn <andrew.lunn@ascom.ch>
248 * src/getaddrinfo.c (getaddrinfo): Virtually a re-write to
249 interface to the DNS client.
251 2003-04-14 Andrew Lunn <andrew.lunn@ascom.ch>
253 * include/net/netdb.h: const correctness.
255 2003-04-12 Andrew Lunn <andrew.lunn@ascom.ch>
257 * src/network_support.c (init_loopback_interface): Close the
258 socket when things go wrong otherwise we leak sockets.
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
266 2003-04-11 Jonathan Larmour <jifl@eCosCentric.com>
268 * tests/linux_echo.c: Renamed to....
269 * tests/host_echo.c: this new file. Change comment to indicate this.
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.
275 * doc/tcpip.sgml: Reflect above.
277 2003-04-11 Michael Checky <Michael_Checky@Thermoking.com>
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
287 2003-04-10 Andrew Lunn <andrew.lunn@ascom.ch>
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.
293 * src/tftp_client.c: Added support for IPv6. This requires two new
294 functions, tftp_client_{get|put} which are protocol version
296 * tests/tftp_client_test.c (tftp_test): Added tests which use IPv6
299 2003-04-07 Andrew Lunn <andrew.lunn@ascom.ch>
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.
308 2003-04-05 Andrew Lunn <andrew.lunn@ascom.ch>
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
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
327 2003-04-02 Andrew Lunn <andrew.lunn@ascom.ch>
329 * tests/ping_lo_test.c: Added IPv6 ping test.
330 * src/getproto.c: Added the protocol ipv6-icmp.
332 2003-04-02 Andrew Lunn <andrew.lunn@ascom.ch>
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.
339 2003-03-21 Nick Garnett <nickg@balti.calivar.com>
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.
345 * tests/dhcp_test2.c: Sorted out ifdefs so that this test builds
346 when DHCP is disabled.
348 * cdl/net.cdl: Reinstated dhcp_test2 into list of tests: it was
349 accidentally removed in the 2003-03-14 checkin.
351 2003-03-20 Mark Salter <msalter@redhat.com>
353 * cdl/net.cdl (CYGHWR_NET_DRIVERS): Removed to io/eth.
355 2003-03-18 Barton Meeks <bartonm2002@yahoo.com>
357 * src/tftp_client.c: Reduce size of initial request packet
358 for compatibility with some tftp servers.
360 2003-03-14 Nick Garnett <nickg@balti.calivar.com>
362 * cdl/net.cdl: Added CYGDBG_NET_SHOW_MBUFS option to turn on
363 accumulation and display of mbuf state information.
365 2003-03-06 Gary Thomas <gary@mlbassoc.com>
367 * src/getaddrinfo.c: Need to clear any addresses - malloc() can
368 return garbage which the stack desn't like.
370 2003-03-05 Gary Thomas <gary@mlbassoc.com>
372 * src/getaddrinfo.c: Allow getaddrinfo() to use DNS gethostbyXXX()
373 routines if DNS is present. Also, eliminate some debug messages.
375 2003-02-25 Andrew Lunn <andrew.lunn@ascom.ch>
377 * src/getserv.c: Added a servent structure for SNTP.
379 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
381 * cdl/net.cdl: Improve doc links.
383 * doc/prepare-manpages.sh: Generate namespaced IDs, without shouting.
384 * doc/tcpip-manpages.sgml: Regenerated.
386 2003-01-31 Jonathan Larmour <jifl@eCosCentric.com>
388 * cdl/net.cdl (CYGPKG_NET_BUILD_HW_TESTS): Requires eth hardware
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
394 2003-01-20 Gary Thomas <gary@mlbassoc.com>
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.
400 2003-01-18 Jonathan Larmour <jifl@eCosCentric.com>
402 * src/network_support.c (init_all_network_interfaces): Define buf
405 2003-01-10 Andrew Lunn <andrew.lunn@ascom.ch>
407 * src/network_support.c (init_all_network_interfaces): Added
408 support for a hard coded domain name. Inspired by Motoya Kurotsu.
410 2003-01-09 Andrew Lunn <andrew.lunn@ascom.ch>
412 * src/network_support.c (init_all_network_interfaces): Added
413 support for a hard coded, default DNS server address.
415 2003-01-12 Jonathan Larmour <jifl@eCosCentric.com>
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.
426 2003-01-04 Jonathan Larmour <jifl@eCosCentric.com>
428 * doc/tcpip.sgml: Use new entity name for tcpip manpages.
430 2002-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
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
436 2002-08-16 Gary Thomas <gthomas@ecoscentric.com> (on behalf of)
437 2002-08-16 Louis Hamilton <hamilton@redhat.com>
439 * src/ipv6_routing_thread.c: General improvements (from Red Hat)
440 for better compliance.
442 2002-08-14 Jonathan Larmour <jifl@ecoscentric.com>
444 * src/getserv.c: Include errno.h as errno is used.
446 2002-08-07 Gary Thomas <gary@chez-thomas.org>
450 * include/arpa/tftp.h: Make block numbers unsigned to handle files
453 2002-07-26 Gary Thomas <gary@chez-thomas.org>
454 2002-07-26 Ken Cox <jkc@redhat.com>
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
462 2002-07-10 Gary Thomas <gary@chez-thomas.org>
467 * src/bootp_support.c: Pedantic - make sure "errno" is defined.
469 2002-07-04 Jonathan Larmour <jlarmour@redhat.com>
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.
476 2002-06-20 Gary Thomas <gary@chez-thomas.org>
478 * src/inet_ntop.c: Fix build error when used with newer compilers.
480 2002-06-05 Gary Thomas <gary@chez-thomas.org>
482 * src/dhcp_prot.c (_dhcp_copy): New function used to better handle
483 replies that can be variable length.
485 2002-05-30 Gary Thomas <gthomas@redhat.com>
487 * tests/tcp_echo.c: Build with either stack (no libkern.h).
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.
492 2002-05-30 Jesper Skov <jskov@redhat.com>
494 * tests/flood.c (floodsend): Fixed warning.
496 2002-05-28 Jonathan Larmour <jlarmour@redhat.com>
498 * src/dhcp_prot.c (do_dhcp): xmit2 need not be static.
500 2002-05-27 Gary Thomas <gthomas@redhat.com>
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.
506 2002-05-24 Gary Thomas <gthomas@redhat.com>
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).
512 2002-05-21 Jesper Skov <jskov@redhat.com>
514 * include/net/netdb.h: Include netinet/in.h for the in_addr use in
517 2002-05-14 Jesper Skov <jskov@redhat.com>
519 * src/tftp_dummy_file.c: Fixed warnings.
521 * src/getaddrinfo.c: Fixed warnings.
523 2002-04-26 Gary Thomas <gthomas@redhat.com>
525 * cdl/net.cdl: Add option for making random IP packet IDs random.
527 2002-04-22 Gary Thomas <gthomas@redhat.com>
529 * src/ifaddrs.c: Reorg include files - remove warnings.
531 2002-04-17 Gary Thomas <gthomas@redhat.com>
533 * src/ipv6_routing_thread.c: New function - separate thread used to
534 send router soliciation messages periodically.
537 * src/network_support.c (init_all_network_interfaces):
538 Support IPv6 routing thread.
540 * src/getaddrinfo.c (_getaddr): Set ai_addrlen fields.
542 2002-04-11 Gary Thomas <gthomas@redhat.com>
544 * tests/ga_server_test.c:
545 * tests/nc6_test_slave.c: Fix handling of multiple sockets.
547 2002-04-05 Gary Thomas <gthomas@redhat.com>
549 * tests/ga_server_test.c: Use getnameinfo().
551 * include/net/netdb.h:
552 * src/getaddrinfo.c (getnameinfo): New [minimal] implementation.
554 2002-04-04 Gary Thomas <gthomas@redhat.com>
556 * src/network_support.c (build_bootp_record): Query device for hardware
557 address (required change in function profile). Bug #59369
559 2002-03-27 Gary Thomas <gthomas@redhat.com>
561 * tests/make.linux: Add slave tests.
563 * tests/nc_test_framework.h:
564 * tests/nc6_test_master.c:
565 * tests/nc6_test_slave.c: Fixing build problems on Linux & FreeBSD.
567 * include/machine/types.h: Added [empty to keep OpenBSD stack happy].
569 2002-03-27 Jonathan Larmour <jlarmour@redhat.com>
571 * doc/tcpip.sgml: Place TCP/IP manpages here.
573 2002-03-25 Gary Thomas <gthomas@redhat.com>
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!)
578 * tests/nc6_test_slave.c: Print memory statistics on failures and
579 at the end of each test.
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.
586 * src/inet_addr.c: Add cast to isascii() macro to avoid warnings.
588 2002-03-21 Gary Thomas <gthomas@redhat.com>
590 * tests/nc6_test_slave.c: Minor cleanups - allow building without IPv6.
592 2002-03-20 Gary Thomas <gthomas@redhat.com>
594 * tests/tcp_source.c:
595 * tests/tcp_sink.c: Fix build problems on Linux (no sin_len).
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.
602 2002-03-19 Gary Thomas <gthomas@redhat.com>
604 * tests/addr_test.c: New test of getaddrinfo() functionality.
606 * src/inet_ntop.c (_inet_port):
607 * src/getaddrinfo.c (_getaddr): Fix some byte-order problems.
609 * src/network_support.c: Fix build when PCMCIA defined.
611 * src/bootp_support.c (do_bootp):
612 * include/network.h: route_reinit renamed cyg_route_reinit.
614 * include/bootp.h: Clean up warnings (add prototypes, etc).
616 2002-03-12 Hugo Tyson <hmt@redhat.com>
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
624 2002-03-11 Hugo Tyson <hmt@redhat.com>
626 * cdl/net.cdl: Add dhcp_test2 to the list.
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.
633 2002-03-08 Gary Thomas <gthomas@redhat.com>
635 * tests/tcp_lo_test.c (server): Need to set 'len', otherwise
636 the source socket address is undefined.
638 2002-03-07 Gary Thomas <gthomas@redhat.com>
640 * src/dhcp_prot.c: Some [internal] function names have changed.
641 In particular, route_reinit() and arc4random().
643 2002-03-06 Gary Thomas <gthomas@redhat.com>
645 * tests/ga_server_test.c: New test - used to exercise getaddrinfo().
647 * src/inet_pton.c: Minor source code cleanups.
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).
653 * include/net/netdb.h:
654 * include/network.h: Reorg - network address functions are now
657 * cdl/net.cdl: Add getaddrinfo support.
658 * src/getaddrinfo.c: New file.
660 * include/arpa/nameser.h: Fix some warnings.
662 2002-02-26 Hugo Tyson <hmt@redhat.com>
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.
671 2002-02-22 Hugo Tyson <hmt@redhat.com>
673 * doc/tcpip.sgml: New file. Separated generic documentation
674 of network support from the specific stack docs. Also much
675 tidying and improvement.
677 2002-02-19 Gary Thomas <gthomas@redhat.com>
679 * tests/ipv6_server_test.c: New file. Test TCP/IPv6 sockets.
681 * src/bootp_support.c:
682 * src/inet_pton.c: Remove some warnings.
684 * src/inet_ntop.c: New file().
686 * include/network.h: Add prototypes for inet_ntop() and
687 inet_pton() - generic [numeric] address support.
689 2002-02-18 Gary Thomas <gthomas@redhat.com>
692 Add new interface CYGINT_IO_ETH_MULTICAST which is used to
693 insure that drivers support multicast addresses if IPv6 is used.
695 2002-02-18 Gary Thomas <gthomas@redhat.com>
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.
701 2002-02-16 Gary Thomas <gthomas@redhat.com>
704 New file - parse from presentation (ASCII) to network.
705 Useful for handling IPv6 addresses.
707 2002-02-15 Gary Thomas <gthomas@redhat.com>
709 * src/network_support.c (init_all_network_interfaces): Set IPv6
710 static addresses if configured.
712 * src/bootp_support.c (init_net_IPv6): New function used to set
713 static IPv6 addresses.
715 * cdl/net.cdl: Improve layering to better support multiple
716 stacks. Move IPv4/IPv6 control to this level.
718 2002-02-01 Hugo Tyson <hmt@redhat.com>
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.
723 2002-02-01 Gary Thomas <gthomas@redhat.com>
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.
742 2002-01-31 Hugo Tyson <hmt@redhat.com>
744 * src/dhcp_prot.c (do_dhcp): Also check the ESA in any received
745 answer matches, in case of an XID clash anyway.
747 2002-01-31 Hugo Tyson <hmt@redhat.com>
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
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.
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
775 2002-01-29 Gary Thomas <gthomas@redhat.com>
777 * tests/server_test.c (server_test): Add message for timeout.
779 2002-01-28 Gary Thomas <gthomas@redhat.com>
781 * tests/udp_lo_test.c:
782 * tests/tftp_server_test.c:
783 * tests/tftp_client_test.c:
784 * tests/tcp_source.c:
786 * tests/tcp_lo_test.c:
787 * tests/tcp_lo_select.c:
789 * tests/socket_test.c:
790 * tests/set_mac_address.c:
791 * tests/server_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:
800 * tests/linux_echo.c:
807 * src/tftp_dummy_file.c:
809 * src/network_support.c:
814 * src/dhcp_support.c:
816 * src/bootp_support.c:
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:
831 * cdl/net.cdl: New [common] networking package. Actual stacks
832 are implementations provided alongside this package.
834 #####ECOSPDCOPYRIGHTBEGIN####
836 # Copyright (C) 2002 Red Hat, Inc.
837 # All Rights Reserved.
839 # Permission is granted to use, copy, modify and redistribute this
842 #####ECOSPDCOPYRIGHTEND####