📄 changelog
字号:
* src/lib/gethost.c: Removed.
* cdl/net.cdl: Removed gethost.c (replaced by proper
implementation in CYGPKG_NS_DNS).
2001-09-17 Hugo Tyson <hmt@redhat.com>
2001-09-17 Andrew Lunn <Andrew.Lunn@ascom.ch>
* src/sys/net/if_bridge.c (bridge_broadcast): Fix a null pointer
deference. Supporting VLANs, it seems that during the net_init()
function, it sends a packet to the bridge with the source
interface being NULL. Stats counting assumed otherwise.
2001-09-14 Jonathan Larmour <jlarmour@redhat.com>
* src/sys/kern/uipc_syscalls.c: Last change to uipc_syscalls.c
wasn't right. The parts that were __ECOS__ should simply have
been completely removed.
2001-09-13 Hugo Tyson <hmt@redhat.com>
* cdl/net.cdl: Add configury to control whether we can tickle the
network devices if there's a lack of network traffic, and to
control the delay time before so doing.
* src/ecos/timeout.c (alarm_thread): Use a timed wait, if so
configured, for the flag; and if it times out, tickle all the
devices via the common ether driver routine for so doing.
2001-09-12 Jonathan Larmour <jlarmour@redhat.com>
* include/sys/socketvar.h: Use __ECOS, not __ECOS__.
* src/sys/kern/uipc_syscalls.c: Ditto.
* src/sys/kern/uipc_socket2.c (sblock): Ditto.
2001-08-02 Jonathan Larmour <jlarmour@redhat.com>
* tests/linux_echo.c (echo_test): Set socket options before bind.
* tests/nc_test_slave.c (do_tcp_test): Ditto.
* tests/server_test.c (server_test): Ditto.
* tests/tcp_echo.c (echo_test): Ditto.
* tests/tcp_lo_test.c (server): Ditto.
* tests/tcp_sink.c (sink_test): Ditto.
* tests/tcp_source.c (source_test): Ditto.
2001-07-27 Jonathan Larmour <jlarmour@redhat.com>
* include/sys/select.h: Renamed to....
* include/sys/bsdselect.h: New file.
* include/sys/socketvar.h: Include <sys/bsdselect.h> instead of
<sys/select.h>
* src/lib/select.c: Include <sys/bsdselect.h>
2001-07-26 Jonathan Larmour <jlarmour@redhat.com>
* cdl/net.cdl (CYGPKG_NET_API_LOCAL): Implements select()
* include/sys/bsdtypes.h: No need for these select definitions.
2001-06-20 Grant Edwards <grante@visi.com>
2001-06-20 Hugo Tyson <hmt@redhat.com>
* src/lib/dhcp_prot.c (alarm_function): Change the lease state
before re-enabling the alarm so that if it somehow gets times of
zero (ie. right now) it quickly completes the state machine rather
than recursing to its doom.
(new_lease): Test the retcode of get_bootp_option() and use
obvious defaults if the T1 and T2 times are not provided - this is
RFC compliant! - and use "infinite lease" if the lease time is not
provided at all.
2001-06-19 Trenton D. Adams <tadams@extremeeng.com>
* tests/server_test.c (server_test): Null terminate read string
at right place.
2001-06-13 Jonathan Larmour <jlarmour@redhat.com>
* cdl/net.cdl: Make debug output an option. Include DHCP.
* src/lib/dhcp_prot.c: DHCP_CHATTER -> CYGDBG_NET_DHCP_CHATTER
* src/ecos/support.c (cyg_kmem_init): Only print debug output if
requested.
* cdl/net.cdl: Make requirements on other eCos features more
abstract.
2001-05-09 Robin Farine <acnrf@dial.eunet.ch>
2001-05-09 Hugo Tyson <hmt@redhat.com>
* src/lib/dhcp_prot.c (do_dhcp): In DHCPSTATE_INIT case, create a
new xid. Servers apparantly can use *only* this to distinguish
machines, even with different MAC addresses! Therefore we use
both the most sensitive randomizer available (arc4random()) which
in reality uses a finegrain clock, and salt the value further with
the MAC address itself. Thanks again Robin.
* src/ecos/support.c (arc4random): Make arc4random not always be a
multiple of 256; stir the clock into the low bits also.
2001-05-09 Robin Farine <acnrf@dial.eunet.ch>
2001-05-09 Hugo Tyson <hmt@redhat.com>
* src/sys/net/if_bridge.c: Patch from Robin; the route aging
process took twice as long to timeout because an entry requires
*two* executions of bridge_rtage() to actually get removed.
Record the timeout over 2 to fix that and also define
BRIDGE_RTABLE_TIMEOUT as 300s that the standard specifies as
default aging time.
2001-05-09 Hugo Tyson <hmt@redhat.com>
* src/lib/getserv.c (setreturned): New routine to set up a copy of
the service data with the port converted to network order like the
API demands. It's this way to make the initialization of the
table most readable.
(services[]): Added an entry for snmp.
(getservbyname): Use setreturned() to return adjusted info.
(getservbyport): Use setreturned() to return adjusted info and
compare with host-ordered version of the port.
* src/lib/tftp_client.c (tftp_get):
(tftp_put): Do not convert to net order from
the getserv structure; it's already net order.
* src/lib/tftp_server.c (tftpd_server): Convert the socket into
host order; it's network order in the getserv API.
* tests/ftp_test.c (ftp_test): Do not convert to net order from
the getserv structure; it's already net order.
* tests/tftp_client_test.c (PUTFILE): Changed the names of the
test files to be fully qualified, this makes the test work with
more server machines. /tftpboot/tftp_get and /tftpboot/tftp_put.
2001-04-24 Bart Veer <bartv@redhat.com>
* cdl/net.cdl:
Prevent multiple device drivers from implementing the
same eth0/eth1 device.
2001-03-30 Jonathan Larmour <jlarmour@redhat.com>
* cdl/net.cdl (CYGPKG_NET_SYSCTL): Comment out - currently unsupported.
2001-03-28 Richard Panton <rpanton@3glab.com>
* include/bootp.h: Define func protos with C linkage
* include/netdb.h: Ditto
* include/network.h: Ditto
* include/tftp_support.h: Ditto
* src/lib/getserv.c: getservbynumber() -> getservbyport()
2001-03-12 Gary Thomas <gthomas@redhat.com>
* src/lib/network_support.c (init_all_network_interfaces):
FIx slightly broken previous attempt in abort code.
2001-03-11 Gary Thomas <gthomas@redhat.com>
* src/lib/network_support.c (init_all_network_interfaces):
Let initialization of PCMCIA devices abort after ~5 seconds.
2001-02-23 Jonathan Larmour <jlarmour@redhat.com>
* src/lib/tftp_server.c (STACK_SIZE): Align
2001-02-20 Jonathan Larmour <jlarmour@redhat.com>
* cdl/net.cdl: Avoid puts to the CDL header when a CDL
define will do.
Rename CYGPKG_NET_BRIDGE_CODE -> CYGPKG_NET_BRIDGE
Rename CYGPKG_NET_NBRIDGE -> CYGNUM_NET_BRIDGES
Rename CYGPKG_NET_BRIDGE_HANDLER -> CYGINT_NET_BRIDGE_HANDLER
Make if_bridge.c compilation conditional on CYGPKG_NET_BRIDGE
* src/sys/net/if_bridge.c: Reflect above renames.
2001-02-20 Hugo Tyson <hmt@redhat.com>
2001-02-15 Martin Buck <martin.buck@ascom.ch>
* cdl/net.cdl: Split up CYGPKG_NET_NBRIDGE into 2 parts:
CYGPKG_NET_NBRIDGE and CYGPKG_NET_BRIDGE_HANDLER. If
CYGPKG_NET_BRIDGE_HANDLER is nonzero, calls to an Ethernet
bridge are inserted into the stack's data path. If
CYGPKG_NET_NBRIDGE is nonzero, the standard OpenBSD bridge
code is added. This setup allows you to implement your own
bridge as a separate package which then implements
CYGPKG_NET_BRIDGE_HANDLER so it gets called by the stack.
NBRIDGE now is the same as CYGPKG_NET_BRIDGE_HANDLER instead
of CYGPKG_NET_NBRIDGE. This means it's nonzero if the bridge
is wanted, but it no longer contains the number of bridge
buffers requested. This shouldn't be a problem, because the
only place where the actual number of buffers is required is
in if_bridge.c, which now uses CYGPKG_NET_NBRIDGE instead
of NBRIDGE.
* src/sys/net/if_bridge.c: Use CYGPKG_NET_NBRIDGE instead of
NBRIDGE, because the latter one now only means that there is
a bridge, not that we should implement it.
2001-01-07 Gary Thomas <gthomas@redhat.com>
* src/ecos/support.c:
* cdl/net.cdl: Add interface 'CYGPKG_NET_DRIVER_FRAMEWORK'
to describe interdependencies between network stack and driver
framework packages.
2001-01-03 Hugo Tyson <hmt@redhat.com>
* tests/linux_echo.c: New file to test for network bandwidth
limitations in host side. Builds to a linux version of the
tcp_echo middleman.
* tests/make.linux (all): Build linux_echo.
2001-01-03 Hugo Tyson <hmt@redhat.com>
* include/dhcp.h (struct dhcp_lease): Define the semaphore pointer
field in each lease structure.
* src/lib/dhcp_support.c: Initialize the dhcp_lease structs to
point to the semaphore "dhcp_needs_attention".
* src/lib/dhcp_prot.c (alarm_function): Post to the semaphore
pointed to in the lease structure, rather than one hard-coded.
This is much cleaner, in that dhcp_prot.c now uses no external
variables, all state goes through the API.
2000-11-15 Hugo Tyson <hmt@redhat.com>
* src/lib/bootp_support.c (init_net): Do a SIOCSIFADDR a 2nd time
after setting the netmask (SIOCSIFNETMASK) in order for the newly
set netmask to "take" - otherwise a bogus route based on the
default netmask lurks within the system.
2000-11-10 Hugo Tyson <hmt@redhat.com>
* src/ecos/support.c (cyg_net_get_mem_stats): New API for getting
info on the various mem pools the stack uses to enable tests to
spot store leaks.
* include/network.h (cyg_net_get_mem_stats): Export this API for
automated network testing.
2000-10-24 Hugo Tyson <hmt@redhat.com>
* src/lib/tftp_server.c (tftpd_server): Cut down the chatter to
nothing (unless there's an error) if running automated testing.
2000-10-17 Hugo Tyson <hmt@redhat.com>
2000-10-10 Andrew Lunn <Andrew.Lunn@ascom.ch>
* src/ecos/support.c (setsoftnet,cyg_panic): Less chatter,
particularly not when we're out of MBUFs.
2000-10-17 Hugo Tyson <hmt@redhat.com>
2000-10-10 Andrew Lunn <Andrew.Lunn@ascom.ch>
* src/sys/net/if_bridge.c: Intergrated a more up to date version
from the OpenBSD sources. This fixes a few bugs.
2000-10-17 Hugo Tyson <hmt@redhat.com>
* src/ecos/support.c (cyg_ktime_init): Start time at 1 Second so
that all visible time values are valid; offset time by 1 Second
subsequently, for ever.
* src/sys/netinet/if_ether.c (arpresolve): Undo the change below;
instead make "kernel time" be valid ie. more than 1 second into
its life. Dumb stack assumes it takes UNIX-like time to start.
2000-10-16 Hugo Tyson <hmt@redhat.com>
* src/sys/netinet/if_ether.c (arpresolve): Deal with the initial
case when the route timeout is zero (as initialized). Otherwise
it never actually sent out the initial ARP request packet. This
caused connect() not to work, and thus ftp_test, for example.
* src/lib/dhcp_support.c (dhcp_start_dhcp_mgt_thread): Also
initialize the dhcp semaphore here. The other place it is init'd
[correctly] didn't fire if we use the standard support. Fixed
some absent return value warnings.
2000-10-10 Hugo Tyson <hmt@redhat.com>
* src/lib/tftp_server.c (tftpd_server): Modify the server to
support multiple sessions - ie. starting N servers at once.
Mainly this means closing the initial socket whilst servicing a
request, so that another server can then bind to it; tell another
server to retry that bind via a semaphore, that it waited on when
the bind failed initially, rather than just returning.
* src/lib/tftp_dummy_file.c (dummy_open): Trivial bugfix: scan the
list of files as well as incrementing the counter.
2000-10-05 Andrew Lunn <andrew.lunn@ascom.ch>
* src/ecos/support.c (cyg_ktime_func,cyg_ktime_init,cyg_net_init):
Make 'ktime' value valid.
2000-10-05 Hugo Tyson <hmt@redhat.com>
* src/lib/tftp_server.c (tftpd_write_file): Restructure this
function to match the loop layout of the tftpd_read_file; so that
it retries sensibly, and so that a delayed/duplicated packet does
not cause a doubling of all traffic with a less smart host.
2000-10-05 Hugo Tyson <hmt@redhat.com>
* include/tftp_support.h (TFTP_TIMEOUT_MAX): Change this to 50; it
refers to total timeouts for a whole session, so it should be
greater than the retry count for each packet.
2000-10-05 Hugo Tyson <hmt@redhat.com>
* src/lib/tftp_dummy_file.c: Make the fake file slots be a Mb
instead of 10k so that you can do meaningful timing tests with it.
(dummy_open): Allow re-write of an existing file so that you can
do repeated put tests without running out of slots.
2000-10-05 Hugo Tyson <hmt@redhat.com>
* src/lib/select.c (_cyg_select): Unlock the scheduler in a couple
of other places I missed. Doh.
2000-09-28 Hugo Tyson <hmt@redhat.com>
* src/lib/select.c (_cyg_select): Elect to wait for the flags
atomically wrt sockets possibly becoming ready - this was a race
condition that would apparently delay a packet until another
arrived, eg. a tftp retry. Then two came along all at once.
2000-09-28 Hugo Tyson <hmt@redhat.com>
* src/lib/tftp_server.c: Add lots of instrumentation for
debugging. It's switched off, and doesn't have a real config opt,
though it easily could have.
2000-09-26 Hugo Tyson <hmt@redhat.com>
* src/lib/tftp_server.c (tftpd_read_file): Doh! TFTP_TIMEOUT is an
internal API thing, not an error we can send in an ERROR packet.
* include/tftp_support.h: Comment to this effect.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -