goldsimon
|
effcb90fdf
|
Mreged back changes that were lost during the savannah hack 3 weeks ago (using the sources from http://git.infradead.org/users/dwmw2/lwip.git)
|
2010-12-20 18:03:51 +00:00 |
|
goldsimon
|
377628216e
|
Fixed bug #31590: getsockopt(... SO_ERROR ...) gives EINPROGRESS after a successful nonblocking connection.
|
2010-11-22 20:55:57 +00:00 |
|
goldsimon
|
e52730d1fb
|
Fixed bug #31170: lwip_setsockopt() does not set socket number
|
2010-11-20 18:01:01 +00:00 |
|
goldsimon
|
d73262a0e5
|
Fixed compilation with TCP or UDP disabled.
|
2010-07-29 19:25:50 +00:00 |
|
goldsimon
|
691410ba18
|
task #10495: Added support for IP_MULTICAST_LOOP at socket- and raw-API level.
|
2010-07-12 09:34:11 +00:00 |
|
goldsimon
|
48be546357
|
fixed bug #30300 (shutdown parameter was not initialized in netconn_delete)
|
2010-06-30 08:33:14 +00:00 |
|
goldsimon
|
6929a786aa
|
Fixed bug #10088: Correctly implemented shutdown at socket level.
|
2010-06-24 19:33:14 +00:00 |
|
goldsimon
|
2c60a48d02
|
ip_addr_set_any does not work on pointers...
|
2010-06-14 19:52:17 +00:00 |
|
goldsimon
|
505dd10d3c
|
Fixed bug #29979 (lwip_sendto did not check parameter "to" != NULL)
|
2010-06-12 18:46:19 +00:00 |
|
goldsimon
|
ddd2b69f27
|
bug #29976: forgot some places using the changed IP address (copy vs. pointer)
|
2010-06-12 18:37:41 +00:00 |
|
goldsimon
|
f7479781c1
|
bug #27352: removed packing from ip_addr_t, the packed version is now only used in protocol headers. Added global storage for current src/dest IP address while in input functions.
|
2010-05-22 21:11:02 +00:00 |
|
goldsimon
|
d3e5ade2da
|
Correctly NULL-terminate h_addr_list
|
2010-05-17 12:36:45 +00:00 |
|
goldsimon
|
4b7288e8f4
|
use checksum-on-copy for sending UDP data for LWIP_NETIF_TX_SINGLE_PBUF==1
|
2010-05-02 17:25:33 +00:00 |
|
goldsimon
|
51061fb61e
|
Fixed bug #29617 (sometime cause stall on delete listening connection)
|
2010-04-21 19:59:40 +00:00 |
|
goldsimon
|
2e18a9be63
|
Added an overridable define to get informed when the tcpip_thread processes messages or timeouts to implement a watchdog.
|
2010-04-14 07:02:26 +00:00 |
|
goldsimon
|
846a2fb933
|
Fixed compiling with different options disabled (TCP/UDP), triggered by bug #29345; don't allocate acceptmbox if LWIP_TCP is disabled
|
2010-03-26 16:09:02 +00:00 |
|
goldsimon
|
46b7bd6ec3
|
Make functions static where applicable, add default cases to switches where applicable, prevent old-style function prototypes (without arguments)
|
2010-03-26 14:07:05 +00:00 |
|
goldsimon
|
5ef976aed5
|
Fixed bug #29332: lwip_select() processes readset incorrectly
|
2010-03-25 12:19:39 +00:00 |
|
goldsimon
|
a5b0ea97d6
|
Updated netconn_write doc/comment about api_flags
|
2010-03-21 12:19:56 +00:00 |
|
goldsimon
|
0a49f2e068
|
Corrected spelling of ERR_WOULDBLOCK (D was missing)
|
2010-03-20 12:56:47 +00:00 |
|
goldsimon
|
f70014b8ea
|
Added an option to disable tcpip_(un)timeout code since the linker cannot do this automatically to save space.
|
2010-03-20 11:55:41 +00:00 |
|
goldsimon
|
385d044f7d
|
Corrected spelling of milliseconds (my dictionary tells me to use two l's :)
|
2010-03-20 11:34:50 +00:00 |
|
goldsimon
|
a54bb7205d
|
Added missing casts, use strlen + MEMCPY instead of strcpy (as that might overrun the buffer)
|
2010-03-16 15:14:14 +00:00 |
|
goldsimon
|
67f5e17588
|
Bug #29210: check alignment of struct sockaddr vs. struct sockaddr_in
|
2010-03-14 09:54:47 +00:00 |
|
goldsimon
|
d47a04456b
|
bug #29105: Review printf formatters
|
2010-03-08 17:07:35 +00:00 |
|
goldsimon
|
5d20e690fd
|
Added/corrected casts
|
2010-03-08 12:17:29 +00:00 |
|
goldsimon
|
d5531a239b
|
bug #28775 (select/event_callback: only check select_cb_list on change) plus use SYS_LIGHTWEIGHT_PROT to protect the select code. This should speed up receiving data on sockets as the select code in event_callback is only executed when select is waiting.
|
2010-03-07 18:40:54 +00:00 |
|
goldsimon
|
99ff7efe80
|
Use braces for if-blocks
|
2010-03-06 12:26:20 +00:00 |
|
goldsimon
|
f5b783d107
|
Fixed LWIP_NETIF_TX_SINGLE_PBUF for LWIP_TCPIP_CORE_LOCKING
|
2010-03-06 11:52:55 +00:00 |
|
goldsimon
|
38fcfcdfac
|
task #10167 (sockets: speed up TCP recv by not allocating a netbuf): added function netconn_recv_tcp_pbuf() for tcp netconns to receive pbufs, not netbufs; use that function for tcp sockets.
|
2010-03-06 11:29:01 +00:00 |
|
goldsimon
|
957f4d8096
|
renamed struct lwip_socket to struct lwip_sock to avoid duplicate names (function lwip_socket)
|
2010-03-06 10:21:03 +00:00 |
|
goldsimon
|
0b5d60db5e
|
Correctly set TCP_WRITE_FLAG_MORE when netconn_write is split into multiple calls to tcp_write.
|
2010-03-05 11:34:43 +00:00 |
|
goldsimon
|
402597c2cb
|
Fixed bug #28970 (invalid preprocessor macro introduced with LWIP_TCPIP_CORE_LOCKING_INPUT)
|
2010-02-22 12:57:00 +00:00 |
|
goldsimon
|
19a9b52c06
|
Corrected comment
|
2010-02-21 19:28:46 +00:00 |
|
goldsimon
|
db38ee6630
|
Added define LWIP_TCPIP_CORE_LOCKING_INPUT that lets tcpip_input omit the thread-change to tcpip_thread and instead lock the core
|
2010-02-21 12:38:08 +00:00 |
|
goldsimon
|
7c57ee0c17
|
Use tcp_debug_state_str() instead of tcp_debug_print_state()
|
2010-02-21 10:56:00 +00:00 |
|
goldsimon
|
c5dfa4099d
|
Fixed bug #28183 (ARP and TCP/IP cannot be disabled on netif used for PPPoE) by adding a new netif flag (NETIF_FLAG_ETHERNET) that tells the stack the device is an ethernet device but prevents usage of ARP (so that ethernet_input can be used for PPPoE).
|
2010-02-14 16:44:47 +00:00 |
|
goldsimon
|
0792effc2a
|
task #7865 (implement non-blocking send operation)
|
2010-02-13 17:08:40 +00:00 |
|
goldsimon
|
49c6ce3703
|
Add a new err_t, ERR_WOULDBLOCK in preparation for non-blocking send
|
2010-02-13 16:03:12 +00:00 |
|
goldsimon
|
0f05a6aede
|
Fixed compilation for LWIP_DNS==1 after changing sys layer
|
2010-02-13 15:43:19 +00:00 |
|
goldsimon
|
7ccf8cb731
|
Fixed compilation with LWIP_DNS==1 after changing sys layer
|
2010-02-13 15:01:55 +00:00 |
|
goldsimon
|
c49a3ab2d6
|
Fixed compilation for LWIP_SO_RCVBUF==0
|
2010-02-13 10:06:42 +00:00 |
|
goldsimon
|
8fbaf0304a
|
Added a minimal version of posix fctl() to have a standardised way to set O_NONBLOCK for nonblocking sockets.
|
2010-02-12 17:59:20 +00:00 |
|
goldsimon
|
bd3f86e505
|
Code layout: splitted long line
|
2010-02-12 16:31:18 +00:00 |
|
goldsimon
|
c73b1b4fa2
|
Fixed bug #28865 (Cannot close socket/netconn in non-blocking connect)
|
2010-02-12 15:21:37 +00:00 |
|
goldsimon
|
0030d1ade5
|
task #10139 (Prefer statically allocated memory): converted mbox and semaphore functions to take pointers to sys_mbox_t/sys_sem_t; converted sys_mbox_new/sys_sem_new to take pointers and return err_t; task #7212: Add Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX to let sys.h use binary semaphores instead of mutexes - as before)
|
2010-02-12 13:49:21 +00:00 |
|
goldsimon
|
2d1631792a
|
struct netconn.socket is only used with LWIP_SOCKET; added comments
|
2010-02-12 09:58:44 +00:00 |
|
goldsimon
|
9e59f661bc
|
Fixed a compiler warning (comparison between signed and unsigned)
|
2010-02-10 08:11:18 +00:00 |
|
goldsimon
|
59a623e648
|
Use sys_arch_sem_wait instead of sys_sem_wait_timeout (same function, different name)
|
2010-02-09 21:04:50 +00:00 |
|
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 |
|
goldsimon
|
6746beb2a3
|
Compacted code: moved the code creating a netconn (without pcb) from netconn_new_with_proto_and_callback to new (synchroneous) function netconn_alloc_with_proto_and_callback and call this function from netconn_new_with_proto_and_callback and accept_function.
|
2007-11-30 12:54:10 +00:00 |
|