Commit Graph

  • 1b14c2e7b0 sockets: fix printf warning in gcc goldsimon 2017-03-10 07:56:14 +01:00
  • 2c77560870 My first try at 'recvmsg()', TCP only, for now... goldsimon 2017-03-09 21:49:55 +01:00
  • e9e9ec23b8 tcp unit tests: fixed that tcp_teardown() could lead to accessing a netif pointer that is not valid any more (netif added in test function stored on stack) goldsimon 2017-03-09 20:23:16 +01:00
  • 7ffe5bfb3c tcp: watch out for pcb->nrtx overflows and tcp_backoff indexing overflow goldsimon 2017-03-09 13:29:41 +01:00
  • 5827c168c2 tcp: do not keep sending SYNs when getting ACKs David van Moolenbroek 2017-03-08 19:43:15 +00:00
  • b90a54f989 bug #50476: initialize ssthresh to TCP_SND_BUF Joel Cunningham 2017-03-07 20:53:02 -06:00
  • fd9ac30062 Fix dual-stack build failure in lwip_sendmsg Joel Cunningham 2017-03-08 16:32:35 -06:00
  • e16d10ade6 PPP: remove unused and confusing return values other than ERR_OK for ppp_connect and ppp_listen Sylvain Rochet 2017-03-08 22:17:40 +01:00
  • aff1935e40 arch.h: include <limits.h> if it exists (at least INT_MAX is used) goldsimon 2017-03-08 20:30:48 +01:00
  • c9efb7a72c added missing define for MSG_NOSIGNAL goldsimon 2017-03-08 19:57:10 +01:00
  • c797222407 lwip_sendmsg: implement EMSGSIZE checks goldsimon 2017-03-07 21:48:59 +01:00
  • c9d0192b4a lwip_sendmsg: small performance improvement: netbuf can be allocated on the stack as it is used internally only (see lwip_sendto) goldsimon 2017-03-07 21:43:23 +01:00
  • 270fdfff07 netconn_write_vectors_partly() watch out for overflow of data to send (must fit into INT_MAX for sockets) goldsimon 2017-03-07 21:30:03 +01:00
  • 4dd378b126 socket sendto: gracefully handle 'size' not fitting into an u16_t (return EMSGSIZE error) see task #14378 goldsimon 2017-03-07 20:56:37 +01:00
  • 5c33efe430 minor: indentation fix goldsimon 2017-03-07 20:37:52 +01:00
  • 194803a3a7 netbuf: correctly reset netbuf checksum for LWIP_CHECKSUM_ON_COPY==1 goldsimon 2017-03-07 20:37:06 +01:00
  • c6c693923e One more try to fix the build... goldsimon 2017-03-07 09:45:01 +01:00
  • 53f717338b sockets: fixed printf format (not reported by mingw port due to -Wno-format) goldsimon 2017-03-07 08:59:26 +01:00
  • b71d4477ea socket tcp performance tweak: handle window update (call into tcpipi_thread) only once per recv for multi-segment receives goldsimon 2017-03-06 22:22:22 +01:00
  • f0bc2fa968 netconn_tcp_recvd should take u32_t, not u16_t (as used in msg) goldsimon 2017-03-06 22:20:41 +01:00
  • f02119af62 lwip_recvfrom: fix tcp socket error handling goldsimon 2017-03-06 22:13:58 +01:00
  • 04bff63f49 sockets: netconn event callback is only used for select (nonblocking sockets are now implemented at netconn layer) -> add option LWIP_SOCKET_SELECT to reflect this goldsimon 2017-03-06 22:06:53 +01:00
  • c77a7fe824 lwip_recv_tcp: fix full-duplex: remove invalid calls to done_socket() goldsimon 2017-03-06 22:03:02 +01:00
  • 30be7b582e sockets: remove sock->lastoffset and free unused pbufs instead (using pbuf_free_header) goldsimon 2017-03-06 21:54:50 +01:00
  • 49414826af pbuf: added new function pbuf_free_header() to gradually hide bytes and free pbufs from the front of a pbuf chain goldsimon 2017-03-06 21:53:48 +01:00
  • c295717ce7 sockets: clean up all the if/else in lwip_recvfrom and use new nonblocking features in netconn API: I'm OK with code duplication if it gets more readable :-/ goldsimon 2017-03-06 21:50:42 +01:00
  • 1945582c10 netconn: added receive flag NETCONN_NOAUTORCVD and netconn_tcp_recvd() to delay rx window updates (e.g. when receiving more data as performance improvement) goldsimon 2017-03-06 21:33:35 +01:00
  • b86787c39c Improve code readability by moving tcp-specific functionality from netconn_recv_data() to new static function netconn_recv_data_tcp() since all tcp code paths are different anyway goldsimon 2017-03-06 21:27:33 +01:00
  • e15e504217 Some minor SNMPv3 related cleanups Dirk Ziegelmeier 2017-03-06 09:38:58 +01:00
  • dd4ded3978 do_writemore: fix blocking bug Joel Cunningham 2017-03-04 12:29:43 -06:00
  • 02be2f8f42 Move snmpv3_dummy.* from main lwIP rep to contrib Dirk Ziegelmeier 2017-03-03 13:42:37 +01:00
  • 9719c52e62 SNMPv3: Missed two locations where the new enums can be used Dirk Ziegelmeier 2017-03-03 13:21:22 +01:00
  • c961ac70b6 Fixump snmp/snmpv3_dummy.h copyright header Dirk Ziegelmeier 2017-03-03 13:17:06 +01:00
  • 6f485cc870 snmp/snmpv3_dummy.c: Set default configuration in snmpv3_dummy_init() (Note: snmpv3_dummy.* will be moved to lwip-contrib soon) Dirk Ziegelmeier 2017-03-03 13:12:47 +01:00
  • 461f1fe1a9 More SNMPv3 cleanups: Create own header snmpv3_dummy.h and move functions in there Decouple snmp_netconn.c from snmpv3_dummy.c (snmpv3_enginetime_timer) Make SNMP API more type-safe using enums Dirk Ziegelmeier 2017-03-03 13:01:04 +01:00
  • ecb3867803 SNMPv3: Rename tcpip_enginetime_timer to snmpv3_enginetime_timer Dirk Ziegelmeier 2017-03-03 12:32:22 +01:00
  • 927990d94e One enum icmp_te_type member is not in doxygen docs - fix it. Dirk Ziegelmeier 2017-03-03 09:56:06 +01:00
  • 2980f7cc58 Vectorize netconn_write for TCP Joel Cunningham 2017-02-27 11:09:33 -06:00
  • 3feb748fee Simplify lwip_accept() and lwip_ioctl() by relying on nonblocking netconn functions instead of sock->rcvevent goldsimon 2017-03-02 20:47:02 +01:00
  • 5c3bb19923 added nonblocking accept/recv to netconn API (task #14396) (also added netconn_recv_udp_raw_netbuf_flags() and netconn_recv_tcp_pbuf_flags() to pass socket-like flags to nonblock for one call only) goldsimon 2017-03-02 20:38:11 +01:00
  • 593b211d1b A few more SNMPv3 cleanups Dirk Ziegelmeier 2017-03-02 11:18:49 +01:00
  • 1b3aaef525 lwip_sendmsg/tcp: prevent PSH until all iovecs are enqueued goldsimon 2017-03-02 09:27:32 +01:00
  • 3fa3bf0570 Undo accidental activation of SNMPv3 code in my last commit Dirk Ziegelmeier 2017-03-02 07:50:34 +01:00
  • 0065cd915f Several Win32 compile fixes in SNMP code Dirk Ziegelmeier 2017-03-02 07:49:42 +01:00
  • 83de16678c SNMP: TABs -> spaces Dirk Ziegelmeier 2017-03-02 07:33:18 +01:00
  • fe6e1bd4af httpd: LWIP_HTTPD_POST_MANUAL_WND: fixed double-free when httpd_post_data_recved is called nested from httpd_post_receive_data() (bug #50424) goldsimon 2017-03-01 22:08:05 +01:00
  • 168fa1c38a Fix compiling httpd for LWIP_HTTPD_SUPPORT_POST==1 (assigning int to u16_t) goldsimon 2017-03-01 20:31:56 +01:00
  • f0975b3c59 make tcp apps depend on LWIP_CALLBACK_API, too goldsimon 2017-02-28 12:19:16 +01:00
  • 563932b888 tcp: fixed bug #50418: LWIP_EVENT_API: fix invalid calbacks for SYN_RCVD pcb goldsimon 2017-02-28 12:13:26 +01:00
  • 05a595f745 httpd: LWIP_HTTPD_POST_MANUAL_WND: fixed double-free when httpd_post_data_recved is called nested from httpd_post_receive_data() (bug #50424) goldsimon 2017-03-01 22:08:05 +01:00
  • 5f0fbdcde9 fixed warning about potentially unused variable 'netif' after changing ip4/6_input_accept to return in, not netif* goldsimon 2017-03-01 21:46:36 +01:00
  • ea41480232 Replace several C++ style comments by C-style Dirk Ziegelmeier 2017-03-01 21:25:03 +01:00
  • 4ef21e2597 Fix compile when SNMPv3 is disabled Dirk Ziegelmeier 2017-03-01 20:23:55 +01:00
  • 78cdbff1b3 Several compile fixes for Marco's patch Dirk Ziegelmeier 2017-03-01 20:17:22 +01:00
  • 576a8228c2 Add new files to Filelists.ml Dirk Ziegelmeier 2017-03-01 20:00:15 +01:00
  • fef7ce3c0d Some whitespace fixes to Marco's patches Dirk Ziegelmeier 2017-03-01 20:00:00 +01:00
  • f0605a510f Modified the snmpv3_dummy implementation to be more functional. Marco 2017-03-01 16:57:03 +01:00
  • 3b8bb580e4 Add framework MIB and USM mib if SNMPv3 is enabled. Marco 2017-03-01 16:55:03 +01:00
  • 4b97f2bb8e Implemented usm mib. Marco 2017-03-01 16:54:18 +01:00
  • 46df850cb9 Implemented framework mib. Marco 2017-03-01 16:53:24 +01:00
  • f8f3cc039a Start a timer for enginetime handling. Marco 2017-03-01 16:18:51 +01:00
  • f092d09121 Added handling invalid packets in SNMPv3. Marco 2017-03-01 16:13:45 +01:00
  • 78806001e5 Made accepted SNMP version runtime configurable. Marco 2017-03-01 15:39:44 +01:00
  • 8fd09d4608 Added missing context specific tags. Marco 2017-03-01 15:32:43 +01:00
  • ec044e826e Replaced old LWIP_SNMPV3_GET_ENGINE_BOOTS macro. Marco 2017-03-01 15:19:25 +01:00
  • a9bfe7b72f Fix compiling httpd for LWIP_HTTPD_SUPPORT_POST==1 (assigning int to u16_t) goldsimon 2017-03-01 20:31:56 +01:00
  • 0d585d55d3 Added LWIP_SINGLE_NETIF for small targets with only one netif (see task #13515, there might be more optimizations to come with this option) goldsimon 2017-03-01 16:10:50 +01:00
  • f978a7ed31 let ip4/6_input_accept return int instead of netif* goldsimon 2017-03-01 14:16:27 +01:00
  • 18c7c5d81c fixed my last commit (NETIF_FOREACH does not yet exist :) goldsimon 2017-03-01 14:12:50 +01:00
  • 7c9a6317b9 refactor ip4/ip6 packet-to-netif matching to remove the ugly 'first' flag goldsimon 2017-03-01 14:09:18 +01:00
  • ec4f00179d Fix bug #50242: dhcp_release does not stop autoip (in coop mode) Create new function dhcp_release_and_stop() that stops DHCP statemachine and sends release message if needed. Also stops AUTOIP if in coop mode. Old dhcp_release() and dhcp_stop() function internally call dhcp_release_and_stop() now. Dirk Ziegelmeier 2017-03-01 13:18:37 +01:00
  • d8135f9ae2 Fix bug #50427: SNMP: ifIndex should use netif_get_index() We have netif_get_index(netif) now Dirk Ziegelmeier 2017-03-01 12:34:47 +01:00
  • 1741edf159 make tcp apps depend on LWIP_CALLBACK_API, too goldsimon 2017-02-28 12:19:16 +01:00
  • f85eed0ab3 tcp: fixed bug #50418: LWIP_EVENT_API: fix invalid calbacks for SYN_RCVD pcb goldsimon 2017-02-28 12:13:26 +01:00
  • d3fc398580 arp/ndp: allow overriding the decision to copy pbufs David van Moolenbroek 2017-02-27 14:43:58 +00:00
  • 8849a443a4 pbuf_ref: assert-check for 'ref' overflow goldsimon 2017-02-23 20:16:51 +01:00
  • e318688195 Improved DNS_LOCAL_HOSTLIST interface (bug #50325) goldsimon 2017-02-17 10:08:49 +01:00
  • fa8b6a92b4 Fix portable initialization of non-dynamic DNS_LOCAL_HOSTLIST goldsimon 2017-02-17 09:25:31 +01:00
  • 2ca39c275a LWIP_NETCONN_FULLDUPLEX: fixed shutdown during write (bug #50274) sg 2017-02-16 22:09:02 +01:00
  • 4d1d567ab7 Fix comment typo from bug #47485 Joel Cunningham 2017-02-13 11:25:05 -06:00
  • 8927cda2f8 For tiny targtes, LWIP_RAND is optional -> fix compile time checks goldsimon 2017-02-13 11:43:25 +01:00
  • bc78251f4a My documentation changes forced the usage of rand() function, which is not desired By default, the code that does NOT need LWIP_RAND() is active now Dirk Ziegelmeier 2017-02-13 10:37:29 +01:00
  • 0a3e4cd10e tcp: fix accept event on closed listening PCBs David van Moolenbroek 2017-02-10 17:26:38 +00:00
  • 76efa271e6 Implement task #14367: Hooks need a better place to be defined We now have a #define for a header file name that is #included in every .c file that provides hooks. Dirk Ziegelmeier 2017-02-10 13:25:04 +01:00
  • b3293d903e Fixed bug #47485 (tcp_close() should not fail on memory error) by retrying to send FIN from tcp_fasttmr goldsimon 2017-02-10 09:42:38 +01:00
  • 5ef8a3cb60 igmp.c: igmp_lookup_group() should be static (cherry picked from commit 702091d548ca75aaea7e3e9f4433c6505260302b) Dirk Ziegelmeier 2017-02-09 21:08:40 +01:00
  • 01c2e43c5c Fixed bug #44032 (LWIP_NETCONN_FULLDUPLEX: select might work on invalid/reused socket) by not allowing to reallocate a socket that has "select_waiting != 0" sg 2017-02-09 20:41:27 +01:00
  • 0b7bef5420 http_add_connection: add connections to the front to be faster (and really fix bug #50059) goldsimon 2017-02-09 13:08:17 +01:00
  • 3c4aec99a4 Fixed bug #50059 (httpd LWIP_HTTPD_SUPPORT_11_KEEPALIVE vs. LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED) goldsimon 2017-02-09 13:01:37 +01:00
  • dc38e21a70 Fix bug #50220 (mld6_leavegroup does not send ICMP6_TYPE_MLD, even if last reporter) Luc Revardel 2017-02-08 22:29:32 +01:00
  • d471e5f89e Patch #9250 (slightly changed): fix source substitution in ip6_output_if() (broken in 2014 with be75c483d0adae9ce786e3e2d5760f8e37005ac7) David van Moolenbroek 2017-02-08 22:16:32 +01:00
  • 99ef13f2be Fixed bug #50090 (ast_unsent->oversize_left can become wrong value in tcp_write error path) sg 2017-02-08 21:42:30 +01:00
  • bb2b2be454 Fix bug #50206: UDP Netconn bind to IP6_ADDR_ANY fails The tests were in to catch user errors, but they seem to get in the way of application programming :-) The checks in *_send() remain active to catch when PCB source and destination address types do not match Dirk Ziegelmeier 2017-02-02 10:25:05 +01:00
  • faa7a21a83 Fix comment on lwip_shutdown() (it's not unimplemented any more) goldsimon 2017-02-01 10:09:37 +01:00
  • d6e8e05edd stats: Remove superfluous /t in end of stats display Axel Lin 2017-01-31 15:31:06 +08:00
  • 0b299f96e9 Add CHANGELOG to lwIP HTML documentation Dirk Ziegelmeier 2017-01-24 11:45:51 +01:00
  • 777d54f0e4 Retry 1 to fix bug #50064 Accidentally used the wrong destination HW addr Dirk Ziegelmeier 2017-01-18 13:43:01 +01:00
  • 8c6ac8eb59 Optimize my last fix in etharp.c, I missed the variable declaration at the beginning of the function Dirk Ziegelmeier 2017-01-18 13:21:11 +01:00
  • 4fc3770278 Remove special ARP reply optimization from etharp.c - Code duplication with etharp_raw() - No great effect on perfomance - May make reworking PBUF handling code more complicated (see bug #49914) - The check for p->type == PBUF_REF is a strange special case, too - Simon also voted to remove it Dirk Ziegelmeier 2017-01-18 12:25:09 +01:00
  • e53c84654e Fix bug #50064: Zero-copy RX: ARP reply fails with PBUF_REF Kept the optimized version intact, see discussion in savannah bug tracker Dirk Ziegelmeier 2017-01-18 10:15:02 +01:00