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