Simon Goldschmidt
17c60d2728
Fix CHANGELOG for 2.1.2
2018-11-22 20:56:33 +01:00
Jens Nielsen
52e75369c1
Fix netbiosns expecting too large packet
...
(cherry picked from commit b0c753da963e2704267807b7d772b7de34657d90)
2018-11-22 11:38:31 +01:00
Dirk Ziegelmeier
66706f469d
Fix bug #55034 : apps/smtp.c fails to compile with strict C compatibility because of strnlen
...
by replacing strnlen with strlen. It's a user-supplied string, so we can assume it is correctly \0 terminated (as done several times elsewhere in the code)
(cherry picked from commit aa83bdf490a8b4573823619bfe48e2e75d9dbd49)
2018-11-19 14:48:54 +01:00
Simon Goldschmidt
98d1cb1c00
tcp_recved: fix overflow check
...
Improved fix instead of patch #9699 .
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-11-12 20:55:23 +01:00
Simon Goldschmidt
1940cae827
Revert "tcp_recved: check for overflow and warn about too big values"
...
This reverts commit ebb0dc14a7336c793d32c8e9ebde5bd9666f2a65.
It changes the behaviour to assert for applications running good so far.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-11-12 20:47:01 +01:00
Simon Goldschmidt
d184463e2a
next release in this branch will be 2.1.2
2018-11-08 22:36:01 +01:00
Simon Goldschmidt
3b53b6e481
Prepare 2.1.1 release
STABLE-2_1_1_RELEASE
2018-11-08 22:15:01 +01:00
Simon Goldschmidt
78ee1ee2cf
Update CHANGELOG for 2.1.1
2018-11-08 22:07:58 +01:00
Simon Goldschmidt
422623a87b
altcp_tls_mbedtls: implement mbedTLS debug output, comment fixes
2018-11-08 20:48:31 +01:00
Axel Lin
4aa6df7633
sockets: Fix missing err_to_errno conversion for ERR_VAL in lwip_recvmsg
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
(cherry picked from commit 7bcf0d3334e89bee5478c9a092a2c24d31fbb7ac)
2018-11-08 16:53:40 +01:00
Joan Lledó
2d2336014c
Remove assertion about the end of pollfd array
...
See bug #54933 .
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
(cherry picked from commit 284659156d89baef56a043dc94ba6b11fbe8e146)
2018-11-06 13:15:04 +01:00
Dirk Ziegelmeier
def427bcaf
Fix bug #54670 : 127.0.0.1 sent out to netif_default?
...
(cherry picked from commit 7c2267b9662e7da9d8df55297cd3fffd4aa64512)
2018-11-06 13:14:22 +01:00
Axel Lin
ba3a39957d
Fix mqtt unit test broken ebb0dc14a733
...
Fixes: ebb0dc14a733 ("tcp_recved: check for overflow and warn about too big values")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-30 21:21:08 +08:00
Simon Goldschmidt
f58324b576
altcp_tls_mbedtls: update list of todos
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-26 20:43:12 +02:00
David GIRAULT
205cd7c1f6
bug #54744 : if altcp_close() called from recv() callback, there is some write to freed memory
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
(cherry picked from commit 6e994f9df2da80cae1f88e7b771c4b803af0ce0d)
2018-10-26 19:59:33 +02:00
Simon Goldschmidt
398333da9a
snmp: avoid NULL pointer dereference, fix return values
2018-10-24 20:39:08 +02:00
Simon Goldschmidt
e678219bdf
snmp: fix coding style in last commit
2018-10-23 20:00:16 +02:00
Dirk Ziegelmeier
830217ac78
SNMP: Avoid NULL pointer dereference in snmp_scalar.c
2018-10-23 19:57:44 +02:00
Simon Goldschmidt
e4db22d9f5
fix missing standard includes
...
These were a problem only if arch.h does not include them.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-23 19:57:11 +02:00
Simon Goldschmidt
c8e9772cd0
This branch is for developing 2.1.x versions
2018-10-18 09:03:11 +02:00
Dirk Ziegelmeier
437b11f869
Fix bug #54850 : lwip definition of htonX and ntohX do not properly cast to unsigned when byte order is Big Endian
...
Changes suggested by Ivan Warren
2018-10-17 21:45:18 +02:00
Simon Goldschmidt
b7bee87fb5
Add a unit test for bug #54833 (tcp_abort with wrong ports)
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-17 21:44:44 +02:00
Simon Goldschmidt
2f3ef94ad4
Fix bug #54806 (ppp: invalid LWIP_ASSERT_CORE_LOCKED() check)
...
pppos_input() is safe to call from outside tcpip_thread when
PPP_INPROC_IRQ_SAFE == 1, so only check if PPP_INPROC_IRQ_SAFE == 0
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-17 21:44:30 +02:00
Simon Goldschmidt
7154e51ff2
Revert "tcp_abandon: no need to buffer pcb->local_port"
...
This reverts commit 1570dd8ad1c6afd2438dcb8b18d9eed794f78baa.
Buffering pcb->local_port is needed because TCP_PCB_REMOVE_ACTIVE()
sets it to 0 via tcp_pcb_remove() (comment: "reset the local port
to prevent the pcb from being 'bound'").
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-17 21:44:20 +02:00
Jonas Rabenstein
db46863f75
err.h: move typedef of err_t after enum definition
...
This allows for 'typedef err_enum_t err_t' and thus strong type checking
of the enum in c++.
2018-10-17 21:44:04 +02:00
Jonas Rabenstein
ebb0dc14a7
tcp_recved: check for overflow and warn about too big values
2018-10-17 21:43:57 +02:00
Joan Lledó
368128a647
alloc_socket(): Check for LWIP_SOCKET_POLL when setting select-related variables
2018-10-17 21:43:34 +02:00
Dirk Ziegelmeier
bc25863d1b
Apply patch #9694 : Update prev pointer when skipping entries in tcp_slowtmr to prevent hitting assertion
2018-10-17 21:43:09 +02:00
Martine Lenders
130f947037
lowpan6.c: Fix IEEE 802.15.4 address setting
...
Reverts a regression introduced in
3a8af612b3b818a89de5846cc9b046756af184cc:
Use hardware address fetched from neighbor cache *not* the hardware
address of the interface as destination address.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-10-17 21:42:55 +02:00
Simon Goldschmidt
e6a8415df3
Prepare 2.1.0 release
...
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
STABLE-2_1_0_RELEASE
2018-09-26 21:11:39 +02:00
Simon Goldschmidt
54a8112eb9
Documentation improvements for 2.1.0 (changelog, altcp)
2018-09-26 14:37:52 +02:00
Simon Goldschmidt
b9fc8cae68
Documentation improvements for 2.1.0 (mainly altcp/altcp_tls)
2018-09-24 22:44:32 +02:00
Simon Goldschmidt
a044c807f8
altcp_tls: rename altcp_tls_new -> altcp_tls_wrap, add altcp_tls_new
...
The new altcp_tls_new() is a type safe version of altcp_tls_alloc()
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-09-24 22:29:54 +02:00
Simon Goldschmidt
6229f9ef71
icmp_send_response: fix parameter order for LWIP_HOOK_IP4_ROUTE_SRC
2018-09-17 21:28:50 +02:00
Simon Goldschmidt
66838a70f3
more documentation preparations for v2.1.0 release
2018-09-17 21:16:58 +02:00
Simon Goldschmidt
dea74a24aa
Fix CHANGELOG consistency from 2.0.3 branch to 2.1.0
2018-09-16 21:41:33 +02:00
Simon Goldschmidt
effdeef2fe
some preparations for v2.1.0 release
2018-09-16 21:17:40 +02:00
Simon Goldschmidt
c18df357d9
some preparations for v2.1.0 release
2018-09-14 21:32:11 +02:00
Simon Goldschmidt
74c5ac7302
cpack: change file name of generated sources file
...
This should match the old release ZIPs: "lwip-x.y.z.zip"
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-09-13 21:54:58 +02:00
Simon Goldschmidt
0189e7b02f
mqtt: allow user + pass longer than 255 chars
...
See bug #54655 :
"MQTT brokers such as Google Cloud IoT Core requires MQTT clients
to send JSON Web Token (JWT) as password field of the MQTT Connect
packet. JWT can be more than 255 bytes.
Currently, the MQTT library restricts password to be less than 256
bytes, thus it prevents connectivity to Google Cloud IoT Core."
Fix that by just converting the local variables for these from u8_t
to u16_t.
Suggested-by: Richmond Umagat <richmond.umagat@brtchip.com>
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-09-13 14:59:08 +02:00
Dirk Ziegelmeier
796f98beb2
Fix no newline at end of http_client.c
2018-09-12 22:41:07 +02:00
Simon Goldschmidt
fc24d4139f
altcp_tls_mbedtls: convert #error on too small TCP_WND to warning
...
Many TLS use cases are OK with a small TCP_WND, so don't prevent these
by having a preprocessor check that cannot be disabled.
2018-09-12 22:24:05 +02:00
Simon Goldschmidt
bbf80b05c8
ppp: fix implicit conversion from size_t to u8_t
...
Found when compiling with VS2017
2018-09-12 22:22:10 +02:00
Simon Goldschmidt
bc48eb512e
Fix bug #54506 (LWIP_CHECKSUM_ON_COPY causes wrong checksum (0xFFFF))
...
one's complement sum was not correctly done, which could result in the
checksum being 0xFFFF instead of 0 in some cases.
2018-09-12 21:56:16 +02:00
Dirk Ziegelmeier
cdfa3dfa9d
http_client.c: Fix compile when TCP is disabled
2018-09-12 08:27:43 +02:00
Dirk Ziegelmeier
be18fa98e4
Fix cleanup of existing documentation of target lwipdocs
2018-09-11 08:16:01 +02:00
Dirk Ziegelmeier
257dc1d6fd
Fix doxygen warnings in altcp_proxyconnect.c
2018-09-10 13:30:50 +02:00
Dirk Ziegelmeier
236d6df495
Fix lwipdocs target in Filelists.cmake
...
EXCLUDE_FROM_ALL is not supported at add_custom_target()
2018-09-10 13:28:01 +02:00
Simon Goldschmidt
93b2074f2b
Remove LWIP_DHCP_CHECK_LINK_UP define as it's useless
...
See bug #54574
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2018-09-07 21:01:32 +02:00
Simon Goldschmidt
7749088a83
Fix 2way-auth connections for TLS clients
...
TLS clients that need 2-way authentication (e.g. Amazon AWS IoT cloud mqtt)
need to pass a certificate and private key when creating the tls altcp_pcb.
Added a new function altcp_tls_create_config_client_2wayauth() for this that
replaces altcp_tls_create_config_client() for such clients.
See bug #54601 .
2018-09-07 20:59:31 +02:00