goldsimon
|
306f2203fa
|
Fixed bug #22110 (recv() makes receive window update for data that wasn't received by application); added function-like macros to correctly access/change conn->recv_timeout and conn->recv_bufsize
|
2010-02-09 20:23:39 +00:00 |
|
goldsimon
|
7699b59e27
|
Another fix for bug #28853 (recv returns 0 on recv-timeout or any other error), fixed err_to_errno_table: ERR_TIMEOUT is EWOULDBLOCK, not ETIMEDOUT
|
2010-02-09 20:17:06 +00:00 |
|
goldsimon
|
1550c4215d
|
Fixed bug #28853 (lwip_recvfrom() returns 0 on receive time-out or any netconn_recv() error)
|
2010-02-09 18:46:54 +00:00 |
|
goldsimon
|
a84590273d
|
Merge 3 u8_t for netconn-internal status into one u8_t 'flags' to prevent waisting memory when adding more flags
|
2010-02-09 18:41:07 +00:00 |
|
goldsimon
|
b0b4290c29
|
Reduced the time SYS_ARCH_PROTECT is protecting the socket array
|
2010-02-08 17:25:57 +00:00 |
|
goldsimon
|
848debf999
|
Fixed bug #28818 (New connection probably not marked writable on accept()) introduced a week ago while implementing non-blocking connect
|
2010-02-08 12:33:28 +00:00 |
|
goldsimon
|
5d360a6711
|
Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier.
|
2010-02-04 18:47:44 +00:00 |
|
goldsimon
|
a23b446ddf
|
Use macros defined in ip_addr.h (some of them new) to work with IP addresses (preparation for bug #27352 - Change ip_addr from struct to typedef (u32_t) - and better code).
|
2010-02-04 17:21:32 +00:00 |
|
goldsimon
|
a66039b86c
|
Let netdb use a memp pool for allocating memory when getaddrinfo() is called.
|
2010-02-01 21:04:29 +00:00 |
|
goldsimon
|
c22d3b4c98
|
Use SYS_LIGHTWEIGHT_PROT instead of a semaphore to protect the sockets array since the protection time is short
|
2010-01-30 15:01:29 +00:00 |
|
goldsimon
|
f8c22c7428
|
Moved freeing a socket to its own function (free_socket, like alloc_socket
|
2010-01-30 14:19:18 +00:00 |
|
goldsimon
|
855dcadf7a
|
Added except set support in select (patch #6860)
|
2010-01-29 23:05:33 +00:00 |
|
goldsimon
|
c70c3eac62
|
Added function-like macro for struct netconn::non_blocking
|
2010-01-29 22:21:45 +00:00 |
|
goldsimon
|
e58f4c567a
|
Add non-blocking support for connect (partly from patch #6860) plus many cleanups in socket & netconn API
|
2010-01-29 22:09:31 +00:00 |
|
goldsimon
|
5fa0347e64
|
Cleanly separate the portability file inet.h and its contents from the stack: moved htonX- functions to def.h (and the new def.c - they are not ipv4 dependent), let inet.h depend on ip_addr.h and not the other way round. This fixes bug #28732.
|
2010-01-29 08:20:32 +00:00 |
|
goldsimon
|
32c16fad42
|
igmp related: renamed netif pointers from 'interface' to 'netif' to not use keywords (or at least my editor highlights it as one...)
|
2010-01-28 18:42:40 +00:00 |
|
goldsimon
|
04a8b0f85d
|
Added TCP_SNDQUEUELOWAT corresponding to TCP_SNDLOWAT and added tcp_sndqueuelen() - this fixes bug #28605
|
2010-01-27 18:24:57 +00:00 |
|
goldsimon
|
e678e1bdcb
|
bug #28659: Missing casts
|
2010-01-25 08:24:30 +00:00 |
|
goldsimon
|
408829bcf6
|
Fixed compilation for LWIP_TCPIP_CORE_LOCKING
|
2010-01-23 18:13:55 +00:00 |
|
goldsimon
|
dbcce3a4be
|
bug #26523: Compiler Warnings
|
2010-01-23 17:48:36 +00:00 |
|
goldsimon
|
426dd9bfad
|
Fixed bug #28716: select() returns 0 after waiting for less than 1 ms
|
2010-01-23 15:01:15 +00:00 |
|
goldsimon
|
82318c0ef1
|
Fixed bug #28651 (tcp_connect: no callbacks called if tcp_enqueue fails) both in raw- and netconn-API
|
2010-01-21 18:43:37 +00:00 |
|
goldsimon
|
52389fc09a
|
Fixed bug #27316 (netconn: Possible deadlock in err_tcp) by using sys_mbox_trypost in err_tcp
|
2010-01-19 18:34:01 +00:00 |
|
goldsimon
|
cc1e9370af
|
Minor: fixed argument casts for mbox_fetch parameters (to fix compiler warnings)
|
2010-01-18 08:11:39 +00:00 |
|
goldsimon
|
34139606ca
|
task #10102: "netconn: clean up conn->err threading issues" by adding error return value to struct api_msg_msg
|
2010-01-17 18:28:56 +00:00 |
|
goldsimon
|
ca11baf1cd
|
Changed netconn_recv() and netconn_accept() to return err_t (bugs #27709 and #28087)
|
2010-01-17 16:21:07 +00:00 |
|
goldsimon
|
2d4e76874c
|
Using typedefs for function prototypes and -pointers throughout the stack for clarity
|
2010-01-14 20:02:15 +00:00 |
|
goldsimon
|
97f797e859
|
do_connect(): set conn->err to an error if conn->pcb is NULL
|
2010-01-14 19:49:27 +00:00 |
|
goldsimon
|
9521f54741
|
Another fix for bug #28562: Segfault @ err_tcp
|
2010-01-14 15:43:11 +00:00 |
|
goldsimon
|
0e38a52edc
|
Again: Fixed bug #26672 (close connection when receive window = 0) by correctly draining recvmbox/acceptmbox
|
2010-01-13 15:59:47 +00:00 |
|
goldsimon
|
533e6b5f8d
|
Fixed bug #26672 (close connection when receive window = 0) by correctly draining recvmbox/acceptmbox
|
2010-01-08 15:10:03 +00:00 |
|
goldsimon
|
28f0bbd575
|
Fixed bug #28519 (lwip_recvfrom bug with len > 65535)
|
2010-01-08 14:51:14 +00:00 |
|
goldsimon
|
a566f9d8f2
|
Separated timer implementation from semaphore/mbox implementation, moved timer implementation to timers.c/.h (TASK#7235)
|
2009-12-31 16:16:44 +00:00 |
|
goldsimon
|
a1c0b9da7b
|
Added an additional option LWIP_ETHERNET to support ethernet without ARP (necessary for pure PPPoE) - no changes in the ppp code yet
|
2009-12-27 11:40:48 +00:00 |
|
goldsimon
|
4391463832
|
Got the tcp_nagle_*() defines wrong (inverted) :-(
|
2009-11-26 15:51:29 +00:00 |
|
goldsimon
|
c8d2d2a8ea
|
Fixed bug #28099 (API required to disable Nagle algorithm at PCB level): added tcp_nagele_*() function-like macros
|
2009-11-26 15:19:30 +00:00 |
|
goldsimon
|
8a81cb4ba0
|
Fixed bug #27955: netconn_close may nether return when LWIP_TCPIP_CORE_LOCKING enabled
|
2009-11-22 16:08:52 +00:00 |
|
goldsimon
|
94a7fee8c8
|
Fixed bug #28062: Data received directly after accepting does not wake up select
|
2009-11-20 16:16:20 +00:00 |
|
goldsimon
|
e2de2c6bb2
|
Added netifapi_netif_set_addr()
|
2009-10-27 20:29:16 +00:00 |
|
goldsimon
|
db259c3557
|
Improved heap usage of lwip_getaddrinfo by only allocating one block of memory per call.
|
2009-10-26 09:30:50 +00:00 |
|
goldsimon
|
a9740c6a44
|
Fixed bug #27709: conn->err race condition on netconn_recv() timeout by directly returning when sys_arch_mbox_fetch times out.
|
2009-10-15 14:33:18 +00:00 |
|
goldsimon
|
a9cbdc141b
|
patch #6888: Patch for UDP Netbufs to support dest-addr and dest-port
|
2009-10-07 17:58:30 +00:00 |
|
goldsimon
|
8a7c1c4926
|
do_connect: LWIP_ERROR on invalid/disabled protocol
|
2009-08-30 20:24:08 +00:00 |
|
goldsimon
|
bc10ad2356
|
patch #6900: added define ip_ntoa(struct ip_addr*)
|
2009-08-25 14:53:25 +00:00 |
|
goldsimon
|
8bf57c0e14
|
Fixed bug #26657: DNS, if host name is "localhost", result is error.
|
2009-08-23 13:51:12 +00:00 |
|
goldsimon
|
3a6165f0b9
|
Added missing include to <string.h>
|
2009-08-11 14:38:55 +00:00 |
|
goldsimon
|
cc4b968f0a
|
Fixed bug #27114: Missing #include in api_msg.c on LWIP 1.3.1RC1; added include <string.h>
|
2009-07-27 15:13:24 +00:00 |
|
fbernon
|
ce5699f41b
|
minor changes: typos and coding style
|
2009-07-09 10:21:16 +00:00 |
|
kieranm
|
1eee0be951
|
BUG23240 use signed counters for recv_avail and don't increment
counters until message successfully sent to mbox
|
2009-07-09 09:35:07 +00:00 |
|
kieranm
|
2b87f899ab
|
BUG26722: initialise netconn write variables in netconn_alloc
|
2009-06-25 10:17:18 +00:00 |
|
goldsimon
|
22d6558f13
|
task #7013: Added option LWIP_NETIF_TX_SINGLE_PBUF to try to create transmit packets from only one pbuf to help MACs that don't support scatter-gather DMA.
|
2009-05-10 17:07:25 +00:00 |
|
goldsimon
|
99d82c4980
|
Fixed bug #26405: Prematurely released semaphore causes lwip_select() to crash
|
2009-05-05 17:20:45 +00:00 |
|
goldsimon
|
152d22d4f9
|
fixed tcpip_untimeout (does not need the time, broken after 1.3.0 in CVS only) - fixes compilation of ppp_oe.c
|
2009-05-02 16:12:35 +00:00 |
|
fbernon
|
4fba1b1430
|
netdb.c: remplace some %#p by %p to be more portable.
|
2009-04-23 14:41:52 +00:00 |
|
goldsimon
|
9d5bf57dd9
|
fixed bug #25695: Segmentation fault in do_writemore()
|
2009-04-18 17:48:41 +00:00 |
|
goldsimon
|
422ba5bcec
|
tried to fix bug #23559: lwip_recvfrom problem with tcp
|
2009-04-15 21:13:55 +00:00 |
|
goldsimon
|
27b28a9306
|
Converted netconn_type() from a function to a macro
|
2009-04-15 21:04:19 +00:00 |
|
goldsimon
|
dbd6d7ec8d
|
bug #26027: netbuf_chain resulted in pbuf memory leak
|
2009-04-15 14:57:32 +00:00 |
|
goldsimon
|
b3a5d6df0d
|
bug #25763: Corrected 4 occurrences of SMEMCPY to MEMCPY; corrected indentation
|
2009-04-15 14:48:56 +00:00 |
|
goldsimon
|
3587e8481d
|
bug #26121: set_errno can be overridden
|
2009-04-15 14:33:05 +00:00 |
|
kieranm
|
7d8fac62ec
|
Fix compiler warning about %#p
|
2009-03-25 11:02:24 +00:00 |
|
goldsimon
|
c05e968278
|
Fixed many LWIP_DEBUGF format strings; added new format string SZT_F for size_t
|
2009-02-18 21:13:06 +00:00 |
|
goldsimon
|
14cb4eb735
|
fixed arguments of socket functions to match the standard; converted size argument of netconn_write to 'size_t' for that; fixed some warnings
|
2009-02-16 19:33:51 +00:00 |
|
goldsimon
|
8c7705bbf9
|
added configurable default valud for netconn->recv_bufsize: RECV_BUFSIZE_DEFAULT (fixes bug #23726: pbuf pool exhaustion on slow recv())
|
2009-02-11 19:07:22 +00:00 |
|
goldsimon
|
b0c61ffbb1
|
Reverted last changes since it's wrong when sizeof(int)==2...
|
2008-12-20 12:24:41 +00:00 |
|
goldsimon
|
aa568727d1
|
patch #6699: fixed some warnings on platform where sizeof(int) == 2
|
2008-12-19 18:08:29 +00:00 |
|
fbernon
|
411cb39eb4
|
sockets.c: fixed bug #25051: lwip_recvfrom problem with udp: fromaddr and port uses deleted netbuf.
|
2008-12-10 21:36:44 +00:00 |
|
jifl
|
1f3fe200df
|
Correct commented description of do_recv().
Reported by Charles Landau on lwip-users.
|
2008-11-12 19:14:21 +00:00 |
|
jifl
|
1d2804d6a2
|
* sockets.c (lwip_accept): Return EWOULDBLOCK if would block on non-blocking
socket.
|
2008-10-02 13:59:18 +00:00 |
|
jifl
|
0d7dccba5e
|
* sockets.c (lwip_accept): check addr isn't NULL. If it's valid, do an
assertion check that addrlen isn't NULL.
|
2008-09-30 14:51:27 +00:00 |
|
goldsimon
|
c779a9f29f
|
Fixed some warnings, changed some debug defines to include better names
|
2008-07-16 20:36:12 +00:00 |
|
goldsimon
|
ae2d5266c5
|
removed invalid call to tcp_connect() in do_close_internal()
|
2008-07-15 11:18:58 +00:00 |
|
goldsimon
|
99db244124
|
fixed bug #23847: do_close_internal references freed memory
|
2008-07-14 20:12:36 +00:00 |
|
goldsimon
|
95b15fe463
|
Fix typo, add comment
|
2008-06-27 20:34:51 +00:00 |
|
jifl
|
a3bc6cd666
|
* err.h, err.c, sockets.c: Fix bug #23119: Reorder timeout error code to
stop it being treated as a fatal error.
|
2008-05-09 12:14:23 +00:00 |
|
goldsimon
|
05587f5da9
|
Changed the pbuf_free/mem_free callback functions a little: created extra functions for that
|
2008-03-28 07:56:47 +00:00 |
|
goldsimon
|
43dd38df0a
|
fixed bug #21433 (Calling mem_free/pbuf_free from interrupt context isn't safe): set LWIP_USE_HEAP_FROM_INTERRUPT to 1 in lwipopts.h or use tcpip_callback_nonblocking(pbuf_free_int, p)/ tcpip_callback_nonblocking(mem_free, m) to free pbufs or heap memory from interrupt context
|
2008-03-27 19:29:35 +00:00 |
|
fbernon
|
7774b57a1c
|
api_msg.c: fix wrong mailbox invalidate (NULL was used instead of SYS_MBOX_NULL). Spoted by Silas Boyd-Wickizer.
|
2008-03-21 16:23:14 +00:00 |
|
goldsimon
|
90cb4b4e09
|
Corrected comment in do_writemore()
|
2008-03-19 20:59:59 +00:00 |
|
fbernon
|
e07d71f5e8
|
sockets.c: Fix bug #22435 "lwip_recvfrom with TCP break;". Using (lwip_)recvfrom with valid "from" and "fromlen" parameters, on a TCP connection caused a crash. Note that using (lwip_)recvfrom like this is a bit slow and that using (lwip)getpeername is the good lwip way to do it (so, using recv is faster on tcp sockets).
|
2008-03-13 20:03:57 +00:00 |
|
fbernon
|
afcf49ad3a
|
api_msg.c: minor change, fix warning.
|
2008-03-13 19:57:11 +00:00 |
|
fbernon
|
a2f1892480
|
api_msg.c: fix the netbuf::addr field to point on the ip_src on the pbuf's copy (about bug#22530).
|
2008-03-12 12:58:07 +00:00 |
|
fbernon
|
552106e2a4
|
api_msg.c: Fix bug #22530 "api_msg.c's recv_raw() does not consume data".
|
2008-03-12 10:55:54 +00:00 |
|
fbernon
|
7b11fb75d9
|
Minor changes: replace directy call to memcpy by MEMCPY macro.
|
2008-01-26 16:11:39 +00:00 |
|
fbernon
|
7518acf634
|
rawapi.txt, api_msg.c, tcp.c, tcp_in.c, tcp.h: changes for task #7675 "Enable to refuse data on a TCP_EVENT_RECV call". Important, behavior changes for the tcp_recv callback (see rawapi.txt).
|
2008-01-14 21:07:08 +00:00 |
|
fbernon
|
55bcc20deb
|
tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field netconn::sem per netconn::op_completed like suggested for the task #7490 "Add return value to sys_mbox_post".
|
2008-01-12 11:52:21 +00:00 |
|
fbernon
|
9906e4c984
|
api_msg.c, opt.h: replace DEFAULT_RECVMBOX_SIZE per DEFAULT_TCP_RECVMBOX_SIZE, DEFAULT_UDP_RECVMBOX_SIZE and DEFAULT_RAW_RECVMBOX_SIZE (to optimize queues sizes), like suggested for the task #7490 "Add return value to sys_mbox_post".
|
2008-01-11 23:50:10 +00:00 |
|
fbernon
|
4e40fee1db
|
tcpip.h, tcpip.c: add tcpip_callback_with_block function for the task #7490 "Add return value to sys_mbox_post". tcpip_callback is always defined as "blocking" ("block" parameter = 1).
|
2008-01-10 21:47:52 +00:00 |
|
fbernon
|
bceff76c70
|
tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field netconn::mbox (sys_mbox_t) per netconn::sem (sys_sem_t) for the task #7490 "Add return value to sys_mbox_post".
|
2008-01-10 21:34:25 +00:00 |
|
goldsimon
|
a41f113b8f
|
Added function netconn_free(), which deallocates all mboxes and frees the netconn (to be used from different places) - the PCB is not freed!
|
2008-01-06 14:28:04 +00:00 |
|
fbernon
|
5941b3c86e
|
sys_arch.txt, api.h, api_lib.c, api_msg.h, api_msg.c, tcpip.c, sys.h, opt.h: Introduce changes for task #7490 "Add return value to sys_mbox_post" with some modifications in the sys_mbox api: sys_mbox_new take a "size" parameters which indicate the number of pointers query by the mailbox. There is three defines in opt.h to indicate sizes for tcpip::mbox, netconn::recvmbox, and for the netconn::acceptmbox. Port maintainers, you can decide to just add this new parameter in your implementation, but to ignore it to keep the previous behavior. The new sys_mbox_trypost function return a value to know if the mailbox is full or if the message is posted. Take a look to sys_arch.txt for more details. This new function is used in tcpip_input (so, can be called in an interrupt context since the function is not blocking), and in recv_udp and recv_raw.
|
2008-01-05 21:10:32 +00:00 |
|
fbernon
|
9c4daa312d
|
Minor changes in lwip folder: fix some warnings, coding style, and rename "internal" netconn_alloc function.
|
2008-01-04 23:07:44 +00:00 |
|
fbernon
|
32005617b9
|
rawapi.txt, api.h, api_lib.c, api_msg.h, api_msg.c, sockets.c, tcp.h, tcp.c, tcp_in.c, init.c, opt.h: rename backlog options with TCP_ prefix, limit the "backlog" parameter in an u8_t, 0 is interpreted as "smallest queue", add documentation in the rawapi.txt file.
|
2008-01-04 22:18:27 +00:00 |
|
goldsimon
|
1ed34774c8
|
tcp.h, opt.h, api.h, api_msg.h, tcp.c, tcp_in.c, api_lib.c, api_msg.c, sockets.c, init.c: task #7252: Implement TCP listen backlog: Warning: raw API applications have to call 'tcp_accepted(pcb)' in their accept callback to keep accepting new connections.
|
2007-12-21 16:47:56 +00:00 |
|
goldsimon
|
48e62e25e9
|
sys.h, api_lib.c, api_msg.c, sockets.c: fix bug #21698: "netconn->recv_avail is not protected" by using new macros for interlocked access to modify/test netconn->recv_avail.
|
2007-12-21 14:59:10 +00:00 |
|
goldsimon
|
ba4254231e
|
Corrected assert when netconn_new_* fails
|
2007-12-16 16:15:08 +00:00 |
|
fbernon
|
2b54da5070
|
api_msg.c, err.h, err.c, sockets.c, dns.c, dns.h: replace "enum dns_result" by err_t type. Add a new err_t code "ERR_INPROGRESS".
|
2007-12-13 23:06:49 +00:00 |
|
fbernon
|
1dd1064051
|
Fix err_stderr[] table with new err.h defines.
|
2007-12-12 08:25:23 +00:00 |
|
fbernon
|
ac10470643
|
netdb.c: add a LWIP_DNS_API_HOSTENT_STORAGE option to decide to use a static set of variables (=0) or a local one (=1). In this last case, your port should provide a function "struct hostent* sys_thread_hostent( struct hostent* h)" which have to do a copy of "h" and return a pointer ont the "per-thread" copy.
|
2007-12-05 23:00:02 +00:00 |
|
goldsimon
|
113a52d091
|
fix bug #21656 (recvmbox problem in netconn API): always allocate a recvmbox in netconn_new_with_proto_and_callback. For a tcp-listen netconn, this recvmbox is later freed and a new mbox is allocated for acceptmbox. This is a fix for thread-safety and allocates all items needed for a netconn when the netconn is created.
|
2007-12-02 14:53:50 +00:00 |
|