Commit Graph

  • 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 be75c483d0) 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
  • d0b0cf983e fix compiling TCP unit tests with IPv6 enabled sg 2017-01-16 14:21:08 +01:00
  • 90d68b41df tcp_out: Use LWIP_MIN instead of open-coded for better readability Axel Lin 2017-01-16 16:47:02 +08:00
  • e6756387b0 tcp_out: Fix comment for last_unsent->oversize_left and tcp_pcb.unsent_oversize Axel Lin 2017-01-16 10:55:56 +08:00
  • 4fe1436904 Add some parentheses for better code readability in tcp_in.c Dirk Ziegelmeier 2017-01-13 11:13:44 +01:00
  • 1fdbda9700 Fix bug #50040: pbuf_alloc(..., 65534, PBUF_RAM) succeeds Check for integer overflow when calculating memory allocation size (cherry picked from commit 9898d406bc) Dirk Ziegelmeier 2017-01-15 17:36:33 +01:00
  • fed15778dd Minor typo fix in tcp_out.c (cherry picked from commit 0043bf78b6) Dirk Ziegelmeier 2017-01-15 16:37:25 +01:00
  • bbe91e356f tcp_out: Fix oversize vs. space assertion test Axel Lin 2017-01-15 20:13:41 +08:00
  • 0a73e0ff30 Set lwIP version to 2.0.2 in doxygen script (cherry picked from commit 861dab5b22) Dirk Ziegelmeier 2017-01-15 09:22:33 +01:00
  • 7ba2633ef0 Minor code readability improvement in mqtt.c (cherry picked from commit 5c58e25de5) Dirk Ziegelmeier 2017-01-15 09:22:13 +01:00
  • d860dd7655 Minor correction to last patch: Avoid #including socket.h in api_msg.c Dirk Ziegelmeier 2017-01-11 12:27:30 +01:00
  • 2694486309 lwip: fix broken default ICMPv6 handling of checksums. Knut Andre Tidemann 2017-01-11 12:11:20 +01:00
  • cb97e27120 MQTT: Add check that WILL topic length must be > 0 (cherry picked from commit 52f448978f) Dirk Ziegelmeier 2017-01-08 19:08:54 +01:00
  • 890c5982a1 MQTT: Fix possible bug in connect message generation that WILL flag can be set without appending a will message The boolean condition of setting the WILL flag differs from that of appending the will message Found by Axel Lin (I fixed it the same way as Axel suggested, but I wanted a different commit message) (cherry picked from commit 6d5ddb7139) Dirk Ziegelmeier 2017-01-08 19:07:43 +01:00
  • 4deaebae44 mqtt: Slightly improve mqtt_create_request Axel Lin 2017-01-07 22:13:12 +08:00
  • 5fe195c3d3 mqtt: Prevent NULL pointer dereference before assertion checking Axel Lin 2017-01-06 18:00:36 +08:00
  • 27c835aa56 Remove netif_invoke_ext_callback() from doxygen docs, it is intended for internal use only Dirk Ziegelmeier 2017-02-27 09:36:33 +01:00
  • e4b356f08c Add netif extended callback to doxygen docs Dirk Ziegelmeier 2017-02-26 09:56:16 +01:00
  • 01f9a04e4a Add pbuf_get_contiguous() to doxygen docs Dirk Ziegelmeier 2017-02-26 09:44:16 +01:00
  • 9ab2eefc37 Fix documentation in sockets.c Dirk Ziegelmeier 2017-02-26 09:42:06 +01:00
  • 08931b33c1 Fix documentation on pbuf_get_contiguous() Dirk Ziegelmeier 2017-02-25 17:03:14 +01:00
  • 36b9a45c3b netconn_write_partly cleanups Joel Cunningham 2017-02-24 15:32:48 -06:00
  • 36fa1a97d4 lwip_netconn_do_writemore() cleanups Joel Cunningham 2017-02-24 15:24:22 -06:00
  • 0da9cf70ea Added pbuf_get_contiguous() to get data in one piece (either zero copy from pbuf or memcpied into a supplied buffer) goldsimon 2017-02-24 21:36:49 +01:00
  • a38e937dd6 fixed close race conditions in lwip_select (for LWIP_NETCONN_FULLDUPLEX) goldsimon 2017-02-24 21:29:29 +01:00
  • f4d13d52d3 fixed get_socket, fixed LWIP_SOCKET_OFFSET != 0 goldsimon 2017-02-24 21:23:53 +01:00
  • 8bb43e7388 Added a few missing calls to done_socket() goldsimon 2017-02-24 21:11:20 +01:00
  • 6786c9f143 Start working on bug #44032: added sock->fd_used that is != 0 when at least one thread is using a socket goldsimon 2017-02-24 21:00:01 +01:00
  • 9afe10e23d make get_socket use tryget_socket, added tryget_socket_unconn in preparation of properly fixing bug #44032 goldsimon 2017-02-24 20:49:18 +01:00
  • f1f6050ad7 minor: comment, whitespace goldsimon 2017-02-24 19:50:53 +01:00
  • d73e225519 lwip_select: check for correct 'maxfdp1' parameter range goldsimon 2017-02-24 19:50:14 +01:00
  • 3107d4a0fa fixed that select ignored invalid/not open sockets in the fd_sets (bug #50392) goldsimon 2017-02-24 19:48:59 +01:00
  • 01cc06bcb8 netif_add: ensure netif->num is unique even if more than 255 netifs have been added/removed since system startup (e.g. by ppp) goldsimon 2017-02-23 20:41:54 +01:00
  • 76763c9bcd pbuf_ref: assert-check for 'ref' overflow goldsimon 2017-02-23 20:16:51 +01:00
  • e94e2da3ec opt.h: Set LWIP_PBUF_REF_T back to u8_t, s8_t has no advantage any more after reverting last commit Dirk Ziegelmeier 2017-02-23 18:10:00 +01:00
  • 2cf3bbddd4 pbuf_free: Use correct type LWIP_PBUF_REF_T for local variable Dirk Ziegelmeier 2017-02-23 18:08:26 +01:00
  • 0f6d8ccd90 Revert "Improve pbuf refcount underflow check by checking the local variable on the stack that was assigned in a protected region" Dirk Ziegelmeier 2017-02-23 18:04:30 +01:00
  • 62c44138da Improve pbuf refcount underflow check by checking the local variable on the stack that was assigned in a protected region The old code was vulnerable to race conditions since it checked ref to be >0 without locks Dirk Ziegelmeier 2017-02-23 16:55:14 +01:00
  • 0a7734cf64 Preparation for task #14369: Define ways to work with a netif having multiple ports Let ethernet_input() fill in pbuf's if_idx (if not already set by driver or an L2 bridge) Dirk Ziegelmeier 2017-02-23 16:36:40 +01:00
  • 0eeb10d4bb Preparation for task #14369: Define ways to work with a netif having multiple ports Add if_idx member to struct pbuf Dirk Ziegelmeier 2017-02-23 16:34:28 +01:00
  • 2e1b12d09f Make pbuf refcount type an LWIP option and #define it to s8_t (to be able to check for underflow!) Dirk Ziegelmeier 2017-02-23 15:47:44 +01:00
  • 5c55978f10 Revert "Added LWIP_SOCKERR_T to adapt the size of sock->err to what is needed." Let's stay with the standard and accept the 4-bytes-per-socket memory increase... goldsimon 2017-02-20 13:29:33 +01:00
  • 5d6c9ce77b Added LWIP_SOCKERR_T to adapt the size of sock->err to what is needed. goldsimon 2017-02-20 12:55:18 +01:00
  • d1049511cc post-fixups for patch #9262: fix SO_ERROR, fix !LWIP_TCPIP_CORE_LOCKING goldsimon 2017-02-20 12:43:45 +01:00
  • 703a22fae5 Support for 32bit errno codes Joan Lledó 2017-02-17 15:58:19 +01:00
  • ff3fe1f489 Fixed bug #50231 (nd6: several option size related issues in Router Advertisement message processing) sg 2017-02-17 21:58:18 +01:00
  • 4c76fd500c Move write_offset from struct netconn to struct api_msg Joel Cunningham 2017-02-17 13:26:16 -06:00
  • deaa6e9406 Improved DNS_LOCAL_HOSTLIST interface (bug #50325) goldsimon 2017-02-17 10:08:49 +01:00
  • 19d63e6aa0 Fix portable initialization of non-dynamic DNS_LOCAL_HOSTLIST goldsimon 2017-02-17 09:25:31 +01:00
  • 6dca664217 LWIP_NETCONN_FULLDUPLEX: fixed shutdown during write (bug #50274) sg 2017-02-16 22:09:02 +01:00
  • d7b51b5906 MDNS: Fix accessing wrong union member in netif ext callback Dirk Ziegelmeier 2017-02-15 14:38:57 +01:00
  • 3c9e05a6d9 Minor: Fix documentation in netif.h Dirk Ziegelmeier 2017-02-15 14:38:34 +01:00
  • 498913b982 Third draft of task #14283: Add more detailed status callback Implement Joel's idea of a union Dirk Ziegelmeier 2017-02-15 10:14:06 +01:00
  • 35e148e26d MDNS: Use new netif callback, now does not need mdns_resp_netif_settings_changed() calls from user any more when LWIP_NETIF_EXT_STATUS_CALLBACK is enabled Dirk Ziegelmeier 2017-02-14 21:03:49 +01:00
  • 454927151d Continue working on ext netif callback Docs, better callback points (e.g. before netif is set down) Dirk Ziegelmeier 2017-02-14 21:02:38 +01:00
  • d46d8bcda2 Add some asserts to netif callback functions Dirk Ziegelmeier 2017-02-14 20:35:48 +01:00
  • 4434762a08 Some minor documentation fixes Dirk Ziegelmeier 2017-02-14 20:28:43 +01:00
  • bbedb35bf3 Fix name clash between typedef and struct definition. Interesting, all three compilers in Erik Ekman's travis-ci don't complain. But my gcc at home does... Dirk Ziegelmeier 2017-02-14 20:17:27 +01:00
  • f4f204b850 Implement a better way to initialize all fields in ip address than using memset() (better fix than my last commit) Dirk Ziegelmeier 2017-02-14 14:20:39 +01:00
  • feba38a1f4 Fix unportable struct initializer I introcduced while working on task #14283: Add more detailed status callback Dirk Ziegelmeier 2017-02-14 13:54:14 +01:00
  • 1b2c8974b8 Forgot to adapt #define in my last commit Dirk Ziegelmeier 2017-02-14 11:00:34 +01:00
  • 8025b85694 Second draft of task #14283: Add more detailed status callback Dirk Ziegelmeier 2017-02-14 10:59:28 +01:00
  • b2beb42c14 Remove forward declaration of struct lwip_sock Joel Cunningham 2017-02-13 17:22:52 -06:00
  • 7dd21e93c4 Fix my last commits (unused variable warning) my gcc at home did not show this warning... Dirk Ziegelmeier 2017-02-13 22:27:59 +01:00
  • 3c1713406e Work on task #14283: Add more detailed status callback Cleanups and IPv6 address status Dirk Ziegelmeier 2017-02-13 21:52:55 +01:00
  • 58c48af58f Start working on task #14283: Add more detailed status callback IPv6 stuff is not implemented Dirk Ziegelmeier 2017-02-13 21:40:08 +01:00
  • 0b257f71e7 Fix comment typo from bug #47485 Joel Cunningham 2017-02-13 11:25:05 -06:00
  • 45f3c28eb2 Fix netif_find() function for many netifs (should use atoi) and move it to the bottom of the file where similar functions are located Dirk Ziegelmeier 2017-02-13 13:35:30 +01:00
  • 400c41ffd9 Also base netif_index_to_name function on netif_get_by_index Dirk Ziegelmeier 2017-02-13 13:26:54 +01:00
  • d4d8fd819d Some code cleanup related to netif index handling Made the macro "netif_index_to_num" private, if someone needs it externally, please complain. Dirk Ziegelmeier 2017-02-13 13:21:45 +01:00
  • 32954e9d4f Fix comment in my previous commit Dirk Ziegelmeier 2017-02-13 13:00:10 +01:00
  • c01096097c Move struct ip4_addr2 and corresponding copy macros from ip4_addr.h to prot/etharp.h where they belong Also rename struct not to clash with IP4_ADDR2 macro definition, and rework copy macros to contain a source/dest direction Dirk Ziegelmeier 2017-02-13 12:34:38 +01:00
  • 44068e3109 minor: mark variable "unused" after assigning it goldsimon 2017-02-13 11:43:56 +01:00
  • 693a74c286 For tiny targtes, LWIP_RAND is optional -> fix compile time checks goldsimon 2017-02-13 11:43:25 +01:00
  • 06c84cb110 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
  • de05424ff6 Fix build in IPv4 only case when source based routing is disabled Dirk Ziegelmeier 2017-02-10 22:52:43 +01:00
  • def87c0c23 Add David's IPv6 multicast work to CHANGELOG Dirk Ziegelmeier 2017-02-10 22:42:14 +01:00
  • 6ce9a01c3e raw: add core support for multicast TX options David van Moolenbroek 2017-02-06 17:10:45 +00:00
  • ab8119360e udp: add core-level multicast support for IPv6 David van Moolenbroek 2017-02-06 14:12:37 +00:00
  • 4a9db56f4c Tiny speed/size improvement: don't check netconn_type twice on socket-receive sg 2017-02-10 22:01:21 +01:00
  • a3fc38037a minor: move assert to a slightly better place sg 2017-02-10 21:30:07 +01:00
  • 240cf62056 tcp: fix accept event on closed listening PCBs David van Moolenbroek 2017-02-10 17:26:38 +00:00
  • b9e66bfcfb Provide a better way to include system's <errno.h> for errno + error numbers (LWIP_ERRNO_INCLUDE can't be defined to <errno.h> at least on GCC/linux) sg 2017-02-10 21:18:08 +01:00
  • 239498f37c 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
  • bc07fd9db5 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
  • 82711e069c socket_priv.h: add newline at EOF Joel Cunningham 2017-02-09 23:17:01 -06:00
  • 2cab253b34 Minor if_api.h cleanups Joel Cunningham 2017-02-09 22:48:47 -06:00
  • 3a7e03aaff Add errno support to if_indextoname() Joel Cunningham 2017-02-09 22:32:29 -06:00
  • 852993029d Add sockets_priv.h header Joel Cunningham 2017-02-09 22:04:30 -06:00