193 Commits (acbdf63a480bb92b44cea2176acb35a60464ea43)

Author SHA1 Message Date
goldsimon 902d190a11 Many const fixes throughout the stack (although these are not all, yet) 11 years ago
sg c1c65777b6 worked on task #13480: added LWIP_IPV4 define - IPv4 can be disabled, leaving an IPv6-only stack (SNMP is still missing) 11 years ago
sg ce7e31cd04 task #12722 (improve IPv4/v6 address handling): renamed ip_addr_t to ip4_addr_t, renamed ipX_addr_t to ip_addr_t and added IP version; 11 years ago
sg 9eb900c448 fixed race conditions in assigning netconn->last_err (fixed bugs #38121 and #37676) 11 years ago
sg 3e8ac30940 Fixed bug #44297 (CORE_LOCKING was broken some days ago); fixed that netconn_connect still used message passing for LWIP_TCPIP_CORE_LOCKING==1 11 years ago
sg ec5cf8593e Continued chrysn's work: changed nearly all functions taking 'ip(X)_addr_t' pointer to take const pointers (changed user callbacks: raw_recv_fn, udp_recv_fn; changed port callbacks: netif_output_fn, netif_igmp_mac_filter_fn) 11 years ago
sg 2cfc9e286e "Not connected" shouldn't be fatal (as opposed to "closed") 11 years ago
sg 604a92dc3d fixed bug #38853 "connect() use a wrong errno": return ERR_ALREADY/EALRADY during connect, ERR_ISCONN/EISCONN when already connected 11 years ago
goldsimon 0963e91c34 api_msg_c: fixed compiler warning (added brackets in if statement) 11 years ago
goldsimon 5d13b5a2fb fixed bug #37614 "Errors from ipX_output are not processed". Now tcp_output(_segment) checks for the return value of ipX_output and does not try to send more on error. A netif driver can call tcp_txnow() (from tcpip_thread!) to try to send again if TX buffers are available again. 11 years ago
sg 276e35ecfb Fixed a bug in linger-closing when LWIP_TCPIP_CORE_LOCKING==1 11 years ago
sg 7ff9825f55 started to implement fullduplex sockets/netconns (note that this is highly unstable yet!) 11 years ago
sg 6c3f6cfd89 netconn/socket api: fixed bug #44225 "closing TCP socket should time out eventually", implemented task #6930 "Implement SO_LINGER": closing TCP sockets times out after 20 seconds or after the configured SND_TIMEOUT or depending on the linger settings; fixed that netconn_close/netconn_delete still used message passing for LWIP_TCPIP_CORE_LOCKING==1 11 years ago
sg ec68aaf43b fixed that SHUT_RD followed by SHUT_WR was different to SHUT_RDWR, fixed return value of lwip_netconn_do_close on unconnected netconns 11 years ago
goldsimon 24df78bcbc fixed that lwip_netconn_do_delconn() did not set msg->err on success (just introduced that bug this weekend...) 11 years ago
sg cacdbb5262 added option LWIP_NETCONN_SEM_PER_THREAD to use a semaphore per thread instead of using one per netconn and per select call 11 years ago
goldsimon aecbce283d fixed bug #38219 Assert on TCP netconn_write with sndtimeout set 12 years ago
Simon Goldschmidt 4b9883a573 DNS: does not support IPv6, may return a name cased different than the request (when multiple requests are combined to one) 12 years ago
Simon Goldschmidt 3c40d93f36 fixed bug #43110 (call getpeername() before listen() will cause a error) by re-sorting the error numbers and letting listen() continue on ERR_CONN 12 years ago
Simon Goldschmidt 3f016fcc5a Multiple small/minor issues: bug #36492 Static Analysis on code 1.4.0 12 years ago
Simon Goldschmidt c60635855d fixed bug #38404 getpeeraddr returns success on unconnected/listening TCP sockets 12 years ago
Simon Goldschmidt e2c2afbbe0 patch #7885: modification of api modules to support FreeRTOS-MPU (don't pass stack-pointers to other threads) (based on patch by Artem Pisarenko) 12 years ago
Simon Goldschmidt 097bc4c622 patch #8008 Fix a potential null pointer dereference in assert 13 years ago
goldsimon a4a41b9023 fixed bug #37405 'err_tcp()' uses already freed 'netconn' object 14 years ago
goldsimon a070751061 fixed bug #37052: "netconn_alloc: undefined netconn_type" assertion skipped 14 years ago
James Smith e65202f825 Applied patch by James Smith to implement IPV6_V6ONLY support in 14 years ago
goldsimon 8dbf572ea5 Fixed bug #35817: do_connect() invalidly signals op_completed for UDP/RAW with LWIP_TCPIP_CORE_LOCKING==1 14 years ago
goldsimon f8af1a7443 fixed bug #35931: Name space pollution in api_msg.c and netifapi.c 14 years ago
Simon Goldschmidt e039d4103f fixed bug #34569: shutdown(SHUT_WR) crashes netconn/socket api 15 years ago
Simon Goldschmidt a2aa43a426 Implemented timeout on send (TCP only, bug #33820) 15 years ago
Simon Goldschmidt d0877153bf netconn_alloc(): return on invalid protocol instead of initializing mbox size to 0 15 years ago
Simon Goldschmidt f64808c385 fixed bug #33956 Wrong error returned when calling accept() on UDP connections 15 years ago
Ivan Delamer b5305d5a8c Initialize recvmbox size for undefined netconn type, to supress 15 years ago
Simon Goldschmidt 46af0d38fa fixed bug #31084 (socket API returns always EMSGSIZE on non-blocking sockets if data size > send buffers) -> now lwip_send() sends as much as possible for non-blocking sockets and only returns EWOULDBLOCK if the buffers are full 15 years ago
goldsimon 2aec3a9789 use PCB_IS_IPV6(pcb) instead of pcb->isipv6 everywhere 15 years ago
goldsimon 6865806b55 Combined IPv4 and IPv6 code where possible, added defines to access IPv4/IPv6 in non-IP code so that the code is more readable. 15 years ago
goldsimon 4bfbe7ebeb ... and finally, we got a first working version of a dual-stack lwIP runnin IPv4 and IPv6 in parallel - big thanks to Ivan Delamer! (this is work in progress, so please beware, test a lot and report problems!) 15 years ago
goldsimon 7203680146 fixed bug #31748 (Calling non-blocking connect more than once can render a socket useless) since it mainly involves changing "FATAL" classification of error codes: ERR_USE and ERR_ISCONN just aren't fatal. 15 years ago
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) 15 years ago
goldsimon d73262a0e5 Fixed compilation with TCP or UDP disabled. 16 years ago
goldsimon 48be546357 fixed bug #30300 (shutdown parameter was not initialized in netconn_delete) 16 years ago
goldsimon 6929a786aa Fixed bug #10088: Correctly implemented shutdown at socket level. 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 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 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 0a49f2e068 Corrected spelling of ERR_WOULDBLOCK (D was missing) 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