1 2008-04-13 Andrew Lunn <andrew.lunn@ascom.ch>
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.
7 2007-12-21 Oyvind Harboe <oyvind.harboe@zylin.com>
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
14 2007-01-15 Gary Thomas <gary@mlbassoc.com>
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
20 2007-01-09 Jonathan Larmour <jifl@eCosCentric.com>
22 * doc/manpages/net/getaddrinfo.3: Remove obsolete comment about
23 not being thread-safe.
25 2007-01-07 Andrew Lunn <andrew.lunn@ascom.ch>
29 Added CDL to control the size of the stack used by
30 the DHCP management thread.
32 2006-12-18 Sergei Gavrikov <sg@sgs.gomel.by>
34 * tests/ga_server_test.c: Updated flags argument in call of
37 2006-05-25 Andrew Lunn <andrew.lunn@ascom.ch>
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.
44 2006-03-26 Andrew Lunn <andrew.lunn@ascom.ch>
46 * tests/nc_test_framework.h:
47 * tests/nc_test_master.c: Fix the compiler warnings when
50 2006-02-27 Jay Foster <jay@systech.com>
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.
60 2005-10-24 Andrew Lunn <andrew.lunn@ascom.ch>
62 * include/network.h: Include <string.h> to stop warnings.
64 2005-10-23 Andrew Lunn <andrew.lunn@ascom.ch>
66 * test/nc*_test_master.c: gettimeofday is now in POSIX
68 2005-10-13 Andrew Lunn <andrew.lunn@ascom.ch>
70 * docs/manpages/sys/socketpair.2: Removed this man page since
71 socketpair(2) is not supported.
73 2005-09-16 Andrew Lunn <andrew.lunn@ascom.ch>
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.
83 2005-09-05 David Vrabel <dvrabel@arcom.com>
84 Andrew Lunn <andrew.lunn@ascom.ch>
86 * src/tftp_client.c, include/tftp_support.h: const parameters
88 * doc/tcpip.sgml: Update for the above.
90 2005-08-02 Andrew Lunn <andrew.lunn@ascom.ch>
92 * tests/ping_lo_test.c (ping_host): Use socklen_t to avoid
94 * tests/tcp_lo_test.c (server): Ditto
95 * tests/udp_lo_test.c (server): Ditto
96 * tests/tcp_lo_select.c (server): Ditto
98 2005-07-29 Andrew Lunn <andrew.lunn@ascom.ch>
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
106 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch>
108 * src/tftp_server.c (tftpd_server): Fixed compiler warning about
109 type of argument to printf.
111 2004-10-04 Andrew Lunn <andrew.lunn@ascom.ch>
113 * include/tftp_support.h: Use the definitions of O_RDONLY and
114 O_WRONLY from fcntl.h instead of defining them ourselves.
116 2004-06-17 Oyvind Harboe <oyvind.harboe@zylin.com>
119 * cdl/net.cdl: Made tftp server stack size configurable via cdl.
121 2004-06-17 Andrew Lunn <andrew.lunn@ascom.ch>
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
128 2004-06-08 Andrew Lunn <andrew.lunn@ascom.ch>
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.
133 2004-05-04 Jay Foster <jay.foster@systech.com>
135 * src/bootp_support.c (get_bootp_option, show_bootp):
136 * src/dhcp_prot.c (scan_dhcp_size): Fixed bug that didn't handle
139 2004-04-19 Oyvind Harboe <oyvind.harboe@zylin.com>
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.
146 2004-04-19 John Dallaway <jld@ecoscentric.com>
148 * doc/tcpip.sgml: Remove reference to RedBoot documentation
149 which is now built separately.
151 2004-04-13 Sandeep Kumar <sandeep@codito.com>
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.
156 2004-04-13 Jay Foster <jay.foster@systech.com>
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.
161 2004-04-11 Andrew Lunn <andrew.lunn@ascom.ch>
163 * src/bootp_support.c:
164 * src/dhcp_prot.c: Close sockets before exiting so we don't leak
166 * src/dhcp_prot.c (new_lease): Use a smaller infinite so we don't get
169 2004-02-27 Robert Chenault <robertchenault@yahoo.com>
172 * src/dhcp_prot.c: Added CYGNUM_NET_DHCP_MIN_RETRY_TIME
174 2004-02-17 Matt Jerdonek <maj1224@yahoo.com>
176 * src/dhcp_prot.c: Fix initialization of DHCP sec field
178 2003-12-10 Gary Thomas <gary@mlbassoc.com>
180 * src/inet_ntoa.c: Add thread safe inet_ntoa_r() and change
181 inet_ntoa() to use it. Inspired by Matt Jerdonek.
183 * include/net/netdb.h:
184 * include/arpa/inet.h: Prototype for inet_ntoa_r()
186 2003-11-25 Manu Sharma <manu.sharma@ascom.com>
188 * tests/bridge.c: Changes to enable Spanning Tree Protocol if the
189 corresponding CDL component is enabled.
191 2003-11-24 Jani Monoses <jani@iv.ro>
193 * cdl/net.cdl: Close quote for test list.
195 2003-11-22 Andrew Lunn <andrew.lunn@ascom.ch>
197 * cdl/net.cdl: Added control for IPSEC
198 * doc/ipsec.sgml: General documentation of ipsec.
200 2003-10-30 Gary Thomas <gary@mlbassoc.com>
202 * tests/ping_test.c: Enable profiling if configured in - example use only.
204 2003-10-16 Jay Foster <jay@systech.com>
205 Andrew Lunn <andrew.lunn@ascom.ch>
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.
216 2003-10-21 Andrew Lunn <andrew.lunn@ascom.ch>
218 * src/dhcp_prot.c (set_default_dhcp_tags):
219 * src/bootp_support.c (show_bootp): Added support for TAG_NTP_SERVER
221 2003-10-13 Jay Foster <jay@systech.com>
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)
230 2003-10-12 Jay Foster <jay@systech.com>
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.
236 2003-10-09 Eric Doenges <Eric.Doenges@DynaPel.com>
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.
242 2003-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
244 * tests/bridge.c: Build the test when we have the bridge
245 handler code enabled and so presumably a bridge.
247 2003-09-16 Jay Foster <jay@systech.com>
249 * src/ifaddrs.c (getifaddrs): Fix up allocation and freeing of
250 work buffers and data buffers.
252 2003-07-29 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
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
260 2003-07-25 Andrew Lunn <andrew.lunn@ascom.ch>
262 * src/ipv6_routing_thread.c: Fix compiler warnings
263 * cd/net.cdl: The routing thread needs the posix package.
265 2003-07-24 Nick Garnett <nickg@balti.calivar.com>
267 * src/dhcp_prot.c: Added a declaration for cyg_arc4random() to
268 eliminate a compiler warning.
270 2003-07-15 Nick Garnett <nickg@balti.calivar.com>
272 * include/net/netdb.h: Added include for <sys/param.h>. the in.h
273 file included later needs this.
275 2003-05-23 Andrew Lunn <andrew.lunn@ascom.ch>
277 * src/network_support.c (init_all_network_interfaces): Allow IPv4
278 or IPv6 addresses to be used when configuring a default DNS
281 2003-05-21 Andrew Lunn <andrew.lunn@ascom.ch>
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.
287 2003-05-19 Michael Checky <Michael_Checky@ThermoKing.com>
288 Andrew Lunn <andrew.lunn@ascom.ch>
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.
295 2003-05-14 Bob Holmberg <bob_holmberg@yahoo.com>
297 * src/tftp_server.c (tftpd_read_file): Open the file for reading,
300 2003-05-09 Andrew Lunn <andrew.lunn@ascom.ch>
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.
307 2003-04-26 Andrew Lunn <andrew.lunn@ascom.ch>
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.
318 2003-04-24 Jonathan Larmour <jifl@eCosCentric.com>
320 * doc/tcpip.sgml: Fix some docbook errors only reported by certain
323 2003-04-24 Andrew Lunn <andrew.lunn@ascom.ch>
325 * src/tftp_client.c (tftp_client_put): Fixed compiler warning.
327 2003-04-21 Andrew Lunn <andrew.lunn@ascom.ch>
329 * src/getaddrinfo.c (getnameinfo): Fixed some endian issues with
330 port numbers and a typo. Added an interface to the DNS client for
332 * tests/addr_test.c (net_test): Added tests for getnameinfo. Fixed
335 2003-04-20 Andrew Lunn <andrew.lunn@ascom.ch>
337 * src/getaddrinfo.c (getaddrinfo): Virtually a re-write to
338 interface to the DNS client.
340 2003-04-14 Andrew Lunn <andrew.lunn@ascom.ch>
342 * include/net/netdb.h: const correctness.
344 2003-04-12 Andrew Lunn <andrew.lunn@ascom.ch>
346 * src/network_support.c (init_loopback_interface): Close the
347 socket when things go wrong otherwise we leak sockets.
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
355 2003-04-11 Jonathan Larmour <jifl@eCosCentric.com>
357 * tests/linux_echo.c: Renamed to....
358 * tests/host_echo.c: this new file. Change comment to indicate this.
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.
364 * doc/tcpip.sgml: Reflect above.
366 2003-04-11 Michael Checky <Michael_Checky@Thermoking.com>
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
376 2003-04-10 Andrew Lunn <andrew.lunn@ascom.ch>
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.
382 * src/tftp_client.c: Added support for IPv6. This requires two new
383 functions, tftp_client_{get|put} which are protocol version
385 * tests/tftp_client_test.c (tftp_test): Added tests which use IPv6
388 2003-04-07 Andrew Lunn <andrew.lunn@ascom.ch>
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.
397 2003-04-05 Andrew Lunn <andrew.lunn@ascom.ch>
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
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
416 2003-04-02 Andrew Lunn <andrew.lunn@ascom.ch>
418 * tests/ping_lo_test.c: Added IPv6 ping test.
419 * src/getproto.c: Added the protocol ipv6-icmp.
421 2003-04-02 Andrew Lunn <andrew.lunn@ascom.ch>
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.
428 2003-03-21 Nick Garnett <nickg@balti.calivar.com>
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.
434 * tests/dhcp_test2.c: Sorted out ifdefs so that this test builds
435 when DHCP is disabled.
437 * cdl/net.cdl: Reinstated dhcp_test2 into list of tests: it was
438 accidentally removed in the 2003-03-14 checkin.
440 2003-03-20 Mark Salter <msalter@redhat.com>
442 * cdl/net.cdl (CYGHWR_NET_DRIVERS): Removed to io/eth.
444 2003-03-18 Barton Meeks <bartonm2002@yahoo.com>
446 * src/tftp_client.c: Reduce size of initial request packet
447 for compatibility with some tftp servers.
449 2003-03-14 Nick Garnett <nickg@balti.calivar.com>
451 * cdl/net.cdl: Added CYGDBG_NET_SHOW_MBUFS option to turn on
452 accumulation and display of mbuf state information.
454 2003-03-06 Gary Thomas <gary@mlbassoc.com>
456 * src/getaddrinfo.c: Need to clear any addresses - malloc() can
457 return garbage which the stack desn't like.
459 2003-03-05 Gary Thomas <gary@mlbassoc.com>
461 * src/getaddrinfo.c: Allow getaddrinfo() to use DNS gethostbyXXX()
462 routines if DNS is present. Also, eliminate some debug messages.
464 2003-02-25 Andrew Lunn <andrew.lunn@ascom.ch>
466 * src/getserv.c: Added a servent structure for SNTP.
468 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
470 * cdl/net.cdl: Improve doc links.
472 * doc/prepare-manpages.sh: Generate namespaced IDs, without shouting.
473 * doc/tcpip-manpages.sgml: Regenerated.
475 2003-01-31 Jonathan Larmour <jifl@eCosCentric.com>
477 * cdl/net.cdl (CYGPKG_NET_BUILD_HW_TESTS): Requires eth hardware
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
483 2003-01-20 Gary Thomas <gary@mlbassoc.com>
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.
489 2003-01-18 Jonathan Larmour <jifl@eCosCentric.com>
491 * src/network_support.c (init_all_network_interfaces): Define buf
494 2003-01-10 Andrew Lunn <andrew.lunn@ascom.ch>
496 * src/network_support.c (init_all_network_interfaces): Added
497 support for a hard coded domain name. Inspired by Motoya Kurotsu.
499 2003-01-09 Andrew Lunn <andrew.lunn@ascom.ch>
501 * src/network_support.c (init_all_network_interfaces): Added
502 support for a hard coded, default DNS server address.
504 2003-01-12 Jonathan Larmour <jifl@eCosCentric.com>
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.
515 2003-01-04 Jonathan Larmour <jifl@eCosCentric.com>
517 * doc/tcpip.sgml: Use new entity name for tcpip manpages.
519 2002-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
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
525 2002-08-16 Gary Thomas <gthomas@ecoscentric.com> (on behalf of)
526 2002-08-16 Louis Hamilton <hamilton@redhat.com>
528 * src/ipv6_routing_thread.c: General improvements (from Red Hat)
529 for better compliance.
531 2002-08-14 Jonathan Larmour <jifl@ecoscentric.com>
533 * src/getserv.c: Include errno.h as errno is used.
535 2002-08-07 Gary Thomas <gary@chez-thomas.org>
539 * include/arpa/tftp.h: Make block numbers unsigned to handle files
542 2002-07-26 Gary Thomas <gary@chez-thomas.org>
543 2002-07-26 Ken Cox <jkc@redhat.com>
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
551 2002-07-10 Gary Thomas <gary@chez-thomas.org>
556 * src/bootp_support.c: Pedantic - make sure "errno" is defined.
558 2002-07-04 Jonathan Larmour <jlarmour@redhat.com>
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.
565 2002-06-20 Gary Thomas <gary@chez-thomas.org>
567 * src/inet_ntop.c: Fix build error when used with newer compilers.
569 2002-06-05 Gary Thomas <gary@chez-thomas.org>
571 * src/dhcp_prot.c (_dhcp_copy): New function used to better handle
572 replies that can be variable length.
574 2002-05-30 Gary Thomas <gthomas@redhat.com>
576 * tests/tcp_echo.c: Build with either stack (no libkern.h).
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.
581 2002-05-30 Jesper Skov <jskov@redhat.com>
583 * tests/flood.c (floodsend): Fixed warning.
585 2002-05-28 Jonathan Larmour <jlarmour@redhat.com>
587 * src/dhcp_prot.c (do_dhcp): xmit2 need not be static.
589 2002-05-27 Gary Thomas <gthomas@redhat.com>
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.
595 2002-05-24 Gary Thomas <gthomas@redhat.com>
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).
601 2002-05-21 Jesper Skov <jskov@redhat.com>
603 * include/net/netdb.h: Include netinet/in.h for the in_addr use in
606 2002-05-14 Jesper Skov <jskov@redhat.com>
608 * src/tftp_dummy_file.c: Fixed warnings.
610 * src/getaddrinfo.c: Fixed warnings.
612 2002-04-26 Gary Thomas <gthomas@redhat.com>
614 * cdl/net.cdl: Add option for making random IP packet IDs random.
616 2002-04-22 Gary Thomas <gthomas@redhat.com>
618 * src/ifaddrs.c: Reorg include files - remove warnings.
620 2002-04-17 Gary Thomas <gthomas@redhat.com>
622 * src/ipv6_routing_thread.c: New function - separate thread used to
623 send router soliciation messages periodically.
626 * src/network_support.c (init_all_network_interfaces):
627 Support IPv6 routing thread.
629 * src/getaddrinfo.c (_getaddr): Set ai_addrlen fields.
631 2002-04-11 Gary Thomas <gthomas@redhat.com>
633 * tests/ga_server_test.c:
634 * tests/nc6_test_slave.c: Fix handling of multiple sockets.
636 2002-04-05 Gary Thomas <gthomas@redhat.com>
638 * tests/ga_server_test.c: Use getnameinfo().
640 * include/net/netdb.h:
641 * src/getaddrinfo.c (getnameinfo): New [minimal] implementation.
643 2002-04-04 Gary Thomas <gthomas@redhat.com>
645 * src/network_support.c (build_bootp_record): Query device for hardware
646 address (required change in function profile). Bug #59369
648 2002-03-27 Gary Thomas <gthomas@redhat.com>
650 * tests/make.linux: Add slave tests.
652 * tests/nc_test_framework.h:
653 * tests/nc6_test_master.c:
654 * tests/nc6_test_slave.c: Fixing build problems on Linux & FreeBSD.
656 * include/machine/types.h: Added [empty to keep OpenBSD stack happy].
658 2002-03-27 Jonathan Larmour <jlarmour@redhat.com>
660 * doc/tcpip.sgml: Place TCP/IP manpages here.
662 2002-03-25 Gary Thomas <gthomas@redhat.com>
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!)
667 * tests/nc6_test_slave.c: Print memory statistics on failures and
668 at the end of each test.
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.
675 * src/inet_addr.c: Add cast to isascii() macro to avoid warnings.
677 2002-03-21 Gary Thomas <gthomas@redhat.com>
679 * tests/nc6_test_slave.c: Minor cleanups - allow building without IPv6.
681 2002-03-20 Gary Thomas <gthomas@redhat.com>
683 * tests/tcp_source.c:
684 * tests/tcp_sink.c: Fix build problems on Linux (no sin_len).
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.
691 2002-03-19 Gary Thomas <gthomas@redhat.com>
693 * tests/addr_test.c: New test of getaddrinfo() functionality.
695 * src/inet_ntop.c (_inet_port):
696 * src/getaddrinfo.c (_getaddr): Fix some byte-order problems.
698 * src/network_support.c: Fix build when PCMCIA defined.
700 * src/bootp_support.c (do_bootp):
701 * include/network.h: route_reinit renamed cyg_route_reinit.
703 * include/bootp.h: Clean up warnings (add prototypes, etc).
705 2002-03-12 Hugo Tyson <hmt@redhat.com>
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
713 2002-03-11 Hugo Tyson <hmt@redhat.com>
715 * cdl/net.cdl: Add dhcp_test2 to the list.
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.
722 2002-03-08 Gary Thomas <gthomas@redhat.com>
724 * tests/tcp_lo_test.c (server): Need to set 'len', otherwise
725 the source socket address is undefined.
727 2002-03-07 Gary Thomas <gthomas@redhat.com>
729 * src/dhcp_prot.c: Some [internal] function names have changed.
730 In particular, route_reinit() and arc4random().
732 2002-03-06 Gary Thomas <gthomas@redhat.com>
734 * tests/ga_server_test.c: New test - used to exercise getaddrinfo().
736 * src/inet_pton.c: Minor source code cleanups.
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).
742 * include/net/netdb.h:
743 * include/network.h: Reorg - network address functions are now
746 * cdl/net.cdl: Add getaddrinfo support.
747 * src/getaddrinfo.c: New file.
749 * include/arpa/nameser.h: Fix some warnings.
751 2002-02-26 Hugo Tyson <hmt@redhat.com>
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.
760 2002-02-22 Hugo Tyson <hmt@redhat.com>
762 * doc/tcpip.sgml: New file. Separated generic documentation
763 of network support from the specific stack docs. Also much
764 tidying and improvement.
766 2002-02-19 Gary Thomas <gthomas@redhat.com>
768 * tests/ipv6_server_test.c: New file. Test TCP/IPv6 sockets.
770 * src/bootp_support.c:
771 * src/inet_pton.c: Remove some warnings.
773 * src/inet_ntop.c: New file().
775 * include/network.h: Add prototypes for inet_ntop() and
776 inet_pton() - generic [numeric] address support.
778 2002-02-18 Gary Thomas <gthomas@redhat.com>
781 Add new interface CYGINT_IO_ETH_MULTICAST which is used to
782 insure that drivers support multicast addresses if IPv6 is used.
784 2002-02-18 Gary Thomas <gthomas@redhat.com>
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.
790 2002-02-16 Gary Thomas <gthomas@redhat.com>
793 New file - parse from presentation (ASCII) to network.
794 Useful for handling IPv6 addresses.
796 2002-02-15 Gary Thomas <gthomas@redhat.com>
798 * src/network_support.c (init_all_network_interfaces): Set IPv6
799 static addresses if configured.
801 * src/bootp_support.c (init_net_IPv6): New function used to set
802 static IPv6 addresses.
804 * cdl/net.cdl: Improve layering to better support multiple
805 stacks. Move IPv4/IPv6 control to this level.
807 2002-02-01 Hugo Tyson <hmt@redhat.com>
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.
812 2002-02-01 Gary Thomas <gthomas@redhat.com>
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.
831 2002-01-31 Hugo Tyson <hmt@redhat.com>
833 * src/dhcp_prot.c (do_dhcp): Also check the ESA in any received
834 answer matches, in case of an XID clash anyway.
836 2002-01-31 Hugo Tyson <hmt@redhat.com>
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
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.
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
864 2002-01-29 Gary Thomas <gthomas@redhat.com>
866 * tests/server_test.c (server_test): Add message for timeout.
868 2002-01-28 Gary Thomas <gthomas@redhat.com>
870 * tests/udp_lo_test.c:
871 * tests/tftp_server_test.c:
872 * tests/tftp_client_test.c:
873 * tests/tcp_source.c:
875 * tests/tcp_lo_test.c:
876 * tests/tcp_lo_select.c:
878 * tests/socket_test.c:
879 * tests/set_mac_address.c:
880 * tests/server_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:
889 * tests/linux_echo.c:
896 * src/tftp_dummy_file.c:
898 * src/network_support.c:
903 * src/dhcp_support.c:
905 * src/bootp_support.c:
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:
920 * cdl/net.cdl: New [common] networking package. Actual stacks
921 are implementations provided alongside this package.
923 #####ECOSPDCOPYRIGHTBEGIN####
925 # Copyright (C) 2002 Red Hat, Inc.
926 # All Rights Reserved.
928 # Permission is granted to use, copy, modify and redistribute this
931 #####ECOSPDCOPYRIGHTEND####