Luc Revardel
dc38e21a70
Fix bug #50220 (mld6_leavegroup does not send ICMP6_TYPE_MLD, even if last reporter)
...
Signed-off-by: sg <goldsimon@gmx.de>
(cherry picked from commit 819bfbb943e2d4adeef147432be808f5c9356196)
2017-02-27 12:22:41 +01:00
David van Moolenbroek
d471e5f89e
Patch #9250 (slightly changed): fix source substitution in ip6_output_if() (broken in 2014 with be75c483d0adae9ce786e3e2d5760f8e37005ac7)
...
Signed-off-by: sg <goldsimon@gmx.de>
(cherry picked from commit fffd61c746c9f98be3379d7488ab8f142e4f9878)
2017-02-27 12:22:03 +01:00
sg
99ef13f2be
Fixed bug #50090 (ast_unsent->oversize_left can become wrong value in tcp_write error path)
...
(cherry picked from commit 21737f57e53c9207f4f31da768aebdd160f6cdad)
2017-02-27 12:21:31 +01:00
Dirk Ziegelmeier
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
(cherry picked from commit ff04c2046e6d3e6240613d187b96cae134a81fe2)
2017-02-27 12:20:01 +01:00
goldsimon
faa7a21a83
Fix comment on lwip_shutdown() (it's not unimplemented any more)
...
(cherry picked from commit 4b091cfc2af1dde6018aa452ab025b87a69855db)
2017-02-27 12:19:28 +01:00
Axel Lin
d6e8e05edd
stats: Remove superfluous /t in end of stats display
...
The debug message after the stats display looks odd because the /t in end of
stats display.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
(cherry picked from commit 2685d742e80683aa7817df3f99973342703ee05f)
2017-02-27 12:19:08 +01:00
Dirk Ziegelmeier
0b299f96e9
Add CHANGELOG to lwIP HTML documentation
...
(cherry picked from commit ee3154999a1b40c08759de1183c4a6fd46b71e68)
2017-02-27 12:18:26 +01:00
Dirk Ziegelmeier
777d54f0e4
Retry 1 to fix bug #50064
...
Accidentally used the wrong destination HW addr
(cherry picked from commit 645ca84704db70f6dd29aefdec7bfbf6d9fc01f4)
2017-02-27 12:17:41 +01:00
Dirk Ziegelmeier
8c6ac8eb59
Optimize my last fix in etharp.c, I missed the variable declaration at the beginning of the function
...
(cherry picked from commit 7aaa888d1d27e4adb45c7ebdf5ed9bd42cc9812f)
2017-02-27 12:17:41 +01:00
Dirk Ziegelmeier
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
(cherry picked from commit 47bac3c11fd1a5da2822ac0d6c516db11901fb9f)
2017-02-27 12:17:40 +01:00
Dirk Ziegelmeier
e53c84654e
Fix bug #50064 : Zero-copy RX: ARP reply fails with PBUF_REF
...
Kept the optimized version intact, see discussion in savannah bug tracker
(cherry picked from commit 199c38de2922dd661ed991e577e0709ca15c4980)
2017-02-27 12:17:40 +01:00
sg
d0b0cf983e
fix compiling TCP unit tests with IPv6 enabled
...
(cherry picked from commit b198c877db51ab646504fde03b17f4e6f2a476aa)
2017-02-27 12:17:39 +01:00
Axel Lin
90d68b41df
tcp_out: Use LWIP_MIN instead of open-coded for better readability
...
Make the intention of code more clear by using LWIP_MIN instead of open-coded.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
(cherry picked from commit 141b5def4605a5281c39dcb41b32702cf664359d)
2017-02-27 12:16:17 +01:00
Axel Lin
e6756387b0
tcp_out: Fix comment for last_unsent->oversize_left and tcp_pcb.unsent_oversize
...
Both last_unsent->unsent_oversize and tcp_pcb.unsent_oversized fields are not
exist, fix the comments.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
(cherry picked from commit 30aedfc3f7ae633b8ef481e8db7db4508172171c)
2017-02-27 12:16:17 +01:00
Dirk Ziegelmeier
4fe1436904
Add some parentheses for better code readability in tcp_in.c
...
(cherry picked from commit df8e404abd7e7b801c5734efc2d2de6144cb7847)
2017-02-27 12:16:16 +01:00
Dirk Ziegelmeier
1fdbda9700
Fix bug #50040 : pbuf_alloc(..., 65534, PBUF_RAM) succeeds
...
Check for integer overflow when calculating memory allocation size
(cherry picked from commit 9898d406bc5ea8a268895672bb56a6811c4cec43)
2017-02-27 12:16:16 +01:00
Dirk Ziegelmeier
fed15778dd
Minor typo fix in tcp_out.c
...
(cherry picked from commit 0043bf78b66ff0bd3285e2c657acf4b468c6320f)
2017-02-27 12:16:16 +01:00
Axel Lin
bbe91e356f
tcp_out: Fix oversize vs. space assertion test
...
oversize_used is always 0 at this point, should test oversize instead.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
(cherry picked from commit e1598b0b11431d6fd011f4eb1f5497413b3da515)
2017-02-27 12:16:15 +01:00
Dirk Ziegelmeier
0a73e0ff30
Set lwIP version to 2.0.2 in doxygen script
...
(cherry picked from commit 861dab5b22abf7360afc395a6a6e0c16817def11)
2017-02-27 12:16:15 +01:00
Dirk Ziegelmeier
7ba2633ef0
Minor code readability improvement in mqtt.c
...
(cherry picked from commit 5c58e25de583f7f7c1a5d6e29ba5ade91a089514)
2017-02-27 12:14:46 +01:00
Dirk Ziegelmeier
d860dd7655
Minor correction to last patch: Avoid #including socket.h in api_msg.c
...
(cherry picked from commit 2b1ebda6f1b2b085149bcc910a5a2826778b5f22)
2017-02-27 12:13:27 +01:00
Knut Andre Tidemann
2694486309
lwip: fix broken default ICMPv6 handling of checksums.
...
ICMPv6 should always have checksum generated for it as per RFC 3542
chapter 3.1.
(cherry picked from commit 5e9df2c6988f8e00185e793205f371fe817714e9)
2017-02-27 12:13:26 +01:00
Dirk Ziegelmeier
cb97e27120
MQTT: Add check that WILL topic length must be > 0
...
(cherry picked from commit 52f448978f78475c01ead2b9d98f9395cfe703ab)
2017-02-27 12:09:49 +01:00
Dirk Ziegelmeier
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)
2017-02-27 12:09:49 +01:00
Axel Lin
4deaebae44
mqtt: Slightly improve mqtt_create_request
...
Mainly for better readability, also save NULL test while iterating the for loop.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
(cherry picked from commit a2915b714214a234cd76f3e75d1485210a833c7d)
2017-02-27 12:09:49 +01:00
Axel Lin
5fe195c3d3
mqtt: Prevent NULL pointer dereference before assertion checking
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
(cherry picked from commit 7faa4bcbe22ba896a96ba76bf92bf4d6869f4d18)
2017-02-27 12:08:55 +01:00
Dirk Ziegelmeier
e5071daf45
Add MQTT to CHANGELOG (too late for 2.0.1 release...)
STABLE-2_0_1_RELEASE
2017-01-10 10:42:25 +01:00
Dirk Ziegelmeier
980b219c28
Put 2.0.1 version tag in UPGRADING document
2017-01-10 10:42:23 +01:00
Erik Ekman
76b4365aaa
Remove duplicate netif_dhcp_data() macro
...
Fix compilation of unit tests
2017-01-10 10:42:22 +01:00
Dirk Ziegelmeier
a5a4830b16
Set lwIP version to 2.0.1 RELEASE
STABLE-2_0_1
2017-01-05 15:02:10 +01:00
Dirk Ziegelmeier
1a2a9a4e96
Merge branch 'master' into STABLE-2_0_0
...
# Conflicts:
# src/include/lwip/init.h
2017-01-05 15:01:08 +01:00
Dirk Ziegelmeier
3a20ae3830
Add missing #include in netdb.c for atoi()
2017-01-05 08:55:12 +01:00
Dirk Ziegelmeier
0ffaccaec3
Add missing #include in httpd.c for atoi()
2017-01-05 08:53:26 +01:00
Dirk Ziegelmeier
e94c9ffa70
Fix warning about bad cast in pbuf_skip()
2017-01-05 08:14:39 +01:00
Dirk Ziegelmeier
72316bdb5b
Move macros to access DHCP and AUTOIP data to headers, users may want to access the members
2017-01-05 08:09:00 +01:00
Dirk Ziegelmeier
803a711e6a
Fix warning that local variable may be used uninitialized in mem.c
2017-01-05 08:07:41 +01:00
sg
8760fb677f
fixed warnings in mdns unit tests
2017-01-04 15:25:52 +01:00
Erik Ekman
d2631e6a53
mqtt: Fix pedantic enum warning
...
src/apps/mqtt/mqtt.c:81:17: error: comma at end of enumerator list [-Werror=pedantic]
2017-01-04 00:24:00 +01:00
Dirk Ziegelmeier
4059748b47
I was not satisfied with the previous debugging options structure. Improve it again.
2017-01-02 19:50:46 +01:00
Dirk Ziegelmeier
644a21b8a5
Improve debugging options documentation
2017-01-02 19:32:56 +01:00
Dirk Ziegelmeier
a3876314b7
Add debugging options to documentation
2017-01-02 19:25:23 +01:00
Dirk Ziegelmeier
e3c2b8a339
Add note about high resource-consumption in LWIP_PLATFORM_DIAG and LWIP_PLATFORM_ASSERT default implementations
2017-01-02 19:06:33 +01:00
Dirk Ziegelmeier
e12bb2a4eb
Fix comma at end of enum list in mqtt.h
2017-01-01 20:26:28 +01:00
Dirk Ziegelmeier
2096f1a657
Fix C++ style comment in mqtt.c
2017-01-01 20:23:11 +01:00
Axel Lin
1f3c18fcbe
tcp: Make tcp_listen_with_backlog_and_err return NULL if the address/port is already used
...
The caller of tcp_listen_with_backlog_and_err() usually check if the return
pcb is NULL before checking the err reason. I think the commit adding
tcp_listen_with_backlog_and_err() accidently change the behavior, Fix it.
Fixes: 98fc82fa7128 ("added function tcp_listen_with_backlog_and_err() to get the error reason when listening fails")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2017-01-01 19:53:51 +01:00
Axel Lin
edfeab7932
mqtt: Trivial coding style fix
...
Add proper blank for if/for/while statements.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2017-01-01 19:20:24 +01:00
Dirk Ziegelmeier
b8bc7b7c71
arch.h: Add #includes necessary for default implentation of LWIP_PLATFORM_DIAG and LWIP_PLATFORM_ASSERT
2017-01-01 12:40:23 +01:00
Dirk Ziegelmeier
f874d15185
Add #include <string.h> in snmp_netconn.c because memset() is used
2017-01-01 12:38:34 +01:00
Dirk Ziegelmeier
ee034bd811
Document PACK_STRUCT_USE_INCLUDES #define
2017-01-01 12:31:02 +01:00
sg
a2a16d4193
nd6 rdnss: fixed dual-stack compilation
2016-12-31 15:51:59 +01:00