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 |
|