Commit Graph

  • 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
  • eab2ae5d78 Cleanup netif_name_to_index() implementation Dirk Ziegelmeier 2017-05-02 12:51:25 +02:00
  • 0545eba002 Fixed copy&paste error found by travis-ci... goldsimon 2017-05-02 10:42:59 +02:00
  • 13ffc86aef Start working task #14494: Implement SO_BINDTODEVICE Implement binding TCP, UDP and RAW PCBs to a netif Dirk Ziegelmeier 2017-05-02 09:39:48 +02:00
  • 20fed63297 Add custom pbuf usage example to pbuf_alloced_custom() docs Dirk Ziegelmeier 2017-04-28 13:19:32 +02:00
  • 83d0607acf Add PBUF_NEEDS_COPY macro to documentation Dirk Ziegelmeier 2017-04-27 19:25:19 +02:00
  • 1add8c14ca netif: tiny cleanup to last commit goldsimon 2017-04-27 14:12:13 +02:00
  • 975e29d76e fixed copy&paste error :-) goldsimon 2017-04-27 12:45:33 +02:00
  • 1aa24ee21b Add new DHCP hooks to DHCP docs Dirk Ziegelmeier 2017-04-27 12:42:14 +02:00
  • a09a8e4a06 Some documentation updates and fixes Dedicated Zero-copy RX page Fix doxygen warnings Dirk Ziegelmeier 2017-04-27 12:40:16 +02:00
  • 6aac9377ee Clean up LWIP_NETIF_HWADDRHINT a bit: create a struct holding the hint(s) and pass a pointer to that struct around. That way we are free to add more hints if required (e.g. see task #11620) goldsimon 2017-04-27 12:38:53 +02:00
  • 7617a76b19 added unit test to allocate zero length pbufs goldsimon 2017-04-26 20:16:27 +02:00
  • 4c9b316e6b pbuf: Fix allocate zero length pbuf Axel Lin 2017-04-27 00:10:52 +08:00
  • fc7a68b5af sockets: fix CMSG alignment Joel Cunningham 2017-04-26 08:29:44 -05:00
  • c686261e1e Minor whitespace cleanup in ip.h Dirk Ziegelmeier 2017-04-26 12:28:54 +02:00
  • 728aaeb528 Try to fix alignment warnings in CMSG_NXTHDR() goldsimon 2017-04-26 08:55:07 +02:00
  • eac45ca284 Try to fix alignment warnings when assigning CMSG_DATA() to some struct pointer goldsimon 2017-04-26 08:43:56 +02:00
  • 0b6e2d9c15 Update changelog for features/bugs since 2.0.1 Joel Cunningham 2017-04-25 17:40:11 -05:00
  • 842a235a68 fix test_sockets_msgapi_cmsg unit test (msvc gives me "warning C4706: assignment within conditional expression") goldsimon 2017-04-25 23:08:53 +02:00
  • eb269e61b5 First step to clean up pbuf implementation: add pbuf_alloc_reference() to allocate pbufs referencing external payload; move member initialization to common function; simplify PBUF_POOL chain allocator goldsimon 2017-04-25 23:04:12 +02:00
  • e57552d401 pbuf_alloc_copy -> pbuf_clone goldsimon 2017-04-25 22:01:42 +02:00
  • 3a01c32e55 test_sockets: fix pointer to integer conversion Joel Cunningham 2017-04-25 13:46:02 -05:00
  • 836c0cf42e added dhcp hooks to CHANGELOG goldsimon 2017-04-25 20:20:13 +02:00
  • 2fef874494 task #14270: DHCP should support user-defined additional options: added two hooks for adding and parsing user defined DHCP options goldsimon 2017-04-25 16:13:39 +02:00