fbernon
|
6a452951f5
|
api_msg.c: Fix bug #20318: api_msg "recv" callbacks don't call pbuf_free in all error cases.
|
2007-07-13 14:28:15 +00:00 |
|
fbernon
|
a891854ef5
|
Fix bug #20315: possible memory leak problem if tcp_listen failed, because current code doesn't follow rawapi.txt documentation.
|
2007-07-13 13:59:11 +00:00 |
|
fbernon
|
5d872b26a1
|
sockets.c: Fix a possible problem because any new socket can't be created during the "close" (which can be "long" since fix for bug #20021).
|
2007-07-04 21:13:25 +00:00 |
|
goldsimon
|
eb875de67e
|
Added assertions where PBUF_RAM pbufs are used and an assumption is made that this pbuf is in one piece (i.e. not chained). These assumptions clash with the possibility of converting to fully pool-based pbuf implementations, where PBUF_RAM pbufs might be chained.
|
2007-07-03 20:28:35 +00:00 |
|
goldsimon
|
2a77b9fcc7
|
Bug in last version (fix to close problems): netconn thread might get active before calling its callback, so conn was already deallocated.
|
2007-07-03 20:20:33 +00:00 |
|
goldsimon
|
9a4a5b1816
|
Final fix for bug #20021 and some other problems when closing tcp netconns: removed conn->sem, less context switches when closing, both netconn_close and netconn_delete should safely close tcp connections.
|
2007-07-03 19:29:59 +00:00 |
|
fbernon
|
b6750de9e8
|
sockets.h, sockets.c: Implement MSG_PEEK flag for recv/recvfrom functions.
|
2007-06-30 13:24:11 +00:00 |
|
fbernon
|
af71292aba
|
Minor fix (extra spaces)
|
2007-06-29 13:37:33 +00:00 |
|
goldsimon
|
d73ca29a07
|
Fixed minor indentation fault
|
2007-06-28 10:29:13 +00:00 |
|
fbernon
|
d6fbe45296
|
netifapi.h, netifapi.c, tcpip.h, tcpip.c: Update code to handle the option LWIP_TCPIP_CORE_LOCKING, and do some changes to be coherent with last modifications in api_lib/api_msg (use pointers and not type with table, etc...)
|
2007-06-28 10:11:05 +00:00 |
|
fbernon
|
dd1cd5e491
|
sockets.c: process NETCONN_RAW connections with LWIP_TCPIP_CORE_LOCKING=1
|
2007-06-28 09:56:37 +00:00 |
|
goldsimon
|
6f93a8f091
|
Set the err_to_errno_table to be const
|
2007-06-26 17:38:52 +00:00 |
|
goldsimon
|
bb9e9e5480
|
Changed the expression of LWIP_ERROR to the same as for LWIP_ASSERT
|
2007-06-22 20:50:21 +00:00 |
|
goldsimon
|
065b8c945b
|
Added ASSERT to check that lwip_send(to) is not called for length not fitting into u16_t (for UDP & RAW sockets)
|
2007-06-21 19:58:31 +00:00 |
|
goldsimon
|
f49fc35f55
|
Converted the length argument of netconn_write (and therefore also api_msg_msg.msg.w.len) from u16_t into int to be able to send a bigger buffer than 64K with one time (mainly used from lwip_send).
|
2007-06-21 19:32:26 +00:00 |
|
goldsimon
|
67795ad26e
|
Corrected do_write for LWIP_TCPIP_CORE_LOCKING=1
|
2007-06-21 19:14:02 +00:00 |
|
goldsimon
|
2aef8bad55
|
Moved the nagle algorithm from netconn_write/do_write into a define (tcp_output_nagle) in tcp.h to provide it to raw api users, too.
|
2007-06-21 18:55:09 +00:00 |
|
goldsimon
|
9f05cabf87
|
Fixed bug #20021: Moved sendbuf-processing in netconn_write from api_lib.c to api_msg.c to also prevent multiple context-changes on low memory or empty send-buffer.
|
2007-06-21 18:40:21 +00:00 |
|
fbernon
|
ec7333d406
|
Some changes for AutoIP integration in tcpip.c, and some comments.
|
2007-06-19 10:11:27 +00:00 |
|
goldsimon
|
9e0252b209
|
Corrected two formatters in LWIP_DEBUGF calls
|
2007-06-18 19:23:27 +00:00 |
|
goldsimon
|
531ea17088
|
Forgot to implement getsockopt for SO_NO_CHECK
|
2007-06-17 19:18:59 +00:00 |
|
goldsimon
|
ced2543be0
|
Done some work on task #6933: converted some LWIP_ASSERTs to LWIP_ERROR to give back an error return value for LWIP_NOASSERT=1
|
2007-06-17 14:39:50 +00:00 |
|
goldsimon
|
261e92c57b
|
In accept_function, one LWIP_ERROR had a wrong expression (since it is inverted compared to LWIP_ASSERT...)
|
2007-06-17 14:38:32 +00:00 |
|
goldsimon
|
96dc30dea2
|
Done some work on task #1549 (function documentation)
|
2007-06-17 12:18:11 +00:00 |
|
goldsimon
|
ea7b0052f3
|
Implemented socket options SO_NO_CHECK for UDP sockets to disable UDP checksum generation on transmit.
|
2007-06-17 11:46:30 +00:00 |
|
goldsimon
|
1db9013bc4
|
Done some work on task #1549 (function documentation)
|
2007-06-16 15:08:47 +00:00 |
|
goldsimon
|
060cbe15d6
|
Done some work on task #1549 (function documentation), added some LWIP_ERROR checks, don't call pcb_new() from do_bind() and do_connect() since a netconn without pcb can't exist any more (after the recent changes to netconn_new_*())
|
2007-06-16 15:07:11 +00:00 |
|
goldsimon
|
173e63f01b
|
Minor fix: coding style
|
2007-06-16 15:03:09 +00:00 |
|
goldsimon
|
775deefeaa
|
Done some work on task #1549 (function documentation), added some LWIP_ERROR checks, created define instead of extra-function for netconn_new, netconn_new_with_callback and netconn_err
|
2007-06-16 13:57:30 +00:00 |
|
goldsimon
|
15e8208457
|
pcb_new sets conn->err if protocol is not implemented -> netconn_new_..() does not allocate a new connection for unsupported protocols.
|
2007-06-13 19:00:21 +00:00 |
|
fbernon
|
d8fe18c28e
|
api_lib.c: change return expression in netconn_addr and netconn_peer, because conn->err was reset to ERR_OK without any reasons (and error was lost)...
|
2007-06-13 18:08:49 +00:00 |
|
fbernon
|
9ee85fb1b6
|
debug.h, api_msg.c: change LWIP_ERROR to use it to check errors like invalid pointers or parameters, and let the possibility to redefined it in cc.h. Use this macro to check "conn" parameter in api_msg.c functions (some others change will be done...).
|
2007-06-13 18:00:54 +00:00 |
|
fbernon
|
ab4b59afb9
|
Partial fix for bug# 20147: "getsockopt() with SO_ERROR option" 'socket layer error is not updated if no operation on netconn).
|
2007-06-11 20:16:38 +00:00 |
|
goldsimon
|
046a270156
|
Added UDP lite support for sockets
|
2007-06-11 18:43:16 +00:00 |
|
fbernon
|
d81841f54e
|
Minor fix (coding style)
|
2007-06-10 20:02:43 +00:00 |
|
goldsimon
|
95f4c02381
|
Included switch LWIP_UDPLITE (enabled by default) to switch off UDP-Lite support if not needed (reduces udp.c code size)
|
2007-06-10 12:02:24 +00:00 |
|
fbernon
|
a42baedc28
|
Just add a comment to explain that the lwip_sendto patch for LWIP_TCPIP_CORE_LOCKING option is just show a sample (it's not a full implementation, RAW connection and "to" field are not handled, ...)
|
2007-06-09 09:59:16 +00:00 |
|
goldsimon
|
613acd93c0
|
Minor change: don't define some local (unused) variables if LWIP_TCPIP_CORE_LOCKING=1
|
2007-06-08 21:33:28 +00:00 |
|
fbernon
|
090aaefb39
|
Add LWIP_TCPIP_CORE_LOCKING option (0 as default value) to experiment "locking" as feature to communicate with tcpip_thread for sequential API (netconn & socket layers). Add a alternative code for lwip_sendto to how the code can be optimized with such feature....
|
2007-06-08 19:27:59 +00:00 |
|
goldsimon
|
8a30754e9c
|
Done some work on task #1549 (function documentation) and minor changes to meet coding standard
|
2007-06-08 11:30:14 +00:00 |
|
goldsimon
|
aee6c1f72f
|
Corrected setsockopt for LWIP_IGMP=1 (did not compile & errors were not returned)
|
2007-06-05 18:46:10 +00:00 |
|
goldsimon
|
754fe60979
|
Typo in lwip_setsockopt() (getsockopt_internal was called instead of setsockopt_internal!!!)
|
2007-06-05 07:38:39 +00:00 |
|
goldsimon
|
add68e0da1
|
Checked in patch #5914: Moved sockopt processing into tcpip_thread.
|
2007-06-01 17:15:54 +00:00 |
|
fbernon
|
a3fdc33f88
|
api_lib.c: Implement SO_RCVTIMEO for accept and recv on TCP connections, such present in patch #5959.
|
2007-05-23 19:18:09 +00:00 |
|
fbernon
|
a330917ee8
|
api_lib.c, sockets.c: Fixed bug #5958 for netconn_listen (acceptmbox only allocated by do_listen if success) and netconn_accept errors handling. In most of api_lib functions, we replace some errors checkings like "if (conn==NULL)" by ASSERT, except for netconn_delete.
|
2007-05-23 18:43:30 +00:00 |
|
fbernon
|
0fe5dd8d43
|
api_lib.c: Fixed bug #5957 "Safe-thread problem inside netconn_recv" to return an error code if it's impossible to fetch a pbuf on a TCP connection (and not directly close the recvmbox).
|
2007-05-23 17:53:35 +00:00 |
|
fbernon
|
953d783a3e
|
api.h, api_lib.c, api_msg.c, sockets.c: group the different NETCONN_UDPxxx code in only one part...
|
2007-05-23 17:46:53 +00:00 |
|
fbernon
|
d1ef610822
|
Minor fix (spaces, indent) and check for LWIP_SO_RCVTIMEO..
|
2007-05-22 21:29:04 +00:00 |
|
fbernon
|
2ff620e1b5
|
sys.h, sys.c, api_lib.c, tcpip.c: remove sys_mbox_fetch_timeout() (was only used for LWIP_SO_RCVTIMEO option) and use sys_arch_mbox_fetch() instead of sys_mbox_fetch() in api files. Now, users SHOULD NOT use internal lwIP features like "sys_timeout" in their application threads.
|
2007-05-22 20:51:34 +00:00 |
|
goldsimon
|
b5ab0c5285
|
Included some missing braces in lwip_send & lwip_sendto (if !LWIP_UDP && !LWIP_RAW)
|
2007-05-22 20:32:22 +00:00 |
|