Commit Graph

  • 1cf9fc0d39 Update doxygen version to 2.0.3 as in init.h Dirk Ziegelmeier 2017-03-16 08:40:27 +01:00
  • f9872c519c memp.h: added missing include goldsimon 2017-03-17 08:55:10 +01:00
  • a4017a485c Fix coding style NO_SYS example code (cherry picked from commit b9a40a5163b78cf186169fc878f5a655fee20261) Dirk Ziegelmeier 2017-03-15 20:16:52 +01:00
  • 2490d034cd Fix starting DHCP in NO_SYS example code (cherry picked from commit da0714d7cb8f8b617bd241ea37ccab23ac82c951) Dirk Ziegelmeier 2017-03-15 20:09:39 +01:00
  • 282e85763b lwip_init(): at least IAR warns about "LWIP_UNUSED_ARG(a)" accessing an uninitialized variable... Try to fix this by initializing it (it will be optimized away anyway) goldsimon 2017-03-15 16:47:59 +01:00
  • 5c0054d8ee Remove double free on select_cb (bug #51990) Joel Cunningham 2017-09-13 16:51:03 -05:00
  • 7ba479e482 Try to fix clang runtime errors during unit tests (see bug #51652) goldsimon 2017-09-12 21:51:50 +02:00
  • 92b6f83eb2 Slightly rework the fix for bug #51990: allocate select_cb only if we actually need to wait goldsimon 2017-09-12 21:37:48 +02:00
  • 72a00ca79c Fixed bug #51990: Calling select() from different threads with MPU enabled triggers memory protection fault David Lockyer 2017-09-12 21:19:54 +02:00
  • 445eef2b0e sockets: add readv() implementation (task #14610) Joel Cunningham 2017-09-10 22:37:40 -05:00
  • 558480a5b9 add bug #51937 to CHANGELOG goldsimon 2017-09-11 21:37:28 +02:00
  • 630c4a3de3 try to fix building unit test on gcc/clang goldsimon 2017-09-11 11:10:42 +02:00
  • b7e5de389e Fixed removing unneeded TCP SACKs Jakub Schmidtke 2017-09-08 16:06:49 -04:00
  • 86abfbe087 Fix bug #51937 by checking TF_CLOSED at the end of all pcb callbacks in tcp_input() goldsimon 2017-09-09 21:46:41 +02:00
  • a8ac37f419 refactor tcp_input a bit in preparation of a fix for bug #51937 goldsimon 2017-09-09 21:41:06 +02:00
  • 48c687ea84 tcp_remove_all() (used in tcp test setup/teardown): handle tcp_bound_pcbs, too goldsimon 2017-09-05 22:20:44 +02:00
  • cf651e7e0f add test case that shows what's wrong for bug #51937 (Leaking tcp_pcbs on passive close with unacked data) goldsimon 2017-09-05 22:19:38 +02:00
  • fca38fda1a remove unnecessary lines from last added test case goldsimon 2017-09-05 22:18:52 +02:00
  • 8c04009357 add unit test case for passive open & (invalid) bug #51941 goldsimon 2017-09-05 21:47:06 +02:00
  • dc7a9c8c37 tcp_in: correct some loops continuing without maintaining a prev pointer. Our Air Quality 2017-09-04 07:26:15 +10:00
  • 28e519b72d tcp_output: move useg assignment to right before segment while loop Joel Cunningham 2017-08-29 16:54:53 -05:00
  • 1d4ca0bff6 Fix bug #51687 (tcp_close(): is it OK to return ERR_MEM if TF_CLOSEPEND is set?) goldsimon 2017-08-28 21:59:05 +02:00
  • e749678eed Fix function signature of fcntl() for LWIP_COMPAT_SOCKETS == 2 && LWIP_POSIX_SOCKETS_IO_NAMES (see bug #51701) goldsimon 2017-08-25 22:07:14 +02:00
  • c7edfdf987 Fix bug #51765 and fix commit 90873d6: call tcp_rexmit_fast() more than once on dupacks since the actual transmission is guarded by TF_INFR, not by pcb->dupacks goldsimon 2017-08-25 21:16:59 +02:00
  • f582c88339 tcp: persist timer re-work (bug #50837) Joel Cunningham 2017-08-04 12:50:47 -05:00
  • 2e4867fcde api_msg: Remove superfluous NETIF_NO_INDEX checking Axel Lin 2017-08-24 10:25:44 +08:00
  • 1ed1cfe83a TCP: simplify trimming left edge & use pbuf_remove_header() instead of pbuf_header() goldsimon 2017-08-21 22:34:44 +02:00
  • 22ee33951b TCP: added a unit test for trimming left side of rx segment goldsimon 2017-08-21 22:34:01 +02:00
  • bd8709bc82 Simplify pbuf_remove_header() a bit goldsimon 2017-08-21 22:33:01 +02:00
  • 3c5398403d fix pbuf_split_64k() for zero-length pbufs goldsimon 2017-08-21 22:08:53 +02:00
  • b9d3812ee8 Add assertion that netif index is within sane range in sockets.h. We can assert here since lwIP only supports <= 255 netifs due to netif index being an u8_t. Dirk Ziegelmeier 2017-08-21 21:27:12 +02:00
  • fa51a7225a lwip_socket_drop_registered_mld6_memberships: Fix if_idx got lost :-( Dirk Ziegelmeier 2017-08-21 09:46:08 +02:00
  • 6082251854 Use netconn_join_leave_group_netif() in sockets.c, lwip_socket_drop_registered_mld6_memberships to avoid threading issues (reported by Joel Cunningham) Dirk Ziegelmeier 2017-08-21 09:43:34 +02:00
  • f457769fe8 Add netconn_join_leave_group_netif() that takes netif index as argument Dirk Ziegelmeier 2017-08-21 09:42:57 +02:00
  • d0e0afb46a sockets.c, lwip_socket_drop_registered_mld6_memberships: Remove membership from socket_ipv6_multicast_memberships even if netif cannot be found Dirk Ziegelmeier 2017-08-21 09:30:23 +02:00
  • 3bdb34886c sockets IPv6: cast interface index to u8_t Joel Cunningham 2017-08-17 08:54:50 -05:00
  • 339ec17cf0 Fixup my last commit Dirk Ziegelmeier 2017-08-16 17:36:19 +02:00
  • e58e398267 Implement IPv6 IPV6_JOIN_GROUP/IPV6_LEAVE_GROUP socket options Dirk Ziegelmeier 2017-08-16 17:34:09 +02:00
  • 9d74883491 Moving eth_type to iana.h was incorrect - these are assigned by IEEE. IANA published a document containing these numbers, but does not assign them. I didn't see that in the first place :-( Now we have ieee.h, too. Dirk Ziegelmeier 2017-08-15 13:50:12 +02:00
  • c6fac10b62 Rename eth_type enum in iana.h to be prefixed with lwip_iana_ Dirk Ziegelmeier 2017-08-15 13:42:39 +02:00
  • aaee7ed1e7 Improve documentation in iana.h Dirk Ziegelmeier 2017-08-15 13:40:37 +02:00
  • 2013f4cbd4 Move eth_type definition to iana.h Dirk Ziegelmeier 2017-08-15 13:35:30 +02:00
  • 772bf96752 Fix makefsdata.c on Win32 after moving to tinydir.h Dirk Ziegelmeier 2017-08-14 09:13:36 +02:00
  • 01bbbdb19f More makefsdata fixes: - fix lwip_itoa usage was totally messed up - fix size_t format string was missing % prefix Dirk Ziegelmeier 2017-08-11 22:46:12 +02:00
  • 8878a042dc Apply patch #9399: makefsdata for linux + some more fixes in compiling under Linux by Dirk Ziegelmeier Dirk Ziegelmeier 2017-08-11 22:32:03 +02:00
  • 9844049cb1 lwip_itoa: fix converting 0 (bug #51729) Joel Cunningham 2017-08-11 10:16:50 -05:00
  • 0cf405e24f Fix that the socket option IPV6ONLY can only be set on TCP sockets Reported by Andrej Butok Dirk Ziegelmeier 2017-08-10 09:14:31 +02:00
  • 3d82155d29 tcp: use TCP_WND_INC for dupack > 3 case Joel Cunningham 2017-08-09 16:28:55 -05:00
  • b8a3cf3a4a tcp: use tcp_set_flags() rather than manually setting flag Joel Cunningham 2017-08-09 12:15:52 -05:00
  • ba7a3204cb tcp: use tcp_ack_now rather than manually setting TF_ACK_NOW Joel Cunningham 2017-08-09 10:13:41 -05:00
  • 90873d6c71 Continue fixing the spirit of bug #51663: don't change pcb state if retransmission can't be done because segments are still queued for transmission goldsimon 2017-08-08 23:02:14 +02:00
  • 6a01607004 tcp_out rto: delay re-transmission earlier if link writes are deferred. Our Air Quality 2017-08-05 19:18:21 +10:00
  • 902d393aef tcp: map tcp_ack_now() directly to tcp_set_flags() Joel Cunningham 2017-08-08 14:44:28 -05:00
  • fed916b852 tiny doc change to LWIP_HOOK_IP4_ROUTE_SRC goldsimon 2017-08-08 21:03:41 +02:00
  • 991f751305 Even more pbuf_header -> pbuf_add/remove_header replacements (also in strings) goldsimon 2017-08-08 20:51:57 +02:00
  • 07434aa73a More pbuf_header -> pbuf_add/remove_header replacements goldsimon 2017-08-08 20:40:26 +02:00
  • 47a4be83e4 CHANGELOG/UPGRADING: Also mention that LWIP_HOOK_IP4_ROUTE_SRC has changed, too Dirk Ziegelmeier 2017-08-08 13:13:46 +02:00
  • 6d28e9de79 Some cleanups after applying David Girault's altcp patches goldsimon 2017-08-08 12:53:57 +02:00
  • bc3edfb4d7 altcp_tls_mbedtls: remove "rx pbufs left at end of handshake" assert David Girault 2017-08-01 10:46:22 +02:00
  • 0486100a2b altcp_tls: some fixes David Girault 2017-08-07 15:45:11 +02:00
  • ee89d906ec altcp_tcp: some fixes David Girault 2017-08-07 15:43:58 +02:00
  • 9d120c59ea altcp: fix altcp_free David Girault 2017-06-27 13:17:17 +02:00
  • 8b1a4ef711 altcp_tls_mbedtls: fix log messages by include a \n David Girault 2017-06-06 19:04:05 +02:00
  • 60dd518887 Implement task #14594: Improve consistency of ip route API parameters reverse parameters of ip4_route_src to be consistent with other ip*_route* functions This commit will break applications using this function! Dirk Ziegelmeier 2017-08-08 12:41:19 +02:00
  • 145d6ab5d2 test_etharp.c: IANA_HWTYPE_ETHERNET -> LWIP_IANA_HWTYPE_ETHERNET Dirk Ziegelmeier 2017-08-08 12:20:56 +02:00
  • ae7c76c773 Rework pbuf_add_header_impl to only modify the pbuf after all checks passed goldsimon 2017-08-08 12:19:06 +02:00
  • 6209c8d347 Fix bug #51686: pbuf_remove_header: silence unused variable warning but in another way than the provided patch Dirk Ziegelmeier 2017-08-08 12:13:45 +02:00
  • e65a388c1f ip4.c does not need to #include prot/dhcp.h any more Dirk Ziegelmeier 2017-08-08 11:49:00 +02:00
  • 1c91118f4a Add DHCP ports to iana.h Dirk Ziegelmeier 2017-08-08 11:46:15 +02:00
  • 0eb8d19e82 Move several port number #defines to iana.h Dirk Ziegelmeier 2017-08-08 11:37:08 +02:00
  • 5193844ac4 iana.h: Prefix #defines with LWIP_ Dirk Ziegelmeier 2017-08-08 11:21:11 +02:00
  • 79a08c9fee tcp.c: Remove side-effects from boolean expressions Dirk Ziegelmeier 2017-08-07 12:13:29 +02:00
  • b54bf3ccca ASytleRC: Don't indent prepocessor blocks for now Dirk Ziegelmeier 2017-08-04 10:26:53 +02:00
  • 51c4bc55a0 iana.h: added RFC goldsimon 2017-08-07 22:07:09 +02:00
  • 629ec98dd8 Work on task #14587: Create common header for IANA assigned numbers Create include/lwip/prot/iana.h Move DHCP and ARP #define in there Dirk Ziegelmeier 2017-08-07 21:06:19 +02:00
  • 42fd01547d Fix bug #51681: mqtt: cannot free client Add free function Dirk Ziegelmeier 2017-08-07 20:43:25 +02:00
  • 4fb7fab850 Fix docs on dhcp_option_trailer() goldsimon 2017-08-07 08:08:24 +02:00
  • ff588fc771 dhcp: quieten a compile unused variable warning Our Air Quality 2017-08-05 20:16:16 +10:00
  • a1c7924cb6 task #14597: cleanup pbuf_header usages (use pbuf_add_header/pbuf_remove_header instead) goldsimon 2017-08-04 22:38:11 +02:00
  • 1981cf39d1 opt.h: improved hooks documentation by adding function signatures for all hooks goldsimon 2017-08-04 21:55:10 +02:00
  • a681f6b04f Fix using LWIP_HOOK_DHCP_PARSE_OPTION after recent dhcp changes goldsimon 2017-08-04 21:53:24 +02:00
  • cd80e38db8 Clean up DHCP a bit: no need keep msg_out and msg_in as members in struct dhcp goldsimon 2017-08-04 21:26:29 +02:00
  • 7b41aba126 Add the last commit to CHANGELOG goldsimon 2017-08-04 21:23:12 +02:00
  • 65ac160e99 Wconversion-related cleanup: split pbuf_header(s16_t) into pbuf_add_header(size_t) and pbuf_remove_header(size_t) goldsimon 2017-08-04 13:15:30 +02:00
  • 22ccc2e2b8 Start working on an astylerc for lwIP (not finished, don't use!) Dirk Ziegelmeier 2017-08-04 09:55:49 +02:00
  • 1e5870ce85 Fix unit tests under linux goldsimon 2017-08-04 06:17:21 +02:00
  • 47f55b02bf Finally fix bug #50088 (socket/netconn: data before RST should be readable) and added a unit test for it goldsimon 2017-08-03 22:28:22 +02:00
  • 4cec20230e Ensure that unit tests leave the stack in a clean state goldsimon 2017-08-03 22:25:33 +02:00
  • 6fa5d02435 tcp: remove extra seg == NULL checks Joel Cunningham 2017-08-03 10:37:16 -05:00
  • 5ea7f507c3 Fixed bugs #51606 and #51535: IPv4 reassembly could be finished although there are holes goldsimon 2017-08-02 21:11:53 +02:00
  • 2781d7abd7 ip6_reass: Move update ip6_frag.drop stats to nullreturn Axel Lin 2017-08-01 18:45:39 +08:00
  • 5d2be3460f docs: update remaining api_msg_msg references Joel Cunningham 2017-08-01 11:56:54 -05:00
  • a81b19aa62 Fixed bug #51623: DHCP request XID should probably be regenerated for INIT-REBOOT goldsimon 2017-07-31 20:20:31 +02:00
  • 2b2ea50cb1 ip4: fix swapped src/dst params with ip4_route_src Joel Cunningham 2017-07-28 16:36:57 -05:00
  • 006bb84368 Fix bug #50883: struct eth_addr alignment does not fit with ETHADDR16_COPY ... by simply removing ETHADDR16_COPY since noone advocated to keep it Dirk Ziegelmeier 2017-07-30 17:48:16 +02:00
  • 500598658d ip4_reass: fixed bug #51596 (Insufficient overlap check) goldsimon 2017-07-28 10:11:45 +02:00
  • 3dedfa3d1f ip4_reass: fixed bug #51597 (Last fragment is assumed to have arrived even if it was discarded) goldsimon 2017-07-28 09:46:56 +02:00
  • f1072fee8a ip4_reass: fixed bug #51595 (ip_reass_pbufcount may be updated incorectly) goldsimon 2017-07-28 09:41:00 +02:00
  • ca76c302f1 Probably fix bug #51602: MQTT Ring buffer 'get' Rollover of get index was wrong Dirk Ziegelmeier 2017-07-28 08:01:30 +02:00
  • ff03ae6f55 dhcp: restart dhcp after releasing. Our Air Quality 2017-07-28 12:30:43 +10:00