384 Commits (6929a786aabc459795cacaae986028ec5cd3245e)

Author SHA1 Message Date
goldsimon 6929a786aa Fixed bug #10088: Correctly implemented shutdown at socket level. 16 years ago
goldsimon 2c60a48d02 ip_addr_set_any does not work on pointers... 16 years ago
goldsimon 505dd10d3c Fixed bug #29979 (lwip_sendto did not check parameter "to" != NULL) 16 years ago
goldsimon ddd2b69f27 bug #29976: forgot some places using the changed IP address (copy vs. pointer) 16 years ago
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. 16 years ago
goldsimon d3e5ade2da Correctly NULL-terminate h_addr_list 16 years ago
goldsimon 4b7288e8f4 use checksum-on-copy for sending UDP data for LWIP_NETIF_TX_SINGLE_PBUF==1 16 years ago
goldsimon 51061fb61e Fixed bug #29617 (sometime cause stall on delete listening connection) 16 years ago
goldsimon 2e18a9be63 Added an overridable define to get informed when the tcpip_thread processes messages or timeouts to implement a watchdog. 16 years ago
goldsimon 846a2fb933 Fixed compiling with different options disabled (TCP/UDP), triggered by bug #29345; don't allocate acceptmbox if LWIP_TCP is disabled 16 years ago
goldsimon 46b7bd6ec3 Make functions static where applicable, add default cases to switches where applicable, prevent old-style function prototypes (without arguments) 16 years ago
goldsimon 5ef976aed5 Fixed bug #29332: lwip_select() processes readset incorrectly 16 years ago
goldsimon a5b0ea97d6 Updated netconn_write doc/comment about api_flags 16 years ago
goldsimon 0a49f2e068 Corrected spelling of ERR_WOULDBLOCK (D was missing) 16 years ago
goldsimon f70014b8ea Added an option to disable tcpip_(un)timeout code since the linker cannot do this automatically to save space. 16 years ago
goldsimon 385d044f7d Corrected spelling of milliseconds (my dictionary tells me to use two l's :) 16 years ago
goldsimon a54bb7205d Added missing casts, use strlen + MEMCPY instead of strcpy (as that might overrun the buffer) 16 years ago
goldsimon 67f5e17588 Bug #29210: check alignment of struct sockaddr vs. struct sockaddr_in 16 years ago
goldsimon d47a04456b bug #29105: Review printf formatters 16 years ago
goldsimon 5d20e690fd Added/corrected casts 16 years ago
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. 16 years ago
goldsimon 99ff7efe80 Use braces for if-blocks 16 years ago
goldsimon f5b783d107 Fixed LWIP_NETIF_TX_SINGLE_PBUF for LWIP_TCPIP_CORE_LOCKING 16 years ago
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. 16 years ago
goldsimon 957f4d8096 renamed struct lwip_socket to struct lwip_sock to avoid duplicate names (function lwip_socket) 16 years ago
goldsimon 0b5d60db5e Correctly set TCP_WRITE_FLAG_MORE when netconn_write is split into multiple calls to tcp_write. 16 years ago
goldsimon 402597c2cb Fixed bug #28970 (invalid preprocessor macro introduced with LWIP_TCPIP_CORE_LOCKING_INPUT) 16 years ago
goldsimon 19a9b52c06 Corrected comment 16 years ago
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 16 years ago
goldsimon 7c57ee0c17 Use tcp_debug_state_str() instead of tcp_debug_print_state() 16 years ago
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). 16 years ago
goldsimon 0792effc2a task #7865 (implement non-blocking send operation) 16 years ago
goldsimon 49c6ce3703 Add a new err_t, ERR_WOULDBLOCK in preparation for non-blocking send 16 years ago
goldsimon 0f05a6aede Fixed compilation for LWIP_DNS==1 after changing sys layer 16 years ago
goldsimon 7ccf8cb731 Fixed compilation with LWIP_DNS==1 after changing sys layer 16 years ago
goldsimon c49a3ab2d6 Fixed compilation for LWIP_SO_RCVBUF==0 16 years ago
goldsimon 8fbaf0304a Added a minimal version of posix fctl() to have a standardised way to set O_NONBLOCK for nonblocking sockets. 16 years ago
goldsimon bd3f86e505 Code layout: splitted long line 16 years ago
goldsimon c73b1b4fa2 Fixed bug #28865 (Cannot close socket/netconn in non-blocking connect) 16 years ago
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) 16 years ago
goldsimon 2d1631792a struct netconn.socket is only used with LWIP_SOCKET; added comments 16 years ago
goldsimon 9e59f661bc Fixed a compiler warning (comparison between signed and unsigned) 16 years ago
goldsimon 59a623e648 Use sys_arch_sem_wait instead of sys_sem_wait_timeout (same function, different name) 16 years ago
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 16 years ago
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 16 years ago
goldsimon 1550c4215d Fixed bug #28853 (lwip_recvfrom() returns 0 on receive time-out or any netconn_recv() error) 16 years ago
goldsimon a84590273d Merge 3 u8_t for netconn-internal status into one u8_t 'flags' to prevent waisting memory when adding more flags 16 years ago
goldsimon b0b4290c29 Reduced the time SYS_ARCH_PROTECT is protecting the socket array 16 years ago
goldsimon 848debf999 Fixed bug #28818 (New connection probably not marked writable on accept()) introduced a week ago while implementing non-blocking connect 16 years ago
goldsimon 5d360a6711 Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier. 16 years ago