Commit Graph

16 Commits

Author SHA1 Message Date
goldsimon
ea3f796c6c Make unix port buildable with changes to sockets.h (include sys/time.h in cc.h only and define LWIP_TIMEVAL_PRIVATE to 0 in lwipopts.h to use unix struct timeval instead of defining an own struct) 2007-12-02 15:26:35 +00:00
goldsimon
8f1eaa5226 Fixed some warnings, added new includes, added new defines in lwipopts.h 2007-11-25 14:09:16 +00:00
christiaans
b89160f34e Introduced cc.h formatters. 2005-11-25 12:04:21 +00:00
christiaans
967f8aa38e A few small build fixes for unixsim. 2005-11-08 12:00:45 +00:00
jani
735ad93967 Empty protect macros are already defined in sys.h 2003-05-08 08:52:59 +00:00
davidhaas
2afa3c2f95 Fixed minor compile issues. 2003-03-28 19:46:22 +00:00
jani
0749599eab the contrib part of thread priority patch by floriZ.Also take out unused unix netifs from unixsim makefile for now 2003-03-19 15:28:31 +00:00
jani
683a598138 C style comments 2003-03-07 15:00:41 +00:00
jani
d5be11334f SYS_ARCH_PROTECT_XXX macros noops for now to get it to compile.I don't know whether anything is required here 2003-02-21 16:35:23 +00:00
jani
489fc69cce updated netif init functions to return err_t 2003-02-20 16:24:39 +00:00
davidhaas
f87520e049 Allow minimal unix target to build in cygwin (but not necessarily run).
Applied a patch from Marc Boucher which has the following changes:

1) Fixed sys_arch.txt documentation to have new return type from
   sys_thread_new.

2) Removed unnecessary casts on calling sys_timeout() in certain files.

3) Removed some unnecessary break statements after return statements.

4) Changed sys_timeout_remove() to sys_untimeout().

5) Added some forgotten #ifndef SYS_LIGHTWEIGHT_PROT to memp.c

6) Changed LWIP_DIAG and LWIP_PLATFORM_ASSERT to have do while().
2003-02-18 19:27:08 +00:00
davidhaas
68db26a7ab Made sys_arch_prot() interface more generic by returning sys_prot_t instead
of u32_t.
2003-02-12 16:38:57 +00:00
davidhaas
eef68488bc Fix some compile issues with both coldfire and unix builds. 2003-02-12 15:09:15 +00:00
jani
ebb997051d put platform specific debug and assert in cc.h.Also put byte-order #define here.Delete files cpu.h,lib.h and init.h 2003-02-10 11:13:51 +00:00
davidhaas
6929a67489 Add the following features and bugfixes:
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.
2003-02-06 22:18:30 +00:00
jani
b63196d62a Add Unix port 2003-01-18 18:18:02 +00:00