Commit Graph

  • a2ad9d36ca Improve documentation: Refer to compiler/platform abstraction in NO_SYS mode description Dirk Ziegelmeier 2016-12-08 15:25:38 +01:00
  • 33bdf9fa76 Doxygen: Fix project description text Dirk Ziegelmeier 2016-12-08 13:38:17 +01:00
  • 55fd567a84 Adapt doxygen docs version number Dirk Ziegelmeier 2016-12-08 13:37:01 +01:00
  • b359b8c3e0 Minor documentation improvement Dirk Ziegelmeier 2016-12-08 13:35:34 +01:00
  • bb6df52ed5 Fix doxygen parsing in my last commit Dirk Ziegelmeier 2016-12-08 12:47:30 +01:00
  • 8a9ab9968c Improve documentation: add compiler abstraction macros to doxygen docs Dirk Ziegelmeier 2016-12-08 12:45:21 +01:00
  • a420d2530f arch.h: Add hint for struct packing #defines on GCC/clang Dirk Ziegelmeier 2016-12-08 11:13:51 +01:00
  • 89cb7b7aa1 Try to remove #include <stdlib.h> from many files. Does not seem necessary any more and might cause problems when porting lwIP. Dirk Ziegelmeier 2016-12-08 11:04:35 +01:00
  • 9c3bbcf4e6 removed old disabled code goldsimon 2016-12-08 10:24:56 +01:00
  • f446194c8a pppos.c: Use arch.h to get size_t instead of including stddef.h Dirk Ziegelmeier 2016-12-07 22:29:24 +01:00
  • 1dd563a0ae arch.h: Implement possibility to provide own header for size_t, default is stddef.h Dirk Ziegelmeier 2016-12-07 22:27:57 +01:00
  • aae0fc4908 Use new IPv6 init macro in netif.c Dirk Ziegelmeier 2016-12-07 22:19:37 +01:00
  • 5bb83301dd Add macro to init an IPv6 address with U32 in host byte order Dirk Ziegelmeier 2016-12-07 22:19:16 +01:00
  • 0ca82df062 Cleanup byte order handling a bit. - Create LWIP_MAKEU32(a,b,c,d) to create an U32 value from bytes - Use PP_HTONL() in some macros to emphasize network byte order conversion Dirk Ziegelmeier 2016-12-07 20:18:58 +01:00
  • ff3656f4f5 Added improved macros for ip address initialization: IPADDR4_INIT_BYTES(), IPADDR6_INIT_HOST() and IP4_ADDR_MAKEU32() goldsimon 2016-12-07 13:06:07 +01:00
  • b31b0c8148 remove bogus LWIP_MAKE_U16() define and use PP_NTOHS() in ip4.c instead goldsimon 2016-12-07 12:44:57 +01:00
  • c87855423c DNS: added compile-time check for some defines to fit into an u8_t (bug #49658) goldsimon 2016-12-07 09:09:45 +01:00
  • e00a131160 Fix bug #49778: sntp_stop does not cancel all timers Patch by Ari Suutari Dirk Ziegelmeier 2016-12-06 20:29:12 +01:00
  • cb29a49a64 Update CHANGELOG Dirk Ziegelmeier 2016-12-06 11:39:03 +01:00
  • 795acf020e lwiperf: Simplify #if LWIPERF_CHECK_RX_DATA guard Axel Lin 2016-12-06 09:01:43 +08:00
  • cc25c2634b Cleanup: move struct ip6_addr_packed and ip6_addr_p_t type to prot/ip6.h - these types are used in prot/ip6.h and prot/mld6.h Dirk Ziegelmeier 2016-12-06 09:36:36 +01:00
  • 1687721600 Fix compile when IPv4 is disabled Dirk Ziegelmeier 2016-12-05 22:01:58 +01:00
  • a6bc422729 Move declaration of struct ip4_addr_packed and ip4_addr_p_t to prot/ip4.h The types are used in structs declared in ip4.h. Dirk Ziegelmeier 2016-12-05 21:53:43 +01:00
  • 92183bb354 icmp: Increment mib2.icmpintimeexcds counter if got ICMP_TE Axel Lin 2016-12-04 20:00:43 +08:00
  • bcaf2f08aa PPP, PPPoS: fix memory leak when disconnecting if there are remaining input bytes Sylvain Rochet 2016-11-30 21:56:27 +01:00
  • 4bbed75cc4 Minor code layout cleanup in err.c and errno.h Dirk Ziegelmeier 2016-12-01 08:55:01 +01:00
  • 7d0aeaf539 Doc: correct minor mis-spelling in sys_arch.txt Joel Cunningham 2016-11-30 10:26:49 -06:00
  • f28e63b2a3 Add netifapi macros for set link up/down Joel Cunningham 2016-11-29 16:12:26 -06:00
  • 7f48289fcd Increment ip.drop when dropping due to NULL netif Joel Cunningham 2016-11-29 15:22:55 -06:00
  • 12e35c4c12 mdns: Fix assertion message in mdns_resp_add_service_txtitem() Axel Lin 2016-11-30 16:11:15 +08:00
  • 182d7c138a Add #include <stddef.h> to a central place (arch.h) instead of #including it in several other files throughout lwip since size_t is needed in many places See http://lwip.100.n7.nabble.com/Issue-in-arch-h-for-lwIP-2-0-0-td27948.html Dirk Ziegelmeier 2016-11-30 07:43:59 +01:00
  • 47fd67a35c Remove TODO comments and one check from sockets.c indicating IPV6_V6ONLY socket option handling does not work Dirk Ziegelmeier 2016-11-28 15:56:59 +01:00
  • b934c3f471 fixed bug #49726: setsockopt() set TCP_NODELAY TCP_KEEPALIVE ... with a listen state TCP will crash goldsimon 2016-11-28 15:50:59 +01:00
  • 2a882b6387 minor: fixed indent goldsimon 2016-11-28 12:54:17 +01:00
  • ca9342c549 fixed bug #49725 (send-timeout: netwonn_write() can return ERR_OK without all bytes being written) goldsimon 2016-11-28 12:51:45 +01:00
  • 6f1304e03e patch by Ambroz Bizjak: fixed bug #49717 (window size in received SYN and SYN-ACK assumed scaled) goldsimon 2016-11-28 10:26:42 +01:00
  • cac3dc8a46 netif: Trivial indent fix Axel Lin 2016-11-28 17:18:01 +08:00
  • aea872431c Fix naming of some inet_addr_* macros in inet.h From inet4_addr_* to inet_addr_* - inet_addr is a "known word", don't change it Dirk Ziegelmeier 2016-11-25 22:13:12 +01:00
  • 1d4cbe768d netif: Add proper lock protect for accessing netif->loop_first Axel Lin 2016-11-25 19:47:34 +08:00
  • 0e07ed4b13 fixed bug #49676 (Possible endless loop when parsing dhcp options) & added unit test for that goldsimon 2016-11-25 10:03:43 +01:00
  • 2ed755764e doxygen/generate.sh: Add shebang line Richard Sailer 2016-11-23 22:46:22 +01:00
  • f419231dc3 fixed typo in CHANGELOG goldsimon 2016-11-24 11:31:46 +01:00
  • 8ba7363d11 Optimize passing contiguous nocopy buffers to tcp_write Ambroz Bizjak 2016-11-24 11:27:34 +01:00
  • 4c8620e03b Added important post-2.0.0 changes to CHANGELOG to keep track of changes for future 2.0.1 release goldsimon 2016-11-24 11:21:00 +01:00
  • eb1de78ce1 prepare CHANGELOG for post-2.0.0 goldsimon 2016-11-24 11:12:22 +01:00
  • 5030fa81a0 bug #49684, api_msg: treat non-blocking ERR_MEM as ERR_WOULDBLOCK Joel Cunningham 2016-11-23 09:45:38 -06:00
  • 0f87cb92b8 Add note about UDP multicast behavior fix to UPGRADING document Dirk Ziegelmeier 2016-11-23 13:10:16 +01:00
  • 09547832ba Fix bug #49662: UDP layer should filter incoming multicast datagrams against the bound IP address Change lwIP UDP API to match socket behavior. Multicast traffic is now only received on a UDP PCB (and therefore on a UDP socket/netconn) when the PCB is bound to IP_ADDR_ANY. Dirk Ziegelmeier 2016-11-23 12:46:35 +01:00
  • 8c3c96baf7 PPP, L2TP: fix PPPOL2TP_AUTH_SUPPORT == 0 support Sylvain Rochet 2016-11-22 22:13:24 +01:00
  • 03a9aac157 dns_enqueue(): minor readability improvement: add local variable "age" to store result of subtraction sg 2016-11-22 21:34:12 +01:00
  • 68ec20fffc ipv4/ipv6: restrict loopback-destined traffic David van Moolenbroek 2016-11-22 18:36:51 +00:00
  • 4076b12ee9 Revert "Apply patch #9165: Allowing udp src port to be 0 in cases when we don't care about outgoing port" Dirk Ziegelmeier 2016-11-22 14:35:45 +01:00
  • 0034abfa45 Always check whether netif_default is NULL David van Moolenbroek 2016-11-18 22:25:48 +00:00
  • 31b0237c50 Apply patch #9165: Allowing udp src port to be 0 in cases when we don't care about outgoing port Dirk Ziegelmeier 2016-11-18 08:13:15 +01:00
  • 9366c0eaab I decided to keep the "complexity" of handling IPv6 mapped IPv4 addresses out of netconn API. Only socket API understands this address type now. Dirk Ziegelmeier 2016-11-17 12:41:00 +01:00
  • 5d5eeca008 Once more: Try fix compile with clang Dirk Ziegelmeier 2016-11-17 09:23:57 +01:00
  • 4b7e0f50b7 Fix indent in api_lib.c Dirk Ziegelmeier 2016-11-17 09:14:29 +01:00
  • 44e430ebc2 Fix compile with MSVC 2010 and remove handling for IP6_ADDR_ANY in netconn_connect() - IP6_ADDR_ANY does not make sense in connect() Dirk Ziegelmeier 2016-11-17 09:12:38 +01:00
  • 180ba72a06 Dual-stack: Use IPv6 mapped IPv4 addresses in receive() and getaddr() only in socket API, not in netconn API. It is better to present correct IP types in netconn API. Netconn API now accepts IPv6 mapped IPv4 addresses as well as IPv6 and IPv4 in send(), bind() and connect(), but does NOT map IPv4 to IPv6 mapped IPv4 in getaddr() and receive() functions. Dirk Ziegelmeier 2016-11-17 08:51:07 +01:00
  • 792224ead0 Try to fix compile error with clang (found by Erik's Travis-CI) Dirk Ziegelmeier 2016-11-17 08:48:55 +01:00
  • e8e853f2cb Move ICMP6 protocol constants to include/lwip/prot/icmp6 Dirk Ziegelmeier 2016-11-16 23:49:44 +01:00
  • 80a24c0399 raw, udp, tcp connect() does NOT need to match exact IP type - when PCB is bound to IPADDR_ANY_TYPE, it is OK to connect to IPv4 or IPv6 This should finally implement task #14187: Dual Stack sendto with socket APIs Dirk Ziegelmeier 2016-11-16 23:39:43 +01:00
  • d026a3954a Dual-stack fixes in raw/udp/tcp bind() may change IP type when previous type is IPADDR_TYPE_ANY connect() IP type must exactly match bind IP type Use correct IPADDRx_ANY type when calling ip_route() Dirk Ziegelmeier 2016-11-16 23:30:19 +01:00
  • 1712b06a64 Work on dual-stack netconn IPv6 netconns are created as IPADDR_TYPE_ANY raw/udp/tcp PCBs internally bind, connect and sendto now accept IPv6 mapped IPv4 addresses or IPv4 addresses as argument getaddr and receive functions now return IPv6 mapped IPv4 addresses instead of IPv4 addresses This behavior is close to BSD socket API Dirk Ziegelmeier 2016-11-16 22:58:38 +01:00
  • 010f3550b6 Cleanup macro parameter names Dirk Ziegelmeier 2016-11-02 12:00:13 +01:00
  • b70ddf7b54 Cleanup unmap_ipv6_mapped_ipv4() macro Dirk Ziegelmeier 2016-11-02 11:58:33 +01:00
  • 1dd97e7d53 sockets.c, lwip_sendto(): Remove check whether IP address matches socket type. Is checked in lower layers anyway. Dirk Ziegelmeier 2016-10-31 19:29:26 +01:00
  • 2f37dc0606 api_msg.c: Partly add support for IPv6 mapped IPv4 addresses - lwip_netconn_do_getaddr(): Convert IPv4 addresses to IPv6 mapped IPv4 addresses - lwip_netconn_do_send(): Support IPv6 mapped IPv4 addresses - Not done: connect(), bind() Dirk Ziegelmeier 2016-10-31 19:28:11 +01:00
  • c1eb6d8aa4 Minor: Add macros to map/unmap IPv6 mapped IPv4 addresses Dirk Ziegelmeier 2016-10-31 19:24:27 +01:00
  • ad17f345e7 mdns: Use strlen to determine string length of strings contained in a struct - padding seems to be applied to these strings, and sizeof() returns the _padded_ size??? Found by compiling with CLANG with address sanitizer enabled Dirk Ziegelmeier 2016-11-16 21:01:15 +01:00
  • ee7a2f346c inet.h: Consistently name some inet <-> ipaddr conversion macros They operate on ip4_addr_t, not on ip_addr_t This should be clearly visible in their names Dirk Ziegelmeier 2016-11-16 20:30:13 +01:00
  • b99b7577fc memp.c: Only check for overflow/underflow if an element could be allocated In other words: Don't dereference NULL pointers Dirk Ziegelmeier 2016-11-16 20:15:51 +01:00
  • f79eabd24b bug #49533: start persist timer when unsent seg can't fit in window Joel Cunningham 2016-11-14 15:31:57 -06:00
  • 81a32e9b06 Fixed bug #49610: Sometimes, autoIP fails to reuse the same address Roberto Barbieri Carrera 2016-11-16 12:24:57 +01:00
  • 6dc3a2108a WND_SCALE: duplicate define check & doc cleanup Joel Cunningham 2016-11-11 15:59:03 -06:00
  • f965034366 Fix inconsistent return value in udp_sendto_if() - ERR_RTE should always be returned when there is no available route Dirk Ziegelmeier 2016-11-11 11:12:54 +01:00
  • fdcd8f6faf Fix bug #49578: lwip_socket_drop_registered_memberships API may not work with LWIP_SOCKET_OFFSET Dirk Ziegelmeier 2016-11-11 11:11:50 +01:00
  • b90682dc8b Update email address Erik Ekman 2016-11-10 11:19:27 +01:00
  • b9dc415178 master: Set version to 2.0.1 Dirk Ziegelmeier 2016-11-10 09:59:05 +01:00
  • 216bf89491 Set version to 2.0.0 release STABLE-2_0_0_RELEASE Dirk Ziegelmeier 2016-11-10 09:46:31 +01:00
  • a68eddbd47 Merge branch 'master' into STABLE-2_0_0 Dirk Ziegelmeier 2016-11-10 09:44:33 +01:00
  • d5dd5241e7 dhcp: Use DHCP_MAX_MSG_LEN_MIN_REQUIRED instead of hard-coded value master_at_STABLE-2_0_0 Axel Lin 2016-10-24 17:51:21 +08:00
  • c4eb52dcff PPP: set protocol_list[] const Sylvain Rochet 2016-11-06 20:00:31 +01:00
  • 1e6c4ac017 PPP, IPCP: check that the peer is allowed to use the IP address it wants Sylvain Rochet 2016-11-06 17:39:59 +01:00
  • b978d17ca0 PPP, IPCP: remove obvious FIXME Sylvain Rochet 2016-11-06 12:54:26 +01:00
  • dde55c6c0e PPP, IPCP: fix reset state before reconnecting Sylvain Rochet 2016-11-05 21:34:23 +01:00
  • 5d22679c67 Use API function instead of accessing struct members directly Dirk Ziegelmeier 2016-11-05 16:14:11 +01:00
  • 132dafa3fc Correct macro parentheses in tcpip_priv.h Dirk Ziegelmeier 2016-11-05 15:15:08 +01:00
  • 54d76ffd6d Remove superfluous local variable in raw.c Dirk Ziegelmeier 2016-11-05 15:13:57 +01:00
  • b6f32caaad Fix inet_addr_to_ipaddr_p() macro Dirk Ziegelmeier 2016-11-05 10:51:06 +01:00
  • 1c9e603299 netif: fix reset of IPv6 addresses in netif_add() David van Moolenbroek 2016-10-28 21:28:48 +00:00
  • 1a7ba24d13 memp: Fix memp_overflow_check_all failure Axel Lin 2016-11-04 09:01:58 +08:00
  • d4384cfac4 Sockets: check external FD_SETSIZE against number of sockets Joel Cunningham 2016-10-31 15:37:13 -05:00
  • a82ec4499f memp: Check for null in memp_free Erik Ekman 2016-11-03 12:13:05 +01:00
  • 7d8989e3ea TCP documentation: fix tcp_pbuf_prealloc typo Joel Cunningham 2016-11-02 14:10:20 -05:00
  • 5079e4552c Document non-standard functions in sys abstraction layer Dirk Ziegelmeier 2016-10-23 10:34:52 +02:00
  • e040132d92 PPP, documentation: Fix example code Axel Lin 2016-10-21 23:12:17 +08:00
  • 760281207e mld6: fix conditional checksumming David van Moolenbroek 2016-10-13 16:30:32 +00:00
  • 20fde0be6c ip4_frag: Use LWIP_MIN instead of open-coded Axel Lin 2016-10-19 09:54:39 +08:00
  • 67895e7bdd Fixup new IPv4 fragmentation code - thanks to Zach Smith Dirk Ziegelmeier 2016-10-19 08:36:43 +02:00