Commit Graph

  • 6606c4013f bug #52893: Add 'old_stat' save in LWIP_NSC_IPV6_ADDR_STATE_CHANGED callback message goldsimon 2018-01-25 13:05:33 +01:00
  • fe2c249fb7 bug #52937: raw_input() must tell ip4/6_input() if protocol has been received goldsimon 2018-01-25 12:51:46 +01:00
  • ebda5cb04e ip_addr.h: add IP_ADDR_RAW_SIZE() to know the memcpy size of an IP goldsimon 2018-01-23 06:53:45 +01:00
  • 5b75ad9019 Fix bug #52949: udp_input() checksum error for LWIP_CHECKSUM_CTRL_PER_NETIF goldsimon 2018-01-22 19:51:45 +01:00
  • 84fcd6290e [patch #9548] Add .json to list of SSI file extensions Mike Kleshov 2018-01-22 19:49:10 +01:00
  • 76826c1622 [patch #9547] Bring some comments in httpd.h up to date Mike Kleshov 2018-01-22 19:47:16 +01:00
  • 9dbfa9ca0a lwiperf: enable TCP over IPv6 connections goldsimon 2018-01-19 21:08:51 +01:00
  • a696b2b515 lwiperf: fix testing against iperf 2.0.10 (bug #52901) goldsimon 2018-01-17 20:54:16 +01:00
  • a7a8d9273c sockets_stresstest: replace printf with LWIP_DEBUGF, fix unused arg goldsimon 2018-01-17 19:46:32 +01:00
  • 9cf6bbf573 memp_std.h: make MEMP_PBUF a normal pool goldsimon 2018-01-17 12:54:00 +01:00
  • 2fd2b6810e memp_std.h: fix LWIP_PBUF_MEMPOOL element size for MEMP_OVERFLOW_CHECK goldsimon 2018-01-17 12:51:49 +01:00
  • d12d6abae8 minor whitespace/indentation cleanup goldsimon 2018-01-17 12:27:17 +01:00
  • f3c289d966 sockets: add core lock assert to select_check_waiters Joel Cunningham 2018-01-16 18:51:24 -06:00
  • 8a27408eb2 altcp_tls_mbedtls: hide allocation strategy in altcp_tls_create_config() goldsimon 2018-01-16 21:41:44 +01:00
  • 42f14a96fb altcp_tls: avoid use of static in altcp_tls_config David Girault 2018-01-16 10:35:37 +01:00
  • c7106cc57f altcp_tls: fix pbuf leaked when handshake failed David Girault 2018-01-16 16:55:55 +01:00
  • 30ddfe1a98 Make LWIP_VERSION work with the preprocessor again. goldsimon 2018-01-16 20:37:10 +01:00
  • 51369854b5 Fix bug #52911: SNMPv3 time window check is not the same as RFC3414 Dirk Ziegelmeier 2018-01-16 13:30:31 +01:00
  • 72fc4a6ca5 Documentation - "Common pitfalls": Add some words about buffer alignment Dirk Ziegelmeier 2018-01-16 10:59:42 +01:00
  • 2fd83c9d2e lwiperf: fix double-free of pbufs on recv error goldsimon 2018-01-16 06:54:28 +01:00
  • 330793d94d Fix bug #52880: ethernet_output() Compile error. Dirk Ziegelmeier 2018-01-14 09:24:41 +01:00
  • 28c8693683 mqtt: fix documentation error (remove ':' after param name) goldsimon 2018-01-13 16:09:17 +01:00
  • f343a67b40 netif unit test: add some more tests for ext callbacks goldsimon 2018-01-13 15:22:09 +01:00
  • e645d00484 netif unit test: fix -Werror=c++-compat goldsimon 2018-01-13 15:16:12 +01:00
  • 4a99721751 netif: try to fix gcc error (-Werror=c++-compat) goldsimon 2018-01-13 09:38:18 +01:00
  • 734b6ab57a netif: ensure netif_set_addr() only results in one "ext_status_callback" goldsimon 2018-01-12 23:11:38 +01:00
  • fa75ffed9d unit tests: added test_netif (checking ext_callbacks only, for now) goldsimon 2018-01-12 22:27:15 +01:00
  • 452c6a5378 netif: add netif_remove_ext_callback() (counterpart to netif_add_ext_callback()) goldsimon 2018-01-12 22:25:34 +01:00
  • d115b28057 netif: change netif_nsc_reason_t to flags (preparation only) goldsimon 2018-01-12 22:24:45 +01:00
  • 0b2b22338a tcpip_thread_poll_one: remove invalid comment in this function goldsimon 2018-01-12 20:41:11 +01:00
  • eb51b683ed fix copy & paste error in comment goldsimon 2018-01-12 20:29:12 +01:00
  • 94ad523357 Update lwip.Doxyfile to doxygen 1.8.13 Dirk Ziegelmeier 2018-01-12 15:01:14 +01:00
  • 46cb0a796b Forgot to add LWIP_ASSERT_CORE_LOCKED() to http_continue function Dirk Ziegelmeier 2018-01-12 13:35:20 +01:00
  • 653313cb37 Work on task #14780: Add debug helper asserts to ensure threading/locking requirements are met Dirk Ziegelmeier 2018-01-12 13:15:36 +01:00
  • 67ad6e45db Add assertion that checks for a maximum msecs value for sys_timeout() Dirk Ziegelmeier 2018-01-12 12:38:25 +01:00
  • 990c25d4f3 Add unit test for a long running timer Dirk Ziegelmeier 2018-01-12 12:37:16 +01:00
  • 6ccd12b97c altcp_mbedtls: added altcp_mbedtls_sndbuf implementation David Girault 2018-01-11 10:34:55 +01:00
  • eab1b45cba tcpip: give the tcpip_thread mbox a better name goldsimon 2018-01-11 09:55:59 +01:00
  • b6b14438b7 Rename lwip_sys_timers_get_next_timout() to sys_timeouts_get_next_timeout() Dirk Ziegelmeier 2018-01-11 09:53:07 +01:00
  • c257b56a39 move sys_timeouts_mbox_fetch() to tcpip_timeouts_mbox_fetch() goldsimon 2018-01-11 09:39:36 +01:00
  • 39ada6ec0e ip_addr: Define ip_addr_cmp_zoneless for LWIP_IPV6 only Axel Lin 2018-01-09 16:41:48 +08:00
  • 2d06483d8e ip4_frag: don't use LWIP_ERROR where we might depend in input data goldsimon 2018-01-09 10:24:26 +01:00
  • deab51c36d netif: Remove unnecessary NULL checking in netif_do_set_{ipaddr|netmask|gw} Axel Lin 2018-01-09 15:08:22 +08:00
  • 0795e289eb ip4_reass: fix double-free of pbuf and wrong ip_reass_pbufcount goldsimon 2018-01-09 08:19:03 +01:00
  • efa90d4294 netif: Add LWIP_ASSERT_CORE_LOCKED() to netif_set_remove_callback Axel Lin 2018-01-05 16:05:38 +08:00
  • 05ded5516d Apply patch #9536: netif: Prevent possible NULL pointer dereference in netif_set_addr in a modified version Dirk Ziegelmeier 2018-01-09 07:51:09 +01:00
  • 1affbb4bd5 unit tests: fixed testing itoa with too small buffer goldsimon 2018-01-08 21:38:16 +01:00
  • 8801cbdb30 core: fix lwip_itoa() David Girault 2018-01-08 21:37:31 +01:00
  • d7566216c9 Remove Simon's compile fix in test_timers.c, it is not needed any more. The function is now used. Dirk Ziegelmeier 2018-01-08 13:02:58 +01:00
  • bb0ba64fb0 Work on bug #52748: the bug in timeouts.c - apply Douglas' patch for absolute timeouts with modification to avoid cyclic timer overload situation Dirk Ziegelmeier 2018-01-08 12:48:48 +01:00
  • 5eced48869 Apply timeouts.c simplification from Douglas Dirk Ziegelmeier 2018-01-08 11:16:51 +01:00
  • b6c0c52d66 Fix that one of Douglas' optimizations broke the timers Dirk Ziegelmeier 2018-01-08 09:19:57 +01:00
  • b4768f1711 Once again: Fix build warnings in test_timers.c Dirk Ziegelmeier 2018-01-08 08:34:17 +01:00
  • bbb2e50327 Fix variable shadowing warning in my last commit Dirk Ziegelmeier 2018-01-08 08:12:33 +01:00
  • 3f30bfae28 lwipopts.h for unit tests: Increase number of timeouts Dirk Ziegelmeier 2018-01-08 07:34:38 +01:00
  • a31f8837b5 Partly apply patch from "Douglas" provided in bug #52748: the bug in timeouts.c - Fix sys_untimeout implementation should not modify timer values since we are now using absolute timeouts.c - Cleanup and simplify sys_check_timeouts() implementation - Implement sys_restart_timeouts to rebase all timeouts based on next timer to expire Dirk Ziegelmeier 2018-01-08 07:33:40 +01:00
  • eaca067c7d Make _cyclic_ timers interval more deterministic - next timeout is calculated from last due time instead of relative to current time This eliminates the cyclic timer jitter Dirk Ziegelmeier 2018-01-05 13:45:51 +01:00
  • 2b4dde84e3 Apply modified patch #9533: sys_check_timeouts: recalculate the time diff after each handler call Adapted to new timer implementation Dirk Ziegelmeier 2018-01-05 11:43:48 +01:00
  • dd3861720f Fix bug #52748: the bug in timeouts.c by reimplementing timer logic to use absolute instead of relative timeout values Dirk Ziegelmeier 2018-01-05 11:42:14 +01:00
  • da2478b761 netif: Enclosing macro argument in parentheses for NETIF_FOREACH Axel Lin 2018-01-05 09:52:08 +08:00
  • e415151cf2 minor style change: fixed indentation goldsimon 2018-01-05 21:30:32 +01:00
  • 40c0f21b9e Added dummy sys_mbox_trypost to unit test port goldsimon 2018-01-05 21:30:07 +01:00
  • c4867b878c Try to silence unused function warning in travis goldsimon 2018-01-05 21:12:31 +01:00
  • 8fc20142f7 Added sys_mbox_trypost_fromisr() and tcpip_callbackmsg_trycallback_fromisr() goldsimon 2018-01-05 21:08:27 +01:00
  • 1623c3e2cc Add test for bug 52748 Disabled :-) -> travis doesn't complain Dirk Ziegelmeier 2018-01-05 08:20:36 +01:00
  • 8de4900641 Work on timer unit tests Dirk Ziegelmeier 2018-01-05 07:49:39 +01:00
  • 8542556a03 Fix build warning in test_def.c Dirk Ziegelmeier 2018-01-04 13:37:29 +01:00
  • 756b7431a7 Start implementing unit tests for timers Dirk Ziegelmeier 2018-01-04 13:37:05 +01:00
  • 40fecab313 Introduce LWIP_TESTMODE #define to be able to make functions/variables public etc. for implementing unit tests Dirk Ziegelmeier 2018-01-04 13:20:28 +01:00
  • b16f5f0e19 Rename tcpip_trycallback() tcpip_callbackmsg_trycallback() to avoid confusion with tcpip_try_callback() Add tcpip_callbackmsg_new(), tcpip_callbackmsg_delete(), tcpip_callbackmsg_trycallback() to documentation Dirk Ziegelmeier 2018-01-04 08:23:49 +01:00
  • 6b2ef1a89b httpd: fix typo "kepalive" -> "keepalive" goldsimon 2018-01-04 06:35:00 +01:00
  • 2cb220d7fe netif: Move LWIP_ASSERT_CORE_LOCKED out of static functions Axel Lin 2018-01-03 17:36:03 +08:00
  • 25f1c6ef2c Revert "Apply patch #9523: MDNS responder should reply after a random timeout" Dirk Ziegelmeier 2018-01-03 07:48:23 +01:00
  • 3b79c60e41 Revert "Fix build warnings in mdns.c introduced in my last commit" Dirk Ziegelmeier 2018-01-03 07:48:12 +01:00
  • 01e227d2c0 netif.c: Fix that when using LWIP_NETIF_EXT_STATUS_CALLBACK multiple callbacks instead of only one are fired when netif_set_addr() is used Dirk Ziegelmeier 2018-01-03 07:47:49 +01:00
  • 913a7e0638 sockets: Simplify #if !LWIP_TCPIP_CORE_LOCKING guard in select_check_waiters Axel Lin 2018-01-03 11:42:35 +08:00
  • 744e69334d Fix build warnings in mdns.c introduced in my last commit Dirk Ziegelmeier 2018-01-03 06:31:59 +01:00
  • fa345b0f22 Apply patch #9523: MDNS responder should reply after a random timeout with a few cleanups and coding style fixes Dirk Ziegelmeier 2018-01-02 22:20:25 +01:00
  • 004b13ca09 Work on task #14780: Add debug helper asserts to ensure threading/locking requirements are met Update documentation Dirk Ziegelmeier 2018-01-02 21:45:30 +01:00
  • d569a22c73 tcpip: ensure core is locked for init done function Joel Cunningham 2018-01-02 13:44:34 -06:00
  • d87740bb96 mdns: Fix multicast destination check for IPv6 Erik Ekman 2018-01-02 20:38:36 +01:00
  • 1c7a024297 timers: add core locking assertion to tcp_timer_needed (task #14780) Our Air Quality 2018-01-02 12:13:29 -06:00
  • 53499f5e9f timers: rework the core locking around timers (bug #52719) Our Air Quality 2018-01-02 11:49:09 -06:00
  • 04b983b4f3 tcp: handle pcb->snd_queuelen and chained pbufs during segment split (bug #52692) Joel Cunningham 2017-12-19 09:29:24 -06:00
  • f334ac68b6 Work on task #14780: Add debug helper asserts to ensure threading/locking requirements are met Add LWIP_ASSERT_CORE_LOCKED() in several places Dirk Ziegelmeier 2018-01-02 15:44:08 +01:00
  • 10c50dffce tcpip.h: Make functions to lock TCPIP core overridable Dirk Ziegelmeier 2018-01-02 14:06:38 +01:00
  • b33b3bb8bb Start working on task #14780: Add debug helper asserts to ensure threading/locking requirements are met Dirk Ziegelmeier 2018-01-02 13:44:38 +01:00
  • 36d160686a Remove mdnsapi_mdns_resp_announce() again - it is not really needed and declaring it in mdns.h breaks layering between callback-style API and thread-safe API Dirk Ziegelmeier 2018-01-02 12:33:07 +01:00
  • dfd6a31ecb Fixup mdnsapi_mdns_resp_announce() macro - mdns_resp_announce() is a void function! Dirk Ziegelmeier 2018-01-02 11:03:45 +01:00
  • a8755b8530 Work on bug #52770: mdns: move the announcements to a timer callback Don't automatically announce when adding netifs/services Dirk Ziegelmeier 2018-01-02 10:59:20 +01:00
  • c20d50acec Update cache handling in ZeroCopyRx.c - invalidate is faster than flushing Dirk Ziegelmeier 2018-01-02 08:40:23 +01:00
  • 6c7e7153bc Fix bug #52704: DHCP and bad OFFER Stop timeout only if offer is accepted Dirk Ziegelmeier 2017-12-30 12:17:24 +01:00
  • b536fd9767 Apply modified version of bug #52747: mdns resp: separate the announce function and add netifapi support for it Changes made by me: - Move all error handling code into mdns_resp_announce() so it can be safely used by external code - Remove mdns_resp_netif_settings_changed() because it is the same as mdns_resp_announce() after my changes - Declare #define for a "thread-safe" version of mdns_resp_announce in mdns.h instead of netifapi.h - I don't want to intermix netif API with APPs Dirk Ziegelmeier 2017-12-30 12:08:01 +01:00
  • 1b57284bb4 mdns: guard against there being no ip4 address. Our Air Quality 2017-12-30 13:06:53 +11:00
  • a98d3a4efb Add test_def.c to Filelists.mk Joel Cunningham 2017-12-27 09:06:55 -06:00
  • e77099673c Add flushing CPU cache to zero-copy RX code example Dirk Ziegelmeier 2017-12-24 13:12:32 +01:00
  • 27ca731242 Improve cache handling notes from my last commit some more Dirk Ziegelmeier 2017-12-24 13:07:35 +01:00
  • 8f6b876ef9 Common pitfalls document: Add note that lwip writes to ethernet RX buffers (caching issue!) Dirk Ziegelmeier 2017-12-24 13:02:30 +01:00
  • 61e90d9fc0 Use pbuf_clone to replace pbuf_alloc+pbuf_copy Axel Lin 2017-12-19 16:26:23 +08:00
  • 4cfef8acab Apply part from patch 9525: fix lwip_strnicmp in a modified way: Move side effect out of boolean expression Dirk Ziegelmeier 2017-12-24 12:49:28 +01:00