Commit Graph

  • 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 9898d406bc5ea8a268895672bb56a6811c4cec43) Dirk Ziegelmeier 2017-01-15 17:36:33 +01:00
  • fed15778dd Minor typo fix in tcp_out.c (cherry picked from commit 0043bf78b66ff0bd3285e2c657acf4b468c6320f) 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 861dab5b22abf7360afc395a6a6e0c16817def11) Dirk Ziegelmeier 2017-01-15 09:22:33 +01:00
  • 7ba2633ef0 Minor code readability improvement in mqtt.c (cherry picked from commit 5c58e25de583f7f7c1a5d6e29ba5ade91a089514) 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 52f448978f78475c01ead2b9d98f9395cfe703ab) 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 6d5ddb713946120fa75d8e12e2f0770501e5cefa) 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
  • c396dd4554 Clean up icmp6.c a bit after adding IPv6 scopes sg 2017-02-09 21:17:58 +01:00
  • 702091d548 igmp.c: igmp_lookup_group() should be static Dirk Ziegelmeier 2017-02-09 21:08:40 +01:00
  • 4d8fec3b67 Rename "IPv6 mapped IPv4 addresses" to their correct name from RFC4191: "IPv4-mapped IPv6 address" Dirk Ziegelmeier 2017-02-09 21:01:48 +01:00
  • c1c470fc4c Fixed bug #44032 (LWIP_NETCONN_FULLDUPLEX: select might work on invalid/reused socket) by not allowing to reallocate a socket that has "select_waiting != 0" sg 2017-02-09 20:41:27 +01:00
  • eae4129863 Documentation updates related to Joel's if_api changes Dirk Ziegelmeier 2017-02-09 19:39:07 +01:00
  • fb0a750970 Choose another title for zones documentation page Dirk Ziegelmeier 2017-02-09 13:21:02 +01:00
  • a826b1aeeb Add IPv6 scopes to documentation Dirk Ziegelmeier 2017-02-09 13:08:52 +01:00
  • ea093d3a53 http_add_connection: add connections to the front to be faster (and really fix bug #50059) goldsimon 2017-02-09 13:08:17 +01:00
  • 5743864744 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
  • 819bfbb943 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
  • 03f47e58a3 udp/raw: prevent packet length overflows David van Moolenbroek 2017-01-05 18:13:41 +00:00
  • fffd61c746 Patch #9250 (slightly changed): fix source substitution in ip6_output_if() (broken in 2014 with be75c483d0adae9ce786e3e2d5760f8e37005ac7) David van Moolenbroek 2017-02-08 22:16:32 +01:00