38 Commits (6bfa99a7749f5ce37ecde7d13bb99ec11cd8990e)

Author SHA1 Message Date
goldsimon 8fa3b6802e Added #if !NO_SYS to most of the api files since they only work with a sys layer (makes it easier for port projects). 19 years ago
goldsimon 2740a81103 If a udp_pcb has a local_ip set, check if it is the same as the one of the netif used for sending to prevent sending from old addresses after a netif address gets changed (partly fixes bug #3168). 19 years ago
fbernon 9cf1390dc6 sockets.c, api_lib.c, api_msg.h, api_msg.c, netifapi.h, netifapi.c, tcpip.c: Include a function pointer instead of a table index in the message to reduce footprint. Disable some part of lwip_send and lwip_sendto if some options are not set (LWIP_TCP, LWIP_UDP, LWIP_RAW). 19 years ago
fbernon 5a12aeb4a1 sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c: Fix bug #19162 "lwip_sento: a possible to corrupt remote addr/port connection state". Reduce problems "not enought memory" with netbuf (if we receive lot of datagrams). Improve lwip_sendto (only one exchange between sockets api and api_msg which run in tcpip_thread context). Add netconn_sento function. WARNING, if you directly access to "fromaddr" & "fromport" field from netbuf struct, these fields are now renamed "addr" & "port". 19 years ago
fbernon 787eecbf43 Fix mistakes in netconn's error field checking. 19 years ago
fbernon 5f1aac1450 api_msg.c: Fix bug #16830: "err_tcp() posts to connection mailbox when no pend on the mailbox is active". Now, the post is only done during a connect, and do_send, do_write and do_join_leave_group don't do anything if a previous error was signaled. 19 years ago
goldsimon f6bdd2cae4 Introduced #define LWIP_UNUSED_ARG(x) use this for and architecture-independent form to tell the compiler you intentionally are not using this variable. Can be overriden in cc.h. 19 years ago
fbernon f1412f5e5a api_msg.c: add a "pcb_new" helper function to avoid redundant code, and to add missing pcb allocations checking (in do_bind, and for each raw_new). Fix style. 19 years ago
fbernon 9ec08fa76a Missing recv_timeout initialize in accept_function. Minor style fix (indent, mbox checking...) 19 years ago
fbernon 544e469eeb api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used). 19 years ago
fbernon 3eb38d7611 api_lib.c, api_msg.c, tcpip.c: integrate sys_mbox_fetch(conn->mbox, NULL) calls from api_lib.c to tcpip.c's tcpip_apimsg(). Now, use a local variable and not a dynamic one from memp to send tcpip_msg to tcpip_thread in a synchrone call. Free tcpip_msg from tcpip_apimsg is not done in tcpip_thread. This give a faster and more reliable communication between api_lib and tcpip. 19 years ago
fbernon bb34d8cfd1 api_msg.c, igmp.c, igmp.h: Fix C++ style comments 19 years ago
fbernon b035a6196a Add return types to tcpip_apimsg() and api_msg_post() to check ERR_MEM problems (api_lib.c can be change now). 19 years ago
fbernon a24a170b84 New configuration option LWIP_IGMP to enable IGMP processing. Based on only one filter per all network interfaces. Declare a new function in netif to enable to control the MAC filter (to reduce lwIP traffic processing). 19 years ago
fbernon 1ffd049833 api_msg.c: Remove some compiler warnings : parameter "pcb" was never referenced. 19 years ago
christiaans 729da3c873 Fixed Nagle algorithm as reported by Bob Grice. 20 years ago
christiaans a82e02ef15 Partial fix for bug #15926, flushing TCP output in do_close(). 20 years ago
christiaans 63140ca7f8 Applied patch for cold case bug #11135. 20 years ago
christiaans 1f01634029 Applied patch #5146 to handle allocation failures in accept() by Kevin Lawson. 20 years ago
softins 6f066fca82 Changed recv_raw() from int to u8_t, to match prototype of raw_recv() in raw.h 22 years ago
likewise e1c4bfad05 Merged from DEVEL, except for the API change in etharp.c. 22 years ago
likewise e4a6d199fe Merged from DEVEL into main tree. 23 years ago
marcbou 351e590e01 Merged from DEVEL. 23 years ago
kieranm 8014551908 Changed DEBUGF to LWIP_DEBUGF 23 years ago
likewise df99ce9d98 Replaced all tabs with two spaces (regardless of indentation is correct). 23 years ago
likewise 03bc7c868b Major stylo search/replace for "One space between keyword and opening bracket." 23 years ago
kieranm 01a53d955e Fixed bug in do_delcon (set tcp_arg to NULL) 23 years ago
jani 859f06a91e if LWIP_TCP is 0 do not link in TCP code.putting ugly ifdefs in api and core :(.Also only udp_init if LWIP_UDP is on 23 years ago
jani 18df3961e9 byte-order handling functions are in inet.c now and the uperrcase counterparts are gone. opt.h has all the 23 years ago
davidhaas 7b3e158c92 sys_thread_new() now returns the thread (request from Marc Boucher). 23 years ago
jani 848dea2058 Only access non-NULL pbufs on some paths where they can be NULL in newly introduced callback code 23 years ago
davidhaas dd2fa15e8a Add the following features and bugfixes: 23 years ago
jani 6d0a8a85c7 Fix locking for disconnect operation (use post and fetch on the connection's mbox in the two threads like other operations).Make netconn_peer take a pointer to addr instead of pointer to pointer to addr.Addr is a 4 byte struct an IP address so use structure assignment not just pointer assignment when saving the peer.This way the address is really saved :fixes bug #1897 24 years ago
jani 46c575c038 Fix udp_bind to allow rebind for same socket (yesterday's commit broke that) and introduce connection info for UDP pcbs.New function netconn_disconnect, do_disconnect for deatching UDP from a remote addres.Fix #2240 24 years ago
jani 16434f0d01 Don't allow multiple binds to the same UDP port/address pair.Closes bug #1896 24 years ago
likewise cc4df7100d Updated lwIP module copyright years to include 2003. Committers must check theirs. 24 years ago
kieranm f975754ad9 Initialize err in do_close to prevent compiler warning. 24 years ago
likewise f06e955072 Initial revision 24 years ago