mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-08-28 18:29:08 +00:00
Added select() functionality to sockets library. Support for errno in sockets library. Byte ordering fixes. basic lwip_ioctl(), FIONREAD, get/setsockopt() etc. support - added additional argument to netif_add to pass state pointer so that the if_init function has access to context information before the interface is added, without accessing globals. - added netif_remove() - to conserve cpu load the tcpip_tcp_timer should only be active when tcbs that need it exist. - pass length of available data to callbacks for NETCONN_EVT_RCV events - added tcpip_link_input(), a hack to allow processing of PPP packets in tcpip_thread() context. This saves threads and context switches. - renamed incompatible ASSERT() macro to LWIP_ASSERT() to avoid name collision. - changed a bunch of %d's to %u's in format strings for unsigned values. - added ip_frag to lwip_stats. - changed IP_REASS_MAXAGE and IP_REASS_TMO defaults to more realistic values. - added sys_timeout_remove() function to cancel timeouts (needed by PPP amongst other things). - tolerate NULL returns from sys_arch_timeouts() since some threads might not need to use or have timeouts. - added sys_sem_wait_timeout() - moved mem_malloc() function to end of mem.c to work around tasking compiler bug. - automatically bind to local tcp port if 0. - allow customization of port ranges for automatic local bindings. - corrected various typos, spelling errors, etc.. Thanks to Marc Boucher for many of these changes. |
||
---|---|---|
.. | ||
include | ||
netif | ||
proj | ||
perf.c | ||
README | ||
sys_arch.c |
### README --- c:/cygwin/home/dhaas/work/cfimage/lwip/arch/coldfire/ ## ## Author: dhaas@alum.rpi.edu These files are a port of lwip to coldfire (specifically the MCF5272 with on-board FEC) under the Nucleus OS. Nucleus is pretty generic so it should be fairly easy to port this to any other embedded OS. Nucleus memory managment is not used. It is assumed you have a working malloc (which at least long-word aligns memory). The compiler used was Diab 4.3b. You will almost certainly need to change cc.h for your compiler. IMPORTANT NOTE: If you use the fec driver for a different processor which has a data cache you will need to make sure the buffer descriptors and memory used for pbufs are not in a cachable area. Otherwise the fec driver is guarrenteed to malfunction. The 5272 which this was written for does not support data cache so it did not matter and malloc was used.