changelog
来自「eCos操作系统源码」· 代码 · 共 1,734 行 · 第 1/5 页
TXT
1,734 行
2000-07-13 Hugo Tyson <hmt@cygnus.co.uk> * tests/dhcp_test.c: * tests/flood.c: * tests/ftp_test.c: * tests/nc_test_master.c: * tests/nc_test_slave.c: * tests/ping_lo_test.c: * tests/ping_test.c: * tests/server_test.c: * tests/set_mac_address.c: * tests/tcp_echo.c: * tests/tftp_client_test.c: * tests/tftp_server_test.c: Up the stack size to cope with full DHCP initialization in init_all_network_interfaces(). 2000-07-13 Hugo Tyson <hmt@cygnus.co.uk> * cdl/net.cdl: Add DHCP enable and interface-specific controls. * include/dhcp.h: New file: describe the DHCP APIs and behaviour, as well as some internal APIs that are also available. * src/lib/dhcp_support.c: New file: the surrounding management routines, a bit like network_support.c, which know about multiple interfaces and so on. * src/lib/dhcp_prot.c: New file: the interface-independent DHCP protocol machine, which is called from dhcp_support.c routines and init_all_network_interfaces() in network_support.c * include/bootp.h (struct bootp): Make the packet bigger if DHCP so that a mininal DHCP packet will fit. * src/lib/bootp_support.c (do_bootp): If no reply, fail gracefully and tidy up so that other interfaces can be upbrung. (show_bootp): Tell us a lot more about DHCP-specific info in the packet structure. (get_bootp_option): be aware of DHCP extensions to re-use file and sname fields for options. * src/lib/network_support.c (init_all_network_interfaces): Call do_dhcp() rather than do_bootp() if so configured, and initialize the per-interface DHCP state variables accordingly. * tests/dhcp_test.c (net_test): New test file that diddles the DHCP machine while doing a ping test.2000-07-11 Gary Thomas <gthomas@redhat.com> * include/netdev.h: Add single-inclusion fences. * include/sys/param.h: Add traced versions of splx() routines, selectable by a configuration option. * src/ecos/support.c: Rework splx() emulation routines to be more robust and realtime friendly. * src/lib/network_support.c (init_all_network_interfaces): Add minimal support for PCMCIA based devices.2000-07-04 Hugo Tyson <hmt@cygnus.co.uk> * include/bootp.h: Fix namespace pollution from "#define int32 int" - it fights against application code too much.2000-07-04 Jonathan Larmour <jlarmour@redhat.co.uk> * cdl/net.cdl: Package requires CYGPKG_MEMALLOC2000-06-26 Hugo Tyson <hmt@cygnus.co.uk> * tests/ping_test.c (net_test): Added use of the CYGPKG_NET_TESTS_USE_RT_TEST_HARNESS stuff now that the test passes (consequent on the change below); also use larger ping packets now that that is working also. * tests/tcp_echo.c (echo_test): Added use of the CYGPKG_NET_TESTS_USE_RT_TEST_HARNESS stuff now that the test passes (consequent on the change below).2000-06-26 Hugo Tyson <hmt@cygnus.co.uk> * src/ecos/support.c (cyg_splnet): Use the scheduler lock and a mutex instead of disable-interrupts for SPLX type processing. A mutex is used at splsoftnet because that is client threads - we do not want them to pre-empt the rest of the app. This enables the real-time response testing for the EBSA285 to succeed (interrupts every 1mS, DSRs delayed by at most 2mS).2000-06-23 Hugo Tyson <hmt@cygnus.co.uk> * src/ecos/support.c (cyg_net_mbuf_alloc, cyg_kmem_init): Align the mbuf pool to MSIZE [128] bytes. That way dtom() works, nasty though it is. That's needed for ip reassembly in ip_input.c, when dealing with large icmp-layer packets eg. ping -s 2000 ...2000-06-21 Hugo Tyson <hmt@cygnus.co.uk> * include/lib/libkern/libkern.h: Do not define assert multiple times; guarded by __ECOS. * include/sys/param.h (MAX,MIN): Only define if undef.2000-06-21 Hugo Tyson <hmt@cygnus.co.uk> * cdl/net.cdl: Build the new tests; in fact build them unconditionally. * src/lib/network_support.c (init_all_network_interfaces): Initialize loopback device[s] using init_loopback_interface(), providing a sensible default route et al. Multiple devs: lo1 will be 127.0.*1*.1, and so on; class C netmasks will be used. init_all_network_interfaces() is also made thread-safe as well as idempotent, so other threads (or daemons) can call it to make sure the net is up. * src/ecos/support.c (cyg_net_init): Add a call to loopattach() if there are indeed loopback dev(s) configured. This does the equivalent of the init of a device from the table, but simpler. * tests/udp_lo_test.c (udp_server): New testcase... * tests/tcp_lo_select.c (tcp_server): New testcase... * tests/tcp_lo_test.c (tcp_client): New testcase... * tests/ping_lo_test.c (net_test): New testcase, unconditionally built loopback device test. Will run on platforms with no network interfaces.2000-06-19 Nick Garnett <nickg@cygnus.co.uk> * src/ecos/support.c: * include/netdev.h: Converted to use of new table construction mechanism.2000-06-16 Jonathan Larmour <jlarmour@redhat.co.uk> * include/bootp.h: Remove RCS id tag * include/netinet/ip_auth.h: Ditto * include/netinet/ip_fil.h: Ditto * include/netinet/ip_fil_compat.h: Ditto * include/netinet/ip_frag.h: Ditto * include/netinet/ip_nat.h: Ditto * include/netinet/ip_proxy.h: Ditto * include/netinet/ip_state.h: Ditto2000-06-15 Nick Garnett <nickg@cygnus.co.uk> * src/sys/kern/sockio.c: Added cyg_selinit() calls to bad_socket() and bsd_accept() functions. * src/ecos/support.c (cyg_tsleep): Changed tests on wakeup from semaphore waits to enable return of EINTR results.2000-06-09 Nick Garnett <nickg@cygnus.co.uk> * src/sys/net/if_loop.c: Substituted sprintf() for a straight strcpy() when initalizing if name. This currently only works for one loopback interface. However, there seems little need to have more than one. * src/sys/kern/sockio.c (bsd_select): Added select support. * include/sys/time.h: Moved timeval structure definition to isoinfra time.h header since it is needed by the select() API. * include/sys/select.h: Added option to use fileio select mechanism if it is present. * src/ecos/support.c (cyg_net_init): Added code to bring up the loopback interface. This is to help with testing on platforms without network hardware.2000-06-08 Hugo Tyson <hmt@cygnus.co.uk> * include/netinet/ip_var.h: Export ipforwarding as well as ip_defttl for monitoring applications.2000-06-07 Nick Garnett <nickg@cygnus.co.uk> * tests/tcp_echo.c: * tests/socket_test.c: * tests/server_test.c: * tests/ping_test.c: * tests/nc_test_master.c: * tests/nc_test_slave.c: * tests/ftp_test.c: Removed dependence of these programs on STDIO. For most this simply required the use of a diag_printf() based perror() clone is CYGPKG_LIBC_STDIO is not defined. For server_test is also required the substitution of sprintf() with some more primitive string functions. * src/sys/netinet/ip_input.c: Rewrote inet_ntoa() to not use sprintf(). This was the only place in the TCP/IP stack that was dependent on a STDIO function. We really should avoid building this kind of casual dependency into the code. * src/sys/kern/sockio.c: This new file contain code to support the fileio package. So far only a few of these functions have actually been tested. * include/sys/kernel.h (time): The time variable clashes with the C library time() function. To prevent this it is renamed ktime, and a #define allows "kernel" code to continue accessing it as time. * src/ecos/support.c: Added definition for ktime variable, as described above. I could not find any definition for struct timeval time. I have a nasty suspicion that it was using the time() function - let's hope that no code that actually uses this has been run. * src/lib/bootp_support.c: Another substitution of a diag_printf() based perror() clone when STDIO is absent. * include/sys/bsdtypes.h: This is the original include/sys/types.h. Renamed to avoid clashing with <sys/types.h> defined by the isoinfra package. * include/sys/types.h: Renamed to bsdtypes.h. * include/machine/limits.h: Various changes to make these headers play nicely with those defined in isoinfra package. * include/network.h: Added include of <pkgconf/system.h>. Fixed prototypes of functions here to match POSIX specifications. * cdl/net.cdl: Split list of files to compile into the common set plus those needed when the fileio package is present and those that are needed when it is absent. Added CDL to export our definitions to <sys/types.h>. 2000-05-31 Hugo Tyson <hmt@cygnus.co.uk> * src/lib/network_support.c (init_all_network_interfaces): Make this call idempotent - this is useful for reliable initialization of dependent subsystems. * include/lib/libkern/libkern.h: remove protos of random() and srandom() for they are not in fact provided. * cdl/net.cdl: Turn off CYGPKG_NET_TESTS_USE_RT_TEST_HARNESS by default - since not all tests currently pass. 2000-05-12 Hugo Tyson <hmt@cygnus.co.uk> * cdl/net.cdl (CYGPKG_NET_TFTPD_THREAD_PRIORITY): New option, control the TFTPD thread priority. These options are *all* CYGPKG_NET. Yuk, sort 'em out later. * tests/tftp_server_test.c (tftp_test): Added use of the CYGPKG_NET_TESTS_USE_RT_TEST_HARNESS stuff, same as for the flood ping test. This one passes (with the next change), so committed. * src/lib/tftp_server.c (tftpd_server): Cancelled some of the printouts as connections come and go *iff* the tests are set up to use the realtime-ness test harness. This needs generalizing into proper control of the network's chattiness overall. (tftpd_start): Also added configury of the TFTPD thread priority.2000-05-12 Hugo Tyson <hmt@cygnus.co.uk> * cdl/net.cdl: Add flood test below. Also add option CYGPKG_NET_TESTS_USE_RT_TEST_HARNESS to decide whether to "Use real-time response test harness (if available)". Consequently moved the test build stuff forward out of the build flags area. * tests/flood.c (net_test): New file; performs a flood-ping (well, as fast as we can go) of the server(s) on the two interfaces. Also uses the real-time interrupt response verification stuff from the EBSA285 driver component.2000-05-11 Hugo Tyson <hmt@cygnus.co.uk> * cdl/net.cdl: Add new utility (and harmless-by-default test) tests/set_mac_address. You have to edit it to get anything damaging to happen. * tests/set_mac_address.c: New file added. It uses SIOCSIFHWADDR to set the MAC address of any interfaces it has been told to.2000-05-08 Gary Thomas <gthomas@redhat.com> * include/machine/cpu.h: * include/machine/cdefs.h: Add copyright boilerplate.2000-05-05 Hugo Tyson <hmt@cygnus.co.uk> * include/arpa/tftp.h: Aargh. Turns out that removing the align driective and retaining only the packed directive makes the original version work. So, reverted. Apologies for the wasted time. * src/lib/tftp_server.c (tftpd_read_file): Coupla warnings reduced, and reverted to match original tftp.h * src/lib/tftp_dummy_file.c (dummy_open): Removed use of undeclared malloc().2000-05-04 Gary Thomas <gthomas@redhat.com> * src/lib/tftp_server.c: * src/lib/tftp_client.c: Adjust for changes in header structure. * include/arpa/tftp.h: Continuing problems with alignment on ARM. Recourse is very bastardized structure, but it _does_ work.2000-05-04 Hugo Tyson <hmt@cygnus.co.uk> * tests/tftp_client_test.c (tftp_test): Print out a coupla more things and test both interfaces if they exist - which does the same thing twice if the same server bootp'd both. Changed the filenames to something more obvious. * cdl/net.cdl (CYGPKG_NET_TESTS): Build the tftp tests tests/tftp_client_test tests/tftp_server_test * src/ecos/support.c (cyg_kmem_print_stats): New function; prints info about memory usage for some tests to come.2000-05-04 Gary Thomas <gthomas@redhat.com> * include/arpa/tftp.h: Force packed alignment - required on some architectures.2000-05-01 Gary Thomas <gthomas@redhat.com> * src/lib/tftp_dummy_file.c: Adding very simple routines - just enough to test TFTP server. This support will come from elsewhere in actual application environments (e.g. a real file system). * tests/tftp_server_test.c: * src/lib/tftp_server.c: * include/tftp_support.h: Flesh out TFTP server support.2000-04-13 Hugo Tyson <hmt@cygnus.co.uk> * tests/tcp_echo.c (calibrate_load): Import better background thread loading algorithm with bugfix; if the initial HIGH limit was not large enough, it never got loaded enough.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?