Commit Graph

  • d02a73c285 Replace usages of tcpip_callback_with_block(foo, bar, 0) with tcpip_try_callback() Dirk Ziegelmeier 2017-06-22 08:14:02 +02:00
  • b4921dc401 Ensure that all parts of an ip_addr are written for the various set commands when setting an ipv4 address in dual-stack configurations (for security & compiler warning reasons :) goldsimon 2017-06-22 07:48:38 +02:00
  • c9e7e56389 Fix IPv4-only and IPv6-only after again last commits goldsimon 2017-06-21 22:01:19 +02:00
  • 48213650cd Try to make unit tests work without -Wno-address goldsimon 2017-06-21 21:55:00 +02:00
  • c094fcc086 Try to make gcc work without -Wno-address goldsimon 2017-06-21 16:07:36 +02:00
  • 10a5afeee7 Revert my last change to tcpip_callback() - it breaks the semantics of the function. The function previously returned after posting a message, which is a short operation. Now it actually waits until the operation has completed - which may take a long time. This may break user programs. So all that remains is the cleanup separation in tcpip_callback() and tcpip_try_callback() :-( Dirk Ziegelmeier 2017-06-21 15:07:20 +02:00
  • 68d36f19f0 Implement LWIP core locking support in tcpip_callback_with_block() Created two new functions for API cleanup: tcpip_callback() that blocks until message is posted, cannot be called from IRQs. tcpip_try_callback() that does not block and just tries to post a message. Can be called from IRQs. Add compatibility #define tcpip_callback_with_block() that maps to these two functions according to "block" parameter. Dirk Ziegelmeier 2017-06-21 13:42:54 +02:00
  • 79d69ce526 Slightly optimize pbuf_alloc: encode 'header offset' in 'enum pbuf_layer' instead of switch/case (which was duplicated in pbuf_alloc and pbuf_alloced_custom) goldsimon 2017-06-21 13:37:05 +02:00
  • 11da4ef024 Use ip_addr_debug_print_val instead of ip_addr_debug_print where applicable goldsimon 2017-06-21 13:26:55 +02:00
  • aa98747d6f timeouts: Trivial comment fix for cyclic_timer Axel Lin 2017-06-21 16:04:10 +08:00
  • d4c8a1ac78 netconn: switch gethostbyname to use tcpip_send_msg_wait_sem (task #14523) Joel Cunningham 2017-05-31 19:36:39 -05:00
  • f13b1340f2 Refine comment changed by last commit goldsimon 2017-06-20 20:53:39 +02:00
  • 112e370457 Sending TCP timestamp option in SYN packets Jakub Schmidtke 2017-06-19 13:30:45 -04:00
  • faf74b36a4 PPP, VJ: Use pbuf_take instead of duplicate copy code Axel Lin 2017-06-16 09:39:16 +08:00
  • fc23257ca0 Fix unused arg from last patch the *real* lwIP way ;-) goldsimon 2017-06-20 20:13:31 +02:00
  • b92bcc5f02 Fix unused arg from last patch the lwIP way Dirk Ziegelmeier 2017-06-19 14:11:35 +02:00
  • 6e62b6090b Silence some unsed variable warnings. Our Air Quality 2017-06-18 14:41:06 +10:00
  • 02aaf12f48 stats: Use proper format modifier in stats_display_mem/stats_display_sys Axel Lin 2017-06-16 23:02:31 +08:00
  • c923d00340 Fix bug #51238: LWIP_ARRAYSIZE() can't be used on lwip_cyclic_timers Add const int variable containing number of array elements Dirk Ziegelmeier 2017-06-14 23:05:50 +02:00
  • 7197bf25f0 Add another posix compatibility header goldsimon 2017-06-14 23:05:30 +02:00
  • 82b9f86b45 Fixed bug #51195 (Calling inet_pton() causes buffer overrun on a struct in6_addr) goldsimon 2017-06-14 22:21:55 +02:00
  • 5a27e97baf smtp.c: Fix detecting overlength server names Thanks to Axel Lin Dirk Ziegelmeier 2017-06-14 22:06:37 +02:00
  • 67d1970059 pbuf_alloced_custom(): less code duplication, please :-) goldsimon 2017-06-14 21:39:53 +02:00
  • 3073affaaf Axel Lin correctly pointed out that there is no buffer overflow because smtp_server[SMTP_MAX_SERVERNAME_LEN + 1] - there is always room for terminating 0 byte Dirk Ziegelmeier 2017-06-14 14:11:27 +02:00
  • 3611b583f5 smtp.c, smtp_set_server_addr: Avoid smtp_server buffer overrun when server name length is SMTP_MAX_SERVERNAME_LEN -> "smtp_server[len] = 0" is an out-of-bound access Dirk Ziegelmeier 2017-06-14 12:40:58 +02:00
  • 4af438916a apps/smtp: Ensure smtp_server is NULL terminated Axel Lin 2017-06-14 04:16:07 +08:00
  • d5cdb91611 Fix compile of Axel Lin's patch Dirk Ziegelmeier 2017-06-14 12:30:55 +02:00
  • 6b4cc984ad pbuf: Allow pass flags to pbuf_init_alloced_pbuf() Axel Lin 2017-06-01 05:36:44 +08:00
  • 7b45f3fa3f Fix sys_timeouts_init() for LWIP_TCP==0 (see patch #9375) goldsimon 2017-06-13 22:04:57 +02:00
  • e1ce5dc491 mem: Move LWIP_DEBUGF out of critical section in mem_malloc Axel Lin 2017-06-07 16:36:42 +08:00
  • bab7a32eec Remove smtp_server when passing NULL to smtp_set_server_addr() (see patch #9373 for discussion) goldsimon 2017-06-13 22:00:48 +02:00
  • 117d3abdf8 apps/smtp: Make smtp_state_str/smtp_result_strs/base64_table static Axel Lin 2017-06-07 11:26:21 +08:00
  • 07cc25a9df httpd: remove unnecessary "\0" suffix for CRLF string constant (see bug #51232) goldsimon 2017-06-13 21:53:35 +02:00
  • ef5e44b2d3 Fix bug #51230 (Fix comment line) - change tcp_pcb to altcp_pcb goldsimon 2017-06-13 21:14:16 +02:00
  • a92e838687 httpd: include hooks header file so that redefined defines/functions can be defined there goldsimon 2017-06-13 21:13:45 +02:00
  • 35ba3a877d Moved NUM_SOCKETS and struct lwip_sock to sockets_priv.h; added test case for fd_use count with select goldsimon 2017-06-13 21:07:34 +02:00
  • 85a85906d9 Fix bug #51122 (Mismatched socket->fd_used accounting when using lwip_select) goldsimon 2017-06-13 20:58:45 +02:00
  • 3eaf976152 tcp: fix cwnd rollover introduced by ABC Joel Cunningham 2017-06-01 12:31:17 -05:00
  • 0df2c4f2be Map {tcp, udp, raw}_bind_netif() functions to netconn API Dirk Ziegelmeier 2017-05-31 20:16:21 +02:00
  • dc2bdc2a21 memp: allow initialization of pool memory if not in standard section David Girault 2017-05-29 11:41:11 +02:00
  • 3aca7885a7 pbuf: Init pbuf if_idx to NETIF_NO_INDEX in pbuf_alloced_custom Axel Lin 2017-05-31 14:55:39 +08:00
  • ba1cf2fa44 memp malloc: move LWIP_DEBUGF out of critical section (bug #51142) goldsimon 2017-05-30 11:39:42 +02:00
  • 84502e5ae0 etharp.c: Ensure etharp_query() allocates adequate pbuf if copying/consolidating. Tim Cussins 2017-05-29 14:53:47 +01:00
  • fb9fabb87c Initialize the tcp listen pcb netif_idx to NETIF_NO_INDEX. Our Air Quality 2017-05-25 13:56:52 +10:00
  • cbbfb1356c pbuf: Make pbuf_init_alloced_pbuf take pbuf_type instead of u8_t for type parameter Axel Lin 2017-05-24 17:58:22 +08:00
  • 356da76cc8 Work on bug #3031/task #7896: change pbuf->type/enum pbuf_type to be more generic (see UPGRADING) goldsimon 2017-05-22 22:30:55 +02:00
  • 5c65402fd6 minor: whitespace change only to make the next diff smaller :-) goldsimon 2017-05-22 22:30:19 +02:00
  • 10abb6b5ec ethernetif: Add #if LWIP_IPV4 guard around netif->output Axel Lin 2017-05-22 19:16:55 +08:00
  • 8db0001e32 Adjust pbuf reuse documentation a bit: pbufs should never be reused after transmit goldsimon 2017-05-18 09:19:08 +02:00
  • 5dd037ea49 debug: Remove superfluous #ifudef checking for LWIP_PLATFORM_ASSERT/LWIP_PLATFORM_DIAG Axel Lin 2017-05-14 12:53:44 +08:00
  • 0bbf6490f5 setsockopt: allow SO_BROADCAST for UDP sockets only goldsimon 2017-05-12 20:34:16 +02:00
  • 8345e9035f gesockopt: fall-through in switch/case only if a case contains no code at all goldsimon 2017-05-12 20:33:57 +02:00
  • 5c35bab26c getsockopt: invalid type used to check for UDP goldsimon 2017-05-12 20:31:11 +02:00
  • e80b2eb4cf Fix mdns_resp_del_service goldsimon 2017-05-12 13:21:42 +02:00
  • c8b7759e10 mdns: added support for removing service in mdns responder David Girault 2017-04-28 14:23:17 +02:00
  • 20fd844935 fixed typo in docs goldsimon 2017-05-11 21:26:34 +02:00
  • 46f2e25ce0 Fixed bug #51002 Adrey Vinogradov 2017-05-11 20:51:41 +02:00
  • 79bd47736c SO_BROADCAST is valid for SOCK_DGRAM only goldsimon 2017-05-08 21:18:40 +02:00
  • 9dee346000 apps/smtp: Fix memory leak in smtp_send_mail_alloced error paths Axel Lin 2017-05-11 16:31:39 +08:00
  • ec9096be40 fixed typo in httpd debug message goldsimon 2017-05-10 13:41:26 +02:00
  • 035bf4dcb0 Fixed bug #50992: window updated too often goldsimon 2017-05-10 13:40:17 +02:00
  • ae210967f2 apps/smtp: Fix memory leak if SMTP_BODYDH_MALLOC fails Axel Lin 2017-05-10 16:42:09 +08:00
  • 5bbe190b3b apps/smtp: Make smtp_send_bodyh_data takes "const char **from" parameter Axel Lin 2017-05-10 14:13:16 +08:00
  • f5f34f138c apps/smtp: Fix missing altcp conversion in smtp_send_bodyh_data Axel Lin 2017-05-10 14:08:20 +08:00
  • b9d5399ec1 apps/smtp: Trivial typo fixes Axel Lin 2017-05-10 13:08:35 +08:00
  • c03fef9a3c bug #50837: add zero-window probe timeout Joel Cunningham 2017-05-03 23:43:49 -05:00
  • d87b11e8f9 sockets: Remove unreachable break statements in event_callback Axel Lin 2017-05-09 17:21:56 +08:00
  • 4171f39a72 PPP: remove ppp_singlebuf Sylvain Rochet 2017-05-05 15:42:06 +02:00
  • 3e909bafa8 PPP: use pbuf_coalesce() instead of private ppp_singlebuf() Axel Lin 2017-04-29 15:25:16 +08:00
  • a942582b4b Minor #ifdef cleanup in netif.c Dirk Ziegelmeier 2017-05-05 11:11:19 +02:00
  • 89d825f603 netif: Fix IPv6-only build Axel Lin 2017-05-05 16:02:44 +08:00
  • 749e078d36 6lowpan: fix compiling with !LWIP_UDP goldsimon 2017-05-05 09:19:02 +02:00
  • 5967380c20 netif_add: avoid passing NULL pointers to subsequent functions (reported by Axel Lin) Dirk Ziegelmeier 2017-05-05 09:07:40 +02:00
  • 9bbb741247 tcp: Remove unreachable code in tcp_close_shutdown_fin Axel Lin 2017-05-04 17:58:42 +08:00
  • d36306e30b sntp_process: fixed unused variable if sub-second time info is not used goldsimon 2017-05-04 15:49:12 +02:00
  • bf510fee51 SNMP: Cleanup unreachable code Axel Lin 2017-05-04 15:06:13 +08:00
  • fe8c62e7b6 Fix bug #50932: LWIP-provided byteorder functions defined in the wrong scope Apply suggested fix from "Fayek" Dirk Ziegelmeier 2017-05-03 22:28:46 +02:00
  • 72a8db7867 tcp_fasttmr: adapt comment (to delayed FIN implementation) goldsimon 2017-05-03 21:42:59 +02:00
  • f00d7db409 backport of "variable assigned but not used" warnings from STM (why don't people report such things?) goldsimon 2017-05-03 20:31:29 +02:00
  • eff97c04ef backport of "unreachable code" warnings from STM (why don't people report such things?) goldsimon 2017-05-03 20:30:38 +02:00
  • 6c236b047e ip_route() can be called with IP_ANY_TYPE in src parameter, so remove code associated to that Dirk Ziegelmeier 2017-05-03 16:42:30 +02:00
  • ccf10a5023 SNTP: Avoid warning if debugging is disabled Daniel Elstner 2017-05-03 01:55:15 +02:00
  • ddf4e17411 tcp: indentation fix in tcp_receive() Joel Cunningham 2017-05-03 09:29:02 -05:00
  • 4cf6f9ed51 tcp_free_acked_segments: fix debug printf parameter errors, fix unused parameters for !LWIP_DEBUG and/or LWIP_NOASSERT goldsimon 2017-05-03 13:49:24 +02:00
  • 778206798e task #14433: TCP: combine unsent/unacked queue loops in tcp_receive() goldsimon 2017-05-03 12:32:01 +02:00
  • 39316bb9de httpd: fixed bug #50915 (HTTP_IS_DATA_VOLATILE was wrong for LWIP_HTTPD_DYNAMIC_FILE_READ==1) goldsimon 2017-05-03 09:57:12 +02:00
  • b9c47c5089 tcp_route: add comment, fixed whitespace goldsimon 2017-05-03 09:56:08 +02:00
  • 5c0aab7bd5 udp SO_REUSE_RXTOALL: don't copy IP header in duplicated pbuf goldsimon 2017-05-03 09:54:46 +02:00
  • 2b9a132772 Fix compile in tcp_route when IPv4 only is used and source-based routing is disabled Dirk Ziegelmeier 2017-05-03 09:09:37 +02:00
  • d32492e953 Make patch 4 of David's Minix3 patches superfluous: Use PBUF_POOL to duplicate incoming packets in UDP ... which would have been the correct way to do it anyway :-) http://git.minix3.org/index.cgi?p=minix.git;a=blob;f=minix/lib/liblwip/patches/0004-MINIX-3-only-avoid-large-contiguous-allocations.patch;h=f23143c7e8d372b3b35b599a97975d79924f73c1;hb=HEAD Dirk Ziegelmeier 2017-05-03 09:02:35 +02:00
  • 7defe372b9 fixed compiling pbuf.c with LWIP_TCP==0 goldsimon 2017-05-03 09:02:06 +02:00
  • 082fe71c0c fixed compiling sockets.c with LWIP_UDP==0 goldsimon 2017-05-03 09:01:48 +02:00
  • 676dd74140 Minor cleanup and documentation updates Dirk Ziegelmeier 2017-05-03 08:51:00 +02:00
  • e835707814 Cleanup and simplify tcp_connect() code Dirk Ziegelmeier 2017-05-03 08:46:06 +02:00
  • 5800cf51be Work on task #14494: Implement SO_BINDTODEVICE TCP needs additional netif handling Dirk Ziegelmeier 2017-05-03 08:00:06 +02:00
  • c144e5b1ec pbuf_coalesce: Replace pbuf_alloc+pbuf_copy with pbuf_clone Axel Lin 2017-04-29 23:54:16 +08:00
  • bc0fafdeca udp: Fix compiling for IPv6-only build Axel Lin 2017-05-02 21:50:25 +08:00
  • e3289116b9 Fix next build error introduced in my last commit Dirk Ziegelmeier 2017-05-02 15:21:52 +02:00
  • 6a754325dc Fix build error introduced in my last commit Dirk Ziegelmeier 2017-05-02 14:53:18 +02:00
  • c7e3519f46 Start working task #14494: Implement SO_BINDTODEVICE Implement setsockopt. TODO: getsockopt Dirk Ziegelmeier 2017-05-02 13:18:29 +02:00